]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/mshv: Implement mshv_vcpu_run()
authorMagnus Kulke <magnuskulke@linux.microsoft.com>
Tue, 16 Sep 2025 16:48:42 +0000 (18:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Oct 2025 17:17:31 +0000 (19:17 +0200)
commit6dec60528c419781f1f79cd9837d5f26415a3fd7
treeea73794cb8f0f21e3e479bd539990e7eb8552a4a
parent64118f452cbd97cd9fa790b1c15b65b435f136d2
target/i386/mshv: Implement mshv_vcpu_run()

Add the main vCPU execution loop for MSHV using the MSHV_RUN_VP ioctl.

The execution loop handles guest entry and VM exits. There are handlers for
memory r/w, PIO and MMIO to which the exit events are dispatched.

In case of MMIO the i386 instruction decoder/emulator is invoked to
perform the operation in user space.

Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250916164847.77883-23-magnuskulke@linux.microsoft.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/mshv/mshv-cpu.c