mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 01:16:50 +00:00
dm: Add vm_clear_ioreq to clear ioreq status
VHM will provide a ioctl to clear all IO requests' status. This is useful to handle ioreqs in VM normal reboot and emergency reboot. Tracked-On: #1821 Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -386,6 +386,12 @@ vm_reset(struct vmctx *ctx)
|
||||
ioctl(ctx->fd, IC_RESET_VM, &ctx->vmid);
|
||||
}
|
||||
|
||||
void
|
||||
vm_clear_ioreq(struct vmctx *ctx)
|
||||
{
|
||||
ioctl(ctx->fd, IC_CLEAR_VM_IOREQ, NULL);
|
||||
}
|
||||
|
||||
static int suspend_mode = VM_SUSPEND_NONE;
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user