File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,12 @@ vm_pause(struct vmctx *ctx)
405
405
ioctl (ctx -> fd , IC_PAUSE_VM , & ctx -> vmid );
406
406
}
407
407
408
+ void
409
+ vm_reset (struct vmctx * ctx )
410
+ {
411
+ ioctl (ctx -> fd , IC_RESET_VM , & ctx -> vmid );
412
+ }
413
+
408
414
static int suspend_mode = VM_SUSPEND_NONE ;
409
415
410
416
void
Original file line number Diff line number Diff line change 72
72
#define IC_START_VM _IC_ID(IC_ID, IC_ID_VM_BASE + 0x02)
73
73
#define IC_PAUSE_VM _IC_ID(IC_ID, IC_ID_VM_BASE + 0x03)
74
74
#define IC_CREATE_VCPU _IC_ID(IC_ID, IC_ID_VM_BASE + 0x04)
75
+ #define IC_RESET_VM _IC_ID(IC_ID, IC_ID_VM_BASE + 0x05)
75
76
76
77
/* IRQ and Interrupts */
77
78
#define IC_ID_IRQ_BASE 0x20UL
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ int vm_get_device_fd(struct vmctx *ctx);
99
99
struct vmctx * vm_open (const char * name );
100
100
void vm_close (struct vmctx * ctx );
101
101
void vm_pause (struct vmctx * ctx );
102
+ void vm_reset (struct vmctx * ctx );
102
103
int vm_set_shared_io_page (struct vmctx * ctx , uint64_t page_vma );
103
104
int vm_create_ioreq_client (struct vmctx * ctx );
104
105
int vm_destroy_ioreq_client (struct vmctx * ctx );
You can’t perform that action at this time.
0 commit comments