mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
HV: unify the sharing_mode_vpci_init and partition_mode_vpci_init code
Put the init code in init_vdev_for_pdev for both sos and pre-launched VMs, and remove sharing_mode_vpci_init() and partition_mode_vpci_init(). Rename functions used by init_vdev_for_pdev: vhostbridge_init --> init_vhostbridge vmsi_init --> init_vmsi vmsix_init --> init_vmsix Tracked-On: #3056 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
f873b843de
commit
3a6c63f2d8
@@ -188,7 +188,7 @@ static void buf_write32(uint8_t buf[], uint32_t val)
|
||||
buf[3] = (uint8_t)((val >> 24U) & 0xFFU);
|
||||
}
|
||||
|
||||
void vmsi_init(struct pci_vdev *vdev)
|
||||
void init_vmsi(struct pci_vdev *vdev)
|
||||
{
|
||||
struct pci_pdev *pdev = vdev->pdev;
|
||||
uint32_t val;
|
||||
|
Reference in New Issue
Block a user