mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 01:16:50 +00:00
DM: add vm reset API
vm reset API will be used by guest system reset and S3. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -405,6 +405,12 @@ vm_pause(struct vmctx *ctx)
|
||||
ioctl(ctx->fd, IC_PAUSE_VM, &ctx->vmid);
|
||||
}
|
||||
|
||||
void
|
||||
vm_reset(struct vmctx *ctx)
|
||||
{
|
||||
ioctl(ctx->fd, IC_RESET_VM, &ctx->vmid);
|
||||
}
|
||||
|
||||
static int suspend_mode = VM_SUSPEND_NONE;
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user