diff options
author | Alexander Graf <agraf@suse.de> | 2014-07-14 19:17:35 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-08 12:50:51 +0200 |
commit | 6fd33a750214a866772dd77573cfa24c27ad956d (patch) | |
tree | ff8d9d662a05e9301266a60b1281ab4195b77573 | |
parent | 7d0a07fa926436baf1238dcf68a55ea96cf5b9ab (diff) | |
download | hqemu-6fd33a750214a866772dd77573cfa24c27ad956d.zip hqemu-6fd33a750214a866772dd77573cfa24c27ad956d.tar.gz |
PPC: KVM: Use vm check_extension for pv hcall
To find out whether we support the KVM hypercall interface we need to ask KVM
on the VM level rather than the global KVM level, because Book3S HV KVM does
not support it and we play conservative when both HV and PR are loaded.
So instead, use the VM helper that falls back to global KVM enumeration. That
should cover all cases.
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | target-ppc/kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 2b6fee6..9c23c6b 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1835,7 +1835,7 @@ static int kvmppc_get_pvinfo(CPUPPCState *env, struct kvm_ppc_pvinfo *pvinfo) PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); - if (kvm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) && + if (kvm_vm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) && !kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, pvinfo)) { return 0; } |