mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: check if there is enough room for all SRIOV VFs.
Make the SRIOV-Capable device invisible from SOS if there is no room for its all virtual functions. v2: fix a issue that if a PF has been dropped, the subsequent PF will be dropped too even there is room for its VFs. Tracked-On: #4433 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -14,6 +14,6 @@
|
||||
extern struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
|
||||
|
||||
struct pci_pdev;
|
||||
void fill_pci_dev_config(struct pci_pdev *pdev);
|
||||
void init_one_dev_config(struct pci_pdev *pdev);
|
||||
|
||||
#endif /* PCI_DEV_H_ */
|
||||
|
@@ -114,6 +114,7 @@
|
||||
|
||||
/* SRIOV Definitions */
|
||||
#define PCI_SRIOV_CAP_LEN 0x40U
|
||||
#define PCIR_SRIOV_TOTAL_VFS 0xEU
|
||||
|
||||
/* PCI Message Signalled Interrupts (MSI) */
|
||||
#define PCIR_MSI_CTRL 0x02U
|
||||
|
Reference in New Issue
Block a user