mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-08 13:19:03 +00:00
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>
20 lines
381 B
C
20 lines
381 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PCI_DEV_H_
|
|
#define PCI_DEV_H_
|
|
|
|
#include <vm_config.h>
|
|
|
|
#define SOS_EMULATED_PCI_DEV_NUM 1U
|
|
|
|
extern struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
|
|
|
|
struct pci_pdev;
|
|
void init_one_dev_config(struct pci_pdev *pdev);
|
|
|
|
#endif /* PCI_DEV_H_ */
|