* Does it support to specify virtual function in guest for assigned device @ 2009-09-08 8:10 Han, Weidong 2009-09-08 22:46 ` Simon Horman 0 siblings, 1 reply; 5+ messages in thread From: Han, Weidong @ 2009-09-08 8:10 UTC (permalink / raw) To: 'xen-devel@lists.xensource.com'; +Cc: 'Simon Horman' Hi Simon, You did lots of work on multiple functions passthrough. We can specify virtual slot for assigned device like pci=[ '01:00.0@5' ]. Does it support to specify virtual function in guest for assigned device? For example, I want to specify virtual bdf 00:05.1 for device 01:00.1. Thanks. Regards, Weidong ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Does it support to specify virtual function in guest for assigned device 2009-09-08 8:10 Does it support to specify virtual function in guest for assigned device Han, Weidong @ 2009-09-08 22:46 ` Simon Horman 2009-09-08 22:52 ` Han, Weidong 0 siblings, 1 reply; 5+ messages in thread From: Simon Horman @ 2009-09-08 22:46 UTC (permalink / raw) To: Han, Weidong; +Cc: 'xen-devel@lists.xensource.com' On Tue, Sep 08, 2009 at 04:10:57PM +0800, Han, Weidong wrote: > Hi Simon, > > You did lots of work on multiple functions passthrough. We can specify > virtual slot for assigned device like pci=[ '01:00.0@5' ]. Does it > support to specify virtual function in guest for assigned device? For > example, I want to specify virtual bdf 00:05.1 for device 01:00.1. Hi Weidong, Yes, as of changeset "xend: pass-through: Extend multi-function mapping" (20012:3242351f9c67) is is possible to specify the virtual function. However, this is only possible for multi-function pass-through. When only a single function is passed through the virtual function will always be zero, because PCI devices must always have function 0 present. So the closest that you could do when passing through 01:00.1 is to get virtual function 00:05.0 by specifying '01:00.1@5'. If you passed through another function of 01:00 at the same time as 01:00.1, say 01:00.0, then you could explicitly choose to have 01:00.1 assigned to 00:05.1 and 01:00.0 assigned to 00:05.0 using '00:05.0=0,1=1@5'. Actually that would be the default as it is just an identity mapping, so the same result would be achieved by '00:05.0,1@5'. A more interesting case would be to reverse the mapping so 00:05.0 -> 01:00.1 and 00:05.1 -> 00:05.0, which could be achieved using '00:05.0=1,1=0@5'. ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Does it support to specify virtual function in guest for assigned device 2009-09-08 22:46 ` Simon Horman @ 2009-09-08 22:52 ` Han, Weidong 2009-09-08 23:17 ` Simon Horman 0 siblings, 1 reply; 5+ messages in thread From: Han, Weidong @ 2009-09-08 22:52 UTC (permalink / raw) To: 'Simon Horman'; +Cc: 'xen-devel@lists.xensource.com' Simon Horman wrote: > On Tue, Sep 08, 2009 at 04:10:57PM +0800, Han, Weidong wrote: >> Hi Simon, >> >> You did lots of work on multiple functions passthrough. We can >> specify virtual slot for assigned device like pci=[ '01:00.0@5' ]. >> Does it support to specify virtual function in guest for assigned >> device? For example, I want to specify virtual bdf 00:05.1 for >> device 01:00.1. > > Hi Weidong, > > Yes, as of changeset "xend: pass-through: Extend multi-function > mapping" (20012:3242351f9c67) is is possible to specify the virtual > function. > > However, this is only possible for multi-function pass-through. > When only a single function is passed through the virtual function > will always be zero, because PCI devices must always have function 0 > present. > > So the closest that you could do when passing through 01:00.1 is to > get virtual function 00:05.0 by specifying '01:00.1@5'. > > If you passed through another function of 01:00 at the same time as > 01:00.1, say 01:00.0, then you could explicitly choose to have 01:00.1 > assigned to 00:05.1 and 01:00.0 assigned to 00:05.0 using > '00:05.0=0,1=1@5'. > > Actually that would be the default as it is just an identity mapping, > so the same result would be achieved by '00:05.0,1@5'. A more > interesting case would be to reverse the mapping so 00:05.0 -> > 01:00.1 and 00:05.1 -> 00:05.0, which could be achieved using > '00:05.0=1,1=0@5'. Hi Simon, Thanks for your detailed explanation. I need the option '00:05.0=0,1=1@5'. BTW, did you add these option explanation to any document? It is helpful if you do it. Regards, Weidong ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Does it support to specify virtual function in guest for assigned device 2009-09-08 22:52 ` Han, Weidong @ 2009-09-08 23:17 ` Simon Horman 2009-09-09 1:37 ` Han, Weidong 0 siblings, 1 reply; 5+ messages in thread From: Simon Horman @ 2009-09-08 23:17 UTC (permalink / raw) To: Han, Weidong; +Cc: 'xen-devel@lists.xensource.com' On Wed, Sep 09, 2009 at 06:52:05AM +0800, Han, Weidong wrote: > > Hi Simon, > > Thanks for your detailed explanation. I need the option '00:05.0=0,1=1@5'. BTW, did you add these option explanation to any document? It is helpful if you do it. Hi Weidong, I have put some details about this up at: http://wiki.xensource.com/xenwiki/BDFNotation#multi-function Which is referenced from: http://wiki.xensource.com/xenwiki/VTdHowTo ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Does it support to specify virtual function in guest for assigned device 2009-09-08 23:17 ` Simon Horman @ 2009-09-09 1:37 ` Han, Weidong 0 siblings, 0 replies; 5+ messages in thread From: Han, Weidong @ 2009-09-09 1:37 UTC (permalink / raw) To: 'Simon Horman'; +Cc: 'xen-devel@lists.xensource.com' Simon Horman wrote: > On Wed, Sep 09, 2009 at 06:52:05AM +0800, Han, Weidong wrote: >> >> Hi Simon, >> >> Thanks for your detailed explanation. I need the option >> '00:05.0=0,1=1@5'. BTW, did you add these option explanation to any >> document? It is helpful if you do it. > > Hi Weidong, > > I have put some details about this up at: > http://wiki.xensource.com/xenwiki/BDFNotation#multi-function > > Which is referenced from: > http://wiki.xensource.com/xenwiki/VTdHowTo It's good. Thanks. Regards, Weidong ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-09 1:37 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-09-08 8:10 Does it support to specify virtual function in guest for assigned device Han, Weidong 2009-09-08 22:46 ` Simon Horman 2009-09-08 22:52 ` Han, Weidong 2009-09-08 23:17 ` Simon Horman 2009-09-09 1:37 ` Han, Weidong
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.