mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
HV: remove vdev ops for sharing mode
Remove vdev ops for sharing mode, directly call the corresponding functions instead of calling the ops callbacks (indirectly) Remove alloc_pci_vdev() and merge its code into init_vdev_for_pdev() to simplify code Remove @pre for local variables Change the return value from int32_t to void to comply with misra c and add ASSERT in the functions (if necessary) to verify the assumptions for debug build: vmsi_init vmsix_init vmsi_deinit vmsix_deinit Add @pre for vmsix_init_helper and make it a void function, use ASSERT to verify the assumption for debug build. Add ASSERT in get_sos_vm Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -77,11 +77,7 @@ union pci_cfgdata {
|
||||
};
|
||||
|
||||
struct pci_vdev {
|
||||
#ifndef CONFIG_PARTITION_MODE
|
||||
#define MAX_VPCI_DEV_OPS 4U
|
||||
struct pci_vdev_ops ops[MAX_VPCI_DEV_OPS];
|
||||
uint32_t nr_ops;
|
||||
#else
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
const struct pci_vdev_ops *ops;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user