mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 04:09:11 +00:00
dm: Add vhm ioeventfd and irqfd interfaces
ioeventfd and irqfd support for vhm was introduced in kernel vhm module. We provide the interfaces of them for DM users. Tracked-On: #1329 Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -657,3 +657,15 @@ vm_intr_monitor(struct vmctx *ctx, void *intr_buf)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_VM_INTR_MONITOR, intr_buf);
|
||||
}
|
||||
|
||||
int
|
||||
vm_ioeventfd(struct vmctx *ctx, struct acrn_ioeventfd *args)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_EVENT_IOEVENTFD, args);
|
||||
}
|
||||
|
||||
int
|
||||
vm_irqfd(struct vmctx *ctx, struct acrn_irqfd *args)
|
||||
{
|
||||
return ioctl(ctx->fd, IC_EVENT_IRQFD, args);
|
||||
}
|
||||
|
Reference in New Issue
Block a user