From: Ian Jackson Subject: Re: [PATCH 2/2] xl: Add "seize" option to PCI devices Date: Tue, 4 Mar 2014 14:09:02 +0000 Message-ID: <21269.56958.357246.933315@mariner.uk.xensource.com> References: <1393940299-8221-1-git-send-email-george.dunlap@eu.citrix.com> <1393940299-8221-2-git-send-email-george.dunlap@eu.citrix.com> <5315DDD3.6030201@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5315DDD3.6030201@eu.citrix.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: George Dunlap Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("Re: [PATCH 2/2] xl: Add "seize" option to PCI devices"): > While I'm here, might as well ask: I was going back and forth on this > one, whether "seize" should actually be something passed in via the pci > struct, as it's not really a property of the pci device itself. Other > options would be: > 1. Keep it out of libxl entirely: have the toolstack (in this case xl) do it > 2. Have it done in libxl's domain creation > 3. Make it an extra argument to libxl_pci_add() > > When having my initial "second thoughts", #1 seemed most reasonable. > But I'm not aware of any other such options handled in xl at the moment; > this would be the only example of such an option. It should definitely be in the pci struct. These libxl structs all specify not just how the device should appear in the guest, but also the host resources which are to be used. To my mind that very much includes the manner in which the host resource allocation is to be done (such as whether or not to automatically seize the device). Ian.