From: "Jan Beulich" Subject: Re: [PATCH v3] Nested VMX: CR emulation fix up Date: Tue, 03 Dec 2013 11:25:53 +0000 Message-ID: <529DCDD10200007800109566@nat28.tlf.novell.com> References: <1386057294-27074-1-git-send-email-yang.z.zhang@intel.com> <529DADE6.40100@amazon.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vno75-0001cb-QO for xen-devel@lists.xenproject.org; Tue, 03 Dec 2013 11:25:59 +0000 In-Reply-To: <529DADE6.40100@amazon.de> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Christoph Egger Cc: Yang Zhang , xen-devel@lists.xenproject.org, eddie.dong@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 03.12.13 at 11:09, "Egger, Christoph" wrote: > On 03.12.13 08:54, Yang Zhang wrote: >> --- a/xen/include/asm-x86/hvm/vcpu.h >> +++ b/xen/include/asm-x86/hvm/vcpu.h >> @@ -110,6 +110,9 @@ struct nestedvcpu { >> */ >> bool_t nv_ioport80; >> bool_t nv_ioportED; >> + >> + /* L2's control-resgister, just as the L2 sees them. */ >> + unsigned long guest_cr[5]; >> }; > > I have a question to everyone thinking the nv_ prefix is pointless: > Did you ever read BSD code? No, I didn't. Using such prefixes is a relic of the K&R days. Jan