Re: [libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-24 Thread Moshe Levi
> Cc: libvir-list@redhat.com; Moshe Levi > Subject: Re: [libvirt] how to know if PCI device has SR-IOV PF capability > > On Mon, Nov 23, 2015 at 11:26:11AM -0500, Laine Stump wrote: > > On 11/23/2015 10:40 AM, Daniel P. Berrange wrote: > > >On Mon, Nov 23, 2015

Re: [libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-23 Thread Daniel P. Berrange
On Mon, Nov 23, 2015 at 11:26:11AM -0500, Laine Stump wrote: > On 11/23/2015 10:40 AM, Daniel P. Berrange wrote: > >On Mon, Nov 23, 2015 at 10:34:43AM -0500, Laine Stump wrote: > > > >>If we're going to switch to emiting virt_functions whenever a device has the > >>potential to provide VFs, we may

Re: [libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-23 Thread Laine Stump
On 11/23/2015 10:40 AM, Daniel P. Berrange wrote: On Mon, Nov 23, 2015 at 10:34:43AM -0500, Laine Stump wrote: If we're going to switch to emiting virt_functions whenever a device has the potential to provide VFs, we may as well make it worthwhile and also emit the maximum possible VFs for the

Re: [libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-23 Thread Daniel P. Berrange
On Mon, Nov 23, 2015 at 10:34:43AM -0500, Laine Stump wrote: > On 11/23/2015 05:05 AM, Daniel P. Berrange wrote: > >On Sun, Nov 22, 2015 at 11:04:28AM +, Moshe Levi wrote: > >>Hi, > >> > >>I was looking on the output of virsh nodedev-dumpxml on a PCI to see if it > >>has SR-IOV PF capability.

Re: [libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-23 Thread Laine Stump
On 11/23/2015 05:05 AM, Daniel P. Berrange wrote: On Sun, Nov 22, 2015 at 11:04:28AM +, Moshe Levi wrote: Hi, I was looking on the output of virsh nodedev-dumpxml on a PCI to see if it has SR-IOV PF capability. It seem that if the virtual functions are enables the xml look like [1] but if

Re: [libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-23 Thread Daniel P. Berrange
On Sun, Nov 22, 2015 at 11:04:28AM +, Moshe Levi wrote: > Hi, > > I was looking on the output of virsh nodedev-dumpxml on a PCI to see if it > has SR-IOV PF capability. > It seem that if the virtual functions are enables the xml look like [1] but > if the PCI has no VFs enabled the > output

[libvirt] how to know if PCI device has SR-IOV PF capability

2015-11-22 Thread Moshe Levi
Hi, I was looking on the output of virsh nodedev-dumpxml on a PCI to see if it has SR-IOV PF capability. It seem that if the virtual functions are enables the xml look like [1] but if the PCI has no VFs enabled the output is like in [2]. As you can see for PCI which has no VFs the tag doen'