From patchwork Thu Jan 7 12:15:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 71575 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o07CFrBS029482 for ; Thu, 7 Jan 2010 12:15:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467Ab0AGMPv (ORCPT ); Thu, 7 Jan 2010 07:15:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752452Ab0AGMPv (ORCPT ); Thu, 7 Jan 2010 07:15:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16713 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420Ab0AGMPt (ORCPT ); Thu, 7 Jan 2010 07:15:49 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o07CFlFI005218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Jan 2010 07:15:47 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o07CFj0L009086; Thu, 7 Jan 2010 07:15:46 -0500 Received: from localhost.localdomain (file.tlv.redhat.com [10.35.255.8]) by cleopatra.tlv.redhat.com (Postfix) with ESMTP id CB6E5250050; Thu, 7 Jan 2010 14:15:44 +0200 (IST) From: Avi Kivity To: Marcelo Tosatti , Joerg Roedel Cc: kvm@vger.kernel.org Subject: [PATCH 1/3] KVM: SVM: Fix SVM_CR0_SELECTIVE_MASK Date: Thu, 7 Jan 2010 14:15:42 +0200 Message-Id: <1262866544-4985-2-git-send-email-avi@redhat.com> In-Reply-To: <1262866544-4985-1-git-send-email-avi@redhat.com> References: <1262866544-4985-1-git-send-email-avi@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index 1fecb7e..38638cd 100644 --- a/arch/x86/include/asm/svm.h +++ b/arch/x86/include/asm/svm.h @@ -313,7 +313,7 @@ struct __attribute__ ((__packed__)) vmcb { #define SVM_EXIT_ERR -1 -#define SVM_CR0_SELECTIVE_MASK (1 << 3 | 1) /* TS and MP */ +#define SVM_CR0_SELECTIVE_MASK (X86_CR0_TS | X86_CR0_MP) #define SVM_VMLOAD ".byte 0x0f, 0x01, 0xda" #define SVM_VMRUN ".byte 0x0f, 0x01, 0xd8"