• Zhao, Yu's avatar
    xen/pciback: guest SR-IOV support for PV guest · fd5b221b
    Zhao, Yu authored
    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: default avatarJan Beulich <jbeulich@novell.com>
    Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    fd5b221b
conf_space_header.c 8.39 KB