]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/mshv: Integrate x86 instruction decoder/emulator
authorMagnus Kulke <magnuskulke@linux.microsoft.com>
Tue, 16 Sep 2025 16:48:40 +0000 (18:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Oct 2025 17:17:31 +0000 (19:17 +0200)
commit9bc6a1d29605a13c541629a651e41787af65a963
tree72c760daa3b8e9b3fc7e9684c0b6417ea6c7f428
parentf38e2a63e541730e114f6ed09e5f8719e388c8db
target/i386/mshv: Integrate x86 instruction decoder/emulator

Connect the x86 instruction decoder and emulator to the MSHV backend
to handle intercepted instructions. This enables software emulation
of MMIO operations in MSHV guests. MSHV has a translate_gva hypercall
that is used to accessing the physical guest memory.

A guest might read from unmapped memory regions (e.g. OVMF will probe
0xfed40000 for a vTPM). In those cases 0xFF bytes is returned instead of
aborting the execution.

Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250916164847.77883-21-magnuskulke@linux.microsoft.com
[mshv.h/mshv_int.h split. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/mshv/mem.c
include/system/mshv_int.h
target/i386/mshv/mshv-cpu.c