dm: add io port 0xF4 writing to force DM exit

This patch addes the debugexit function to DM. If it's enabled
by DM cmdline (by add --debugexit), the guest could write a
32bit value to port 0xF4 to trigger guest shutdown.

Tracked-on: #1465
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yin Fengwei
2018-10-16 10:41:53 +08:00
committed by wenlingz
parent 9f7642648b
commit 75b03bef3b
4 changed files with 109 additions and 2 deletions

View File

@@ -49,4 +49,6 @@ void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len);
void *dm_gpa2hva(uint64_t gpa, size_t size);
int virtio_uses_msix(void);
void ptdev_no_reset(bool enable);
void init_debugexit(void);
void deinit_debugexit(void);
#endif