From patchwork Wed May 26 07:11:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 102347 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 o4Q7Bb0N008207 for ; Wed, 26 May 2010 07:11:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934035Ab0EZHLU (ORCPT ); Wed, 26 May 2010 03:11:20 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:44151 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933996Ab0EZHLT (ORCPT ); Wed, 26 May 2010 03:11:19 -0400 Received: from smtp01.web.de ( [172.20.0.243]) by fmmailgate02.web.de (Postfix) with ESMTP id D30DD162E74C2; Wed, 26 May 2010 09:11:17 +0200 (CEST) Received: from [88.65.252.165] (helo=[192.168.1.10]) by smtp01.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1OHAlp-0001ot-00; Wed, 26 May 2010 09:11:17 +0200 Message-ID: <4BFCC995.5000303@web.de> Date: Wed, 26 May 2010 09:11:17 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Avi Kivity , Marcelo Tosatti CC: kvm , Joerg Roedel Subject: [PATCH] KVM: svm: Fix erratum 383 check for 32-bit hosts X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1+L8BPY33uEwPzn+bt9yfIefyjGGkFI/3r4DAQ5 Imw1C+90NWalG6KRuhFq0brGbfqiGp84pAwBDVnf+JqAy0Kkkx 6SYaTaFos= 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 07:11:37 +0000 (UTC) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 3c03c36..fd32791 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1460,7 +1460,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 */