From: Wei Liu Subject: Re: [PATCH for 4.6] x86/hvm.c: fix regression in guest destruction Date: Wed, 29 Jul 2015 17:51:53 +0100 Message-ID: <20150729165152.GA26074@zion.uk.xensource.com> References: <1438187962-4047-1-git-send-email-ravi.sahita@intel.com> <55B902F6.3040005@citrix.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 1ZKUaJ-0006LU-2C for xen-devel@lists.xenproject.org; Wed, 29 Jul 2015 16:52:03 +0000 Content-Disposition: inline In-Reply-To: <55B902F6.3040005@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ravi Sahita , wei.liu2@citrix.com, george.dunlap@eu.citrix.com, tim@xen.org, edmund.h.white@intel.com, JBeulich@suse.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Wed, Jul 29, 2015 at 05:44:38PM +0100, Andrew Cooper wrote: > On 29/07/15 17:39, Ravi Sahita wrote: > > As reported by Wei Lu on July 27 2015 > > Reported-by: Wei Liu > > > Signed-off-by: Ravi Sahita > > Reviewed-by: Andrew Cooper > Tested-by: Wei Liu > > --- > > xen/arch/x86/hvm/hvm.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > > index ec1d797..6a56216 100644 > > --- a/xen/arch/x86/hvm/hvm.c > > +++ b/xen/arch/x86/hvm/hvm.c > > @@ -2463,7 +2463,9 @@ void hvm_vcpu_destroy(struct vcpu *v) > > { > > hvm_all_ioreq_servers_remove_vcpu(v->domain, v); > > > > - altp2m_vcpu_destroy(v); > > + if ( hvm_altp2m_supported() ) > > + altp2m_vcpu_destroy(v); > > + > > nestedhvm_vcpu_destroy(v); > > > > free_compat_arg_xlat(v);