From: "Jan Beulich" Subject: Re: [PATCH] IOMMU/x86: avoid pages without GFN in page table creation/updating Date: Thu, 07 May 2015 14:50:15 +0100 Message-ID: <554B89B702000078000779A3@mail.emea.novell.com> References: <554B7DEB020000780007793D@mail.emea.novell.com> <554B6502.8010206@citrix.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 1YqMBv-0003jP-Mo for xen-devel@lists.xenproject.org; Thu, 07 May 2015 13:50:19 +0000 In-Reply-To: <554B6502.8010206@citrix.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: Andrew Cooper Cc: Kevin Tian , Tim Deegan , Sander Eikelenboom , Aravind Gopalakrishnan , suravee.suthikulpanit@amd.com, Yang Z Zhang , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 07.05.15 at 15:13, wrote: > On 07/05/15 13:59, Jan Beulich wrote: >> @@ -729,12 +733,15 @@ int amd_iommu_unmap_page(struct domain * >> * we might need a deeper page table for lager gfn now */ >> if ( is_hvm_domain(d) ) >> { >> - if ( update_paging_mode(d, gfn) ) >> + int rc = update_paging_mode(d, gfn); >> + >> + if ( rc ) >> { >> spin_unlock(&hd->arch.mapping_lock); >> AMD_IOMMU_DEBUG("Update page mode failed gfn = %lx\n", gfn); > > Given the domain_crash(), this should probably at error priority rather > than debug. Not sure (and it's not debug but info level anyway, but behind an iommu_debug check). Being unrelated to the change here, I think this ought to be a separate change, perhaps by the AMD IOMMU maintainers. Jan