mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 08:56:55 +00:00
dm: mmio_dev: add hypercall to support mmio device pass through
Add two hypercalls to support MMIO device pass through. Tracked-On: #5053 Signed-off-by: Li Fei1 <fei1.li@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -572,6 +572,18 @@ vm_deassign_pcidev(struct vmctx *ctx, struct acrn_assign_pcidev *pcidev)
|
||||
return ioctl(ctx->fd, IC_DEASSIGN_PCIDEV, pcidev);
|
||||
}
|
||||
|
||||
int
|
||||
vm_assign_mmiodev(struct vmctx *ctx, struct acrn_mmiodev *mmiodev)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_ASSIGN_MMIODEV, mmiodev);
|
||||
}
|
||||
|
||||
int
|
||||
vm_deassign_mmiodev(struct vmctx *ctx, struct acrn_mmiodev *mmiodev)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_DEASSIGN_MMIODEV, mmiodev);
|
||||
}
|
||||
|
||||
int
|
||||
vm_map_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func,
|
||||
vm_paddr_t gpa, size_t len, vm_paddr_t hpa)
|
||||
|
Reference in New Issue
Block a user