From: Keir Fraser Subject: Re: RE: [Xen-changelog] [xen-unstable] hvm: Sync SVM CR4 handling with VMX. Date: Thu, 28 Jun 2007 13:57:28 +0100 Message-ID: References: <907625E08839C4409CE5768403633E0B02561EB1@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B02561EB1@sefsexmb1.amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Petersson, Mats" , xen-devel@lists.xensource.com, xen-changelog@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 28/6/07 11:33, "Petersson, Mats" wrote: >> -/* These bits in the CR4 are owned by the host */ >> +/* These bits in CR4 are owned by the host. */ >> #define HVM_CR4_HOST_MASK (mmu_cr4_features & \ >> (X86_CR4_VMXE | X86_CR4_PAE | X86_CR4_MCE)) > > VMXE is only for Intel, so being very picky, it shouldn't be in a HVM > environment. > > I don't think it's a problem as, I doubt very much that AMD would use > this bit for anything in the future, as Intel has "occupied it", and > we're using a different way to enable SVM. The code is entirely benign on AMD until that happens *and* we actually make use of it by adding it to mmu_cr4_features. So this is the way of simplest code for now. -- Keir