From patchwork Wed Jul 22 22:25:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 36920 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6MMPt51018953 for ; Wed, 22 Jul 2009 22:25:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754764AbZGVWZX (ORCPT ); Wed, 22 Jul 2009 18:25:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754759AbZGVWZX (ORCPT ); Wed, 22 Jul 2009 18:25:23 -0400 Received: from mx2.redhat.com ([66.187.237.31]:59730 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754736AbZGVWZV (ORCPT ); Wed, 22 Jul 2009 18:25:21 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6MMPLEH001026 for ; Wed, 22 Jul 2009 18:25:21 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6MMPK67004034; Wed, 22 Jul 2009 18:25:20 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6MMPJ0K008191; Wed, 22 Jul 2009 18:25:20 -0400 From: Glauber Costa To: kvm@vger.kernel.org Cc: avi@redhat.com Subject: [PATCH] fix mce check extension Date: Wed, 22 Jul 2009 18:25:19 -0400 Message-Id: <1248301519-24336-1-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 --- qemu-kvm-x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index e4ae582..492dbc5 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;