mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 20:00:13 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user