From: "Jan Beulich" Subject: Re: [PATCH 2 of 6 V6] amd iommu: call guest_iommu_set_base from hvmloader Date: Mon, 15 Oct 2012 14:51:27 +0100 Message-ID: <507C30FF02000078000A16E4@nat28.tlf.novell.com> References: <5063155A.4070307@amd.com> <50642A2A020000780009E32D@nat28.tlf.novell.com> <507BDED1.6020005@amd.com> <507BFD7802000078000A1526@nat28.tlf.novell.com> <507C004B.20003@amd.com> <507C233702000078000A1670@nat28.tlf.novell.com> <507C129A.2010203@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <507C129A.2010203@amd.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: Wei Wang Cc: Keir Fraser , "xen-devel@lists.xensource.com" , Ian Jackson , IanCampbell List-Id: xen-devel@lists.xenproject.org >>> On 15.10.12 at 15:41, Wei Wang wrote: > My idea is to make the interface looks like that > guest_iommu_set_base(d, iommu_base, iommu_seg) That part is obvious; the more interesting part is how you plan on getting this fix the HVM parameter model. > This will allow hvmloader to choose a non-zero iommu segment. > if iommu_seg > 0, then I will add a new iommu to guest iommu list and > update iommu_segment field accordingly. But I seem to see no reason to > add multiple guest iommus to pci segment 0. I don't see a need for this at present too, and as I said before there's no need to implement support for multiple IOMMUs. The interface definition, however, has to be flexible enough so we don't need to introduce another interface in a few years time just because right now we don't expect multiple IOMMUs to be needed for guests (after all, there must be reasons why real hardware frequently comes with more than one IOMMU despite supporting only a single PCI segment - just consider the guest visible NUMA case, where you would quite likely want an IOMMU per guest visible node). Jan