diff options
author | Scott Wood <scottwood@freescale.com> | 2011-04-28 00:24:21 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-22 14:47:53 +0200 |
commit | 5ce941ee4258b836cf818d2ac159d8cf3ebad648 (patch) | |
tree | 082526b38824e8f763944c39a7e0e9390f298882 /arch/powerpc/kvm/powerpc.c | |
parent | KVM: PPC: booke: save/restore VRSAVE (a.k.a. USPRG0) (diff) | |
download | linux-5ce941ee4258b836cf818d2ac159d8cf3ebad648.tar.xz linux-5ce941ee4258b836cf818d2ac159d8cf3ebad648.zip |
KVM: PPC: booke: add sregs support
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/powerpc.c')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 9e6aa8bfd160..616dd516ca1f 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -175,7 +175,11 @@ int kvm_dev_ioctl_check_extension(long ext) int r; switch (ext) { +#ifdef CONFIG_BOOKE + case KVM_CAP_PPC_BOOKE_SREGS: +#else case KVM_CAP_PPC_SEGSTATE: +#endif case KVM_CAP_PPC_PAIRED_SINGLES: case KVM_CAP_PPC_UNSET_IRQ: case KVM_CAP_PPC_IRQ_LEVEL: |