mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 10:25:00 +00:00
dm: add new ioctl to create and destroy a device
Add IC_CREATE_DEVICE and IC_DESTROY_DEVICE ioctls to create and destroy an emulated device in hypervisor v3: change IC_CREATE_DEVICE and IC_DESTROY_DEVICE to IC_CREATE_HV_VDEV and IC_DESTROY_HV_VDEV Tracked-On: #4853 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -616,6 +616,18 @@ vm_unmap_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func,
|
||||
return ioctl(ctx->fd, IC_UNSET_MEMSEG, &memmap);
|
||||
}
|
||||
|
||||
int
|
||||
vm_create_hv_vdev(struct vmctx *ctx, struct acrn_emul_dev *dev)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_CREATE_HV_VDEV, dev);
|
||||
}
|
||||
|
||||
int
|
||||
vm_destroy_hv_vdev(struct vmctx *ctx, struct acrn_emul_dev *dev)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_DESTROY_HV_VDEV, dev);
|
||||
}
|
||||
|
||||
int
|
||||
vm_set_ptdev_intx_info(struct vmctx *ctx, uint16_t virt_bdf, uint16_t phys_bdf,
|
||||
int virt_pin, int phys_pin, bool pic_pin)
|
||||
|
Reference in New Issue
Block a user