From: "Jan Beulich" Subject: Re: Ping: [PATCH] x86/MSI: add mechanism to protect MSI-X table from PV guest accesses Date: Thu, 28 Feb 2013 13:46:35 +0000 Message-ID: <512F6DCB02000078000C2052@nat28.tlf.novell.com> References: <511297F502000078000BC935@nat28.tlf.novell.com> <5113776602000078000BCB8F@nat28.tlf.novell.com> <512F2FEA02000078000C1D17@nat28.tlf.novell.com> <512F4DE5.306@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <512F4DE5.306@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: "Keir (Xen.org)" , Ian Campbell , Haitao Shan , Donald D Dugger , xen-devel , "xiantao.zhang@intel.com" List-Id: xen-devel@lists.xenproject.org >>> On 28.02.13 at 13:30, Andrew Cooper wrote: > For what it is worth, I think the principle is good. One query I have > is whether it is sensible to restrict this to dom0, as the comments > indicate, or whether it should be permitted to be used by any domain > with appropriate permissions to manage PCI passthrough. No, I think this indeed ought to be restricted to Dom0 as the original owner of all devices. If Dom0 decides to had some devices for management to a second domain, the resource assignment nevertheless needs to be coordinated by Dom0, and hence the notification should also come from there. > How do you see dom0 attempting to use these hypercalls in an example of > passing a PCI device through to an untrusted domain? Right now my plan is to have pciback issue the hypercall right after having called pci_enable_device(), pending confirmation that resources won't change after that point anymore (see the mail I sent to Bjorn Helgaas earlier today, xen-devel Cc-ed). Jan