From: "Jan Beulich" Subject: Re: [PATCH] Nested VMX: CR emulation fix up Date: Wed, 09 Oct 2013 08:18:12 +0100 Message-ID: <52551F5402000078000F9DA0@nat28.tlf.novell.com> References: <1381217398-16449-1-git-send-email-yang.z.zhang@intel.com> <5253DEFB02000078000F97A4@nat28.tlf.novell.com> <525428C8.1050502@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VTo2F-0000XM-Dq for xen-devel@lists.xenproject.org; Wed, 09 Oct 2013 07:18:19 +0000 In-Reply-To: <525428C8.1050502@oracle.com> 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: Boris Ostrovsky Cc: Yang Zhang , eddie.dong@intel.com, Jacob Shin , suravee.suthikulpanit@amd.com, xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 08.10.13 at 17:46, Boris Ostrovsky wrote: > On 10/08/2013 04:31 AM, Jan Beulich wrote: >>>>> On 08.10.13 at 09:29, Yang Zhang wrote: >>> --- a/xen/include/asm-x86/hvm/vcpu.h >>> +++ b/xen/include/asm-x86/hvm/vcpu.h >>> @@ -100,6 +100,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]; > > This should be prefixed with nv_: all members of this structure are. In > addition, struct hvm_vcpu has exact same member. If anything, I think the pointless nv_ prefixes should be dropped from the other members' names. Jan