summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-07-22 18:25:19 -0400
committerMarcelo Tosatti <mtosatti@redhat.com>2009-07-23 10:02:32 -0300
commit28836d52e35328c50706785ea35beace60d18ab2 (patch)
treecf6440d19a10924e0e6dacffe1343aa7bfa23181 /qemu-kvm-x86.c
parentremove env->exit_request usage from qemu-kvm.c (diff)
downloadqemu-kvm-28836d52e35328c50706785ea35beace60d18ab2.tar.gz
qemu-kvm-28836d52e35328c50706785ea35beace60d18ab2.tar.bz2
qemu-kvm-28836d52e35328c50706785ea35beace60d18ab2.zip
fix mce check extension
Because a patch got into marcelo's tree before mine did, I forgot to convert one user of kvm_check_extension. Here's the fix for it. Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm-x86.c')
-rw-r--r--qemu-kvm-x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index e4ae58293..492dbc543 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -1338,7 +1338,7 @@ int kvm_arch_qemu_init_env(CPUState *cenv)
#ifdef KVM_CAP_MCE
if (((cenv->cpuid_version >> 8)&0xF) >= 6
&& (cenv->cpuid_features&(CPUID_MCE|CPUID_MCA)) == (CPUID_MCE|CPUID_MCA)
- && kvm_check_extension(kvm_context, KVM_CAP_MCE) > 0) {
+ && kvm_check_extension(kvm_state, KVM_CAP_MCE) > 0) {
uint64_t mcg_cap;
int banks;