mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
HV: merge partition_mode.c and sharing_mode.c's code into vpci.c
Delete the 2 files and merge their code into vpci.c: hypervisor/dm/vpci/partition_mode.c hypervisor/dm/vpci/sharing_mode.c And change the Makefile accordingly Change PCI_PRIV_H_ to VPCI_PRIV_H_ in vpci_priv.h Some misra c fix: Add @pre for functions Add const to function parameters Tracked-On: #2534 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
320bf18321
commit
3be6c6593f
@@ -70,7 +70,7 @@ static int32_t validate(const struct pci_vdev *vdev)
|
||||
* @pre vdev->vpci != NULL
|
||||
* @pre vdev->vpci->vm != NULL
|
||||
*/
|
||||
void vdev_pt_init(struct pci_vdev *vdev)
|
||||
void vdev_pt_init(const struct pci_vdev *vdev)
|
||||
{
|
||||
int32_t ret;
|
||||
struct acrn_vm *vm = vdev->vpci->vm;
|
||||
|
Reference in New Issue
Block a user