From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: [PATCH v2 3/4] amd-iommu: disable iommu_hap_pt_share with AMD IOMMUs Date: Wed, 23 Apr 2014 16:31:14 +0200 Message-ID: <5357CEB2.9070103@citrix.com> References: <1398240984-67266-1-git-send-email-roger.pau@citrix.com> <1398240984-67266-4-git-send-email-roger.pau@citrix.com> <5357AABB020000780000B497@nat28.tlf.novell.com> <5357901C.8080705@citrix.com> <5357B767020000780000B5FB@nat28.tlf.novell.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 1WcyCl-0001cT-M7 for xen-devel@lists.xenproject.org; Wed, 23 Apr 2014 14:31:19 +0000 In-Reply-To: <5357B767020000780000B5FB@nat28.tlf.novell.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: Jan Beulich Cc: xen-devel@lists.xenproject.org, Xiantao Zhang , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org On 23/04/14 12:51, Jan Beulich wrote: >>>> On 23.04.14 at 12:04, wrote: >> On 23/04/14 11:57, Jan Beulich wrote: >>>>>> On 23.04.14 at 10:16, wrote: >>>> According to the comment in p2m.h, AMD IOMMUs don't work correctly >>>> with page types different than p2m_ram_rw when the p2m is shared >>>> between HAP and IOMMU, so disable this sharing when using AMD IOMMUs. >>> >>> Doesn't this need to go before patch 2? >> >> It could certainly go before patch 2, but I don't see such a hard >> requirement in the ordering (either way AMD hardware needs both patches >> to work correctly, and applying one before the other is not going to >> break bisection AFAICT). > > Patch 2 allows the high bits in present IOMMU entries to be non-zero, > thus allowing for IOMMU faults without this patch already in effect. Since on AMD hardware iommu_hap_pt_share is always true (unless the user forces it to false), the previous patch has no effect without this one (because the previous patch only deals with iommu_hap_pt_share == false). I don't mind moving it anyway, and will do it in the next version. Roger.