From: "Jan Beulich" Subject: Re: [PATCH 8/9] x86/pvh: Don't try to get l4 table for PVH guests in vcpu_destroy_pagetables() Date: Wed, 24 Jun 2015 08:58:08 +0100 Message-ID: <558A7F300200007800088B66@mail.emea.novell.com> References: <1434769773-5157-1-git-send-email-boris.ostrovsky@oracle.com> <1434769773-5157-9-git-send-email-boris.ostrovsky@oracle.com> <55897D74020000780008858B@mail.emea.novell.com> <558A1E92.1010702@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <558A1E92.1010702@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: elena.ufimtseva@oracle.com, Keir Fraser , Andrew Cooper , tim@xen.org, xen-devel@lists.xen.org, roger.pau@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 24.06.15 at 05:05, wrote: > On 06/23/2015 09:38 AM, Jan Beulich wrote: >>>>> On 20.06.15 at 05:09, wrote: >>> --- a/xen/arch/x86/mm.c >>> +++ b/xen/arch/x86/mm.c >>> @@ -2652,7 +2652,7 @@ int vcpu_destroy_pagetables(struct vcpu *v) >>> if ( rc ) >>> return rc; >>> >>> - if ( is_pv_32on64_vcpu(v) ) >>> + if ( is_pv_32on64_vcpu(v) && !is_pvh_vcpu(v) ) >> This looks wrong - is_pv_32on64_vcpu() should imply is_pv_vcpu() >> and hence !is_pvh_vcpu(). > > > That's because I kept > d->arch.is_32bit_pv = d->arch.has_32bit_shinfo = 1; > in switch_compat() for both PV and PVH. I should probably only set > has_32bit_shinfo for PVH. Right. Jan