From: "Jan Beulich" Subject: Re: [PATCH 1/3] Nested VMX: update nested paging mode when vmswitch is in progress Date: Wed, 18 Dec 2013 10:08:03 +0000 Message-ID: <52B18213020000780010E98C@nat28.tlf.novell.com> References: <1386814004-5574-1-git-send-email-yang.z.zhang@intel.com> <1386814004-5574-2-git-send-email-yang.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VtE2v-0003sD-Ty for xen-devel@lists.xenproject.org; Wed, 18 Dec 2013 10:08:06 +0000 In-Reply-To: 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: Eddie Dong , Yang Z Zhang Cc: xen-devel , Christoph Egger List-Id: xen-devel@lists.xenproject.org >>> On 18.12.13 at 09:58, "Dong, Eddie" wrote: > Acked by Eddie Dong As long as Christoph's reservations wrt SVM aren't being addressed/ eliminated, I don't think we can apply this patch. Furthermore, while you ack-ed this patch (which isn't really VMX specific) and patch 3, you didn't ack patch 2, but you also didn't indicate anything that's possibly wrong with it. And finally, with patch 1 needing to be left out for the moment, I'd like to have confirmation that all three patches can be applied independently (i.e. with the current state of things only patch 3 is ready to go in). Jan > -----Original Message----- > From: Zhang, Yang Z > Sent: Thursday, December 12, 2013 10:07 AM > To: xen-devel@lists.xen.org > Cc: JBeulich@suse.com; Dong, Eddie; Zhang, Yang Z > Subject: [PATCH 1/3] Nested VMX: update nested paging mode when vmswitch is > in progress > > From: Yang Zhang > > virtual vmentry will change paging related stucture, so corrensponding > nested mode need to be updated which is missing currently. > > Signed-off-by: Yang Zhang > --- > xen/arch/x86/hvm/hvm.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > This patch fixed RHEL6 guest installation problem with L1 hyper-v. > > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > index 69f7e74..1f62e00 100644 > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -1925,7 +1925,7 @@ int hvm_set_cr0(unsigned long value) > hvm_update_cr(v, 0, value); > > if ( (value ^ old_value) & X86_CR0_PG ) { > - if ( !nestedhvm_vmswitch_in_progress(v) && > nestedhvm_vcpu_in_guestmode(v) ) > + if ( nestedhvm_vcpu_in_guestmode(v) ) > paging_update_nestedmode(v); > else > paging_update_paging_modes(v); > @@ -2014,7 +2014,7 @@ int hvm_set_cr4(unsigned long value) > (X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE | X86_CR4_SMEP)) || > (!(value & X86_CR4_PCIDE) && (old_cr & X86_CR4_PCIDE)) ) > { > - if ( !nestedhvm_vmswitch_in_progress(v) && > nestedhvm_vcpu_in_guestmode(v) ) > + if ( nestedhvm_vcpu_in_guestmode(v) ) > paging_update_nestedmode(v); > else > paging_update_paging_modes(v); > -- > 1.7.1