From: "Jan Beulich" Subject: Re: [RFC 14/19] xen/passthrough: dt: Add new domctl XEN_DOMCTL_assign_dt_device Date: Tue, 17 Jun 2014 14:55:09 +0100 Message-ID: <53A064DD020000780001B1A4@mail.emea.novell.com> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> <1402935486-29136-15-git-send-email-julien.grall@linaro.org> <53A019C5020000780001AE2D@mail.emea.novell.com> <53A04134.8040909@linaro.org> <53A05F1B020000780001B13C@mail.emea.novell.com> <53A0473A.7090902@linaro.org> 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 1Wwtr0-0000xV-5K for xen-devel@lists.xenproject.org; Tue, 17 Jun 2014 13:55:14 +0000 In-Reply-To: <53A0473A.7090902@linaro.org> 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: Julien Grall Cc: ian.campbell@citrix.com, Stefano Stabellini , tim@xen.org, Ian Jackson , stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 17.06.14 at 15:48, wrote: > I'm not sure why we function is used but from the DT pass-through POV, > we only need to ask the hypervisor to assign this specific device to the > guest. The hypercall will return "ok" if it has succeeded or an error if > the device is not protected (i.e not behind an IOMMU). I don't see why > we should have a test-assign hypercall in this case... The reason for its existence isn't entirely clear to me either - you may want to ping whoever added this. > Anyway, I'm fine to introduce the hypercall for consistency but I don't > plan to use it in the toolstack because it's pointless. It's the tools maintainers' call in the end, but my advice would be to not have it used in the PCI case, but not in the DT one. Either rip it out on the PCI side too, or have it be called even if not strictly needed. Jan