Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Zhao, Yu
Matthew Wilcox wrote: On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote: +++ b/include/linux/pci.h @@ -87,6 +87,12 @@ enum { /* #6: expansion ROM */ PCI_ROM_RESOURCE, + /* device specific resources */ +#ifdef CONFIG_PCI_IOV + PCI_IOV_RESOURCES, + PCI_IOV_RESOURCES_

Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Greg KH
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote: > +struct pci_iov { > + int cap;/* capability position */ > + int align; /* page size used to map memory space */ > + int is_enabled; /* status of SR-IOV */ > + int nentries; /* n

Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Matthew Wilcox
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote: > +++ b/drivers/pci/pci.h > @@ -176,4 +176,59 @@ static inline int pci_ari_enabled(struct pci_dev *dev) > +struct pci_iov { > + int cap;/* capability position */ > + int align; /* page size used to map mem

[PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Yu Zhao
Support Single Root I/O Virtualization (SR-IOV) capability. Signed-off-by: Yu Zhao <[EMAIL PROTECTED]> --- drivers/pci/Kconfig | 12 + drivers/pci/Makefile |2 + drivers/pci/iov.c| 853 ++ drivers/pci/pci-sysfs.c |4 + driv