mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: dm: Use new virtual device management ioctls
IC_ADD_HV_VDEV -> ACRN_IOCTL_CREATE_VDEV IC_REMOVE_HV_VDEV -> ACRN_IOCTL_DESTROY_VDEV struct acrn_emul_dev -> struct acrn_vdev Also, move struct acrn_vdev to acrn_common.h as this structure is used by both DM and HV. Tracked-On: #6282 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
@@ -37,7 +37,7 @@ extern const struct pci_vdev_ops vpci_ivshmem_ops;
|
||||
*/
|
||||
void init_ivshmem_shared_memory(void);
|
||||
|
||||
int32_t create_ivshmem_vdev(struct acrn_vm *vm, struct acrn_emul_dev *dev);
|
||||
int32_t create_ivshmem_vdev(struct acrn_vm *vm, struct acrn_vdev *dev);
|
||||
int32_t destroy_ivshmem_vdev(struct pci_vdev *vdev);
|
||||
#endif /* CONFIG_IVSHMEM_ENABLED */
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
extern const struct pci_vdev_ops vmcs9900_ops;
|
||||
void trigger_vmcs9900_msix(struct pci_vdev *vdev);
|
||||
int32_t create_vmcs9900_vdev(struct acrn_vm *vm, struct acrn_emul_dev *dev);
|
||||
int32_t create_vmcs9900_vdev(struct acrn_vm *vm, struct acrn_vdev *dev);
|
||||
int32_t destroy_vmcs9900_vdev(struct pci_vdev *vdev);
|
||||
|
||||
#endif
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
extern const struct pci_vdev_ops vrp_ops;
|
||||
|
||||
int32_t create_vrp(struct acrn_vm *vm, struct acrn_emul_dev *dev);
|
||||
int32_t create_vrp(struct acrn_vm *vm, struct acrn_vdev *dev);
|
||||
int32_t destroy_vrp(struct pci_vdev *vdev);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user