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:
Yin Fengwei
2018-07-16 16:15:58 +08:00
committed by lijinxia
parent 8d12c06270
commit b33012aee8
3 changed files with 8 additions and 0 deletions

View File

@@ -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