mirror of
https://github.com/qemu/qemu.git
synced 2026-11-10 22:04:44 +00:00
Import the hypervisor definitions needed to intercept guest exceptions
and to inject events back into a guest, in preparation for gdbstub
debugging support in the MSHV accelerator.
Add:
- union hv_intercept_parameters, struct hv_input_install_intercept and
HVCALL_INSTALL_INTERCEPT, used to install an exception intercept on
the partition;
- struct hv_x64_exception_intercept_message, the message delivered on
an intercepted exception, carrying the faulting RIP, the exception
vector and the instruction bytes;
- HV_X64_PENDING_EVENT_EXCEPTION, the pending-event type for an
exception.
These definitions mirror the hypervisor headers and have no functional
effect on their own.
Signed-off-by: Doru Blânzeanu <dblanzeanu@linux.microsoft.com>
Reviewed-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>