From: Zhao, Yu Date: Wed, 3 Mar 2010 18:27:55 +0000 (-0500) Subject: xen/pciback: guest SR-IOV support for PV guest X-Git-Tag: v3.1-rc1~318^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd5b221b348adf63d413de9adad030e4f13664b7;p=pandora-kernel.git xen/pciback: guest SR-IOV support for PV guest These changes are for PV guest to use Virtual Function. Because the VF's vendor, device registers in cfg space are 0xffff, which are invalid and ignored by PCI device scan. Values in 'struct pci_dev' are fixed up by SR-IOV code, and using these values will present correct VID and DID to PV guest kernel. And command registers in the cfg space are read only 0, which means we have to emulate MMIO enable bit (VF only uses MMIO resource) so PV kernel can work properly. Acked-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed