From patchwork Wed May 26 02:44:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 102325 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4Q2mNjN007761 for ; Wed, 26 May 2010 02:48:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759173Ab0EZCrw (ORCPT ); Tue, 25 May 2010 22:47:52 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:52271 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1759071Ab0EZCrv convert rfc822-to-8bit (ORCPT ); Tue, 25 May 2010 22:47:51 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 09554170119; Wed, 26 May 2010 10:47:50 +0800 (CST) Received: from fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id o4Q2jg6d007587; Wed, 26 May 2010 10:45:42 +0800 Received: from [10.167.141.99] (unknown [10.167.141.99]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id D565410C0A6; Wed, 26 May 2010 10:51:31 +0800 (CST) Message-ID: <4BFC8B0D.2060106@cn.fujitsu.com> Date: Wed, 26 May 2010 10:44:29 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Avi Kivity CC: Marcelo Tosatti , Joerg Roedel , LKML , KVM list Subject: [PATCH 1/2] KVM: SVM: fix compiling warning Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 26 May 2010 02:48:23 +0000 (UTC) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 65324a0..02ea5cf 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1456,7 +1456,7 @@ static bool is_erratum_383(void) /* Bit 62 may or may not be set for this mce */ value &= ~(1ULL << 62); - if (value != 0xb600000000010015) + if (value != 0xb600000000010015ULL) return false; /* Clear MCi_STATUS registers */ @@ -1487,8 +1487,6 @@ static void svm_handle_mce(struct vcpu_svm *svm) * Erratum 383 triggered. Guest state is corrupt so kill the * guest. */ - struct kvm_run *kvm_run = svm->vcpu.run; - pr_err("KVM: Guest triggered AMD Erratum 383\n"); set_bit(KVM_REQ_TRIPLE_FAULT, &svm->vcpu.requests);