mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
HV: unify the sharing_mode_cfgread and partition_mode_cfgread code
Put the cfgread code in read_cfg() for both sos and pre-launched VMs, and remove sharing_mode_cfgread() and partition_mode_cfgread(). Rename functions used by read_cfg(): vhostbridge_cfgread --> vhostbridge_read_cfg vdev_pt_cfgread --> vdev_pt_read_cfg vmsi_cfgread --> vmsi_read_cfg vmsix_cfgread --> vmsix_read_cfg Tracked-On: #3056 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
19af3bc8aa
commit
7635a68f38
@@ -43,8 +43,10 @@ static inline uint32_t get_bar_base(uint32_t bar)
|
||||
|
||||
/**
|
||||
* @pre vdev != NULL
|
||||
* @pre vdev->vpci != NULL
|
||||
* @pre vdev->vpci->vm != NULL
|
||||
*/
|
||||
int32_t vdev_pt_cfgread(const struct pci_vdev *vdev, uint32_t offset,
|
||||
int32_t vdev_pt_read_cfg(const struct pci_vdev *vdev, uint32_t offset,
|
||||
uint32_t bytes, uint32_t *val)
|
||||
{
|
||||
int32_t ret = -ENODEV;
|
||||
|
Reference in New Issue
Block a user