From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [pvops-dom0] [patch] Hook Linux's PCI probe and remove callbacks Date: Mon, 20 Jul 2009 10:00:57 -0700 Message-ID: <4A64A2C9.3060103@goop.org> References: <715D42877B251141A38726ABF5CABF2C0545AE597D@pdsmsx503.ccr.corp.intel.com> <4A6105CA.1000904@goop.org> <57C9024A16AD2D4C97DC78E552063EA3A90A8D30@orsmsx505.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <57C9024A16AD2D4C97DC78E552063EA3A90A8D30@orsmsx505.amr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Kay, Allen M" Cc: "'xen-devel@lists.xensource.com'" , "Han, Weidong" , 'Keir Fraser' , Jesse Barnes , "Jiang, Yunhong" List-Id: xen-devel@lists.xenproject.org On 07/17/09 16:42, Kay, Allen M wrote: > These hooks for two purposes: > > 1) Enabling of a SR-IOV virtual function. The hypercall will tell xen to setup VT-d context entries for the BDF corresponding to the new virtual function. This is required for SR-IOV to work. > > 2) PCI hot-plug support when devices are hot added/removed. Vt-d context entries and data structures in Xen needs to be modified accordingly. > > These hooks needs to be enabled before either of these functions are performed - I assume after dom0 boots. > > Can you suggest a better way to do this? > The best person to ask is probably Jesse Barnes (cc:d). In general the way to approach these things is to either find something in the kernel which does something analogous and use the same interfaces, possibly extending them a bit if necessary. J