Re: [libvirt] [PATCH 1/4 v2] pci: Move some pci sriov helper code out of node device driver to util/pci

2011-08-15 Thread Roopa Prabhu
On 8/15/11 3:47 AM, "Stefan Berger" wrote: > On 08/12/2011 07:14 PM, Roopa Prabhu wrote: >> From: Roopa Prabhu >> >> This patch moves some of the sriov related pci code from node_device driver >> to src/util/pci.[ch]. Some functions had to go thru name and argument list >> change to accommoda

Re: [libvirt] [PATCH 1/4 v2] pci: Move some pci sriov helper code out of node device driver to util/pci

2011-08-15 Thread Roopa Prabhu
On 8/15/11 3:58 AM, "Stefan Berger" wrote: > On 08/12/2011 07:14 PM, Roopa Prabhu wrote: >> >> -get_physical_function(sysfs_path, d); >> -get_virtual_functions(sysfs_path, d); >> +if >> (!pciGetPhysicalFunction(sysfs_path,&d->pci_dev.physical_function)) >> +

Re: [libvirt] [PATCH 1/4 v2] pci: Move some pci sriov helper code out of node device driver to util/pci

2011-08-15 Thread Stefan Berger
On 08/12/2011 07:14 PM, Roopa Prabhu wrote: -get_physical_function(sysfs_path, d); -get_virtual_functions(sysfs_path, d); +if (!pciGetPhysicalFunction(sysfs_path,&d->pci_dev.physical_function)) +d->pci_dev.flags |= VIR_NODE_DEV_CAP_FLAG_PCI_PHYSICAL_FUNCTION;

Re: [libvirt] [PATCH 1/4 v2] pci: Move some pci sriov helper code out of node device driver to util/pci

2011-08-15 Thread Stefan Berger
On 08/12/2011 07:14 PM, Roopa Prabhu wrote: From: Roopa Prabhu This patch moves some of the sriov related pci code from node_device driver to src/util/pci.[ch]. Some functions had to go thru name and argument list change to accommodate the move. Signed-off-by: Roopa Prabhu Signed-off-by: Christ

[libvirt] [PATCH 1/4 v2] pci: Move some pci sriov helper code out of node device driver to util/pci

2011-08-12 Thread Roopa Prabhu
From: Roopa Prabhu This patch moves some of the sriov related pci code from node_device driver to src/util/pci.[ch]. Some functions had to go thru name and argument list change to accommodate the move. Signed-off-by: Roopa Prabhu Signed-off-by: Christian Benvenuti Signed-off-by: David Wang --