summaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-06-08 16:10:59 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2011-06-20 15:17:33 -0300
commit0bed3bba7d68b35e4b0c63d597b377c49a14e509 (patch)
tree0f7d82c57dad6bd5d03af88947e6b87e18967f1d /target-ppc
parent5802e066ebcca382dbb81df3417930ee23873252 (diff)
kvm: ppc: Drop CONFIG_KVM_PPC_PVR
Required header support is now unconditionally available. CC: Alexander Graf <agraf@suse.de> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/kvm.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index e7b1b10c69..0500e3f772 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -104,21 +104,12 @@ static int kvm_arch_sync_sregs(CPUState *cenv)
}
}
-#if !defined(CONFIG_KVM_PPC_PVR)
- if (1) {
- fprintf(stderr, "kvm error: missing PVR setting capability\n");
- return -ENOSYS;
- }
-#endif
-
ret = kvm_vcpu_ioctl(cenv, KVM_GET_SREGS, &sregs);
if (ret) {
return ret;
}
-#ifdef CONFIG_KVM_PPC_PVR
sregs.pvr = cenv->spr[SPR_PVR];
-#endif
return kvm_vcpu_ioctl(cenv, KVM_SET_SREGS, &sregs);
}