]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/emulate: Allow instruction decoding from stream
authorMagnus Kulke <magnuskulke@linux.microsoft.com>
Tue, 16 Sep 2025 16:48:22 +0000 (18:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Oct 2025 17:17:29 +0000 (19:17 +0200)
commit1e25327b244a217078e3fa5df18322c70932f478
tree50c2a1ecee7a0beba44a0c2ddc1044aadce29432
parent37e12da5df8eb74042f11e9e7bec8a50b8090adb
target/i386/emulate: Allow instruction decoding from stream

Introduce a new helper function to decode x86 instructions from a
raw instruction byte stream. MSHV delivers an instruction stream in a
buffer of the vm_exit message. It can be used to speed up MMIO
emulation, since instructions do not have to be fetched and translated.

Added "fetch_instruction()" op to x86_emul_ops() to improve
traceability.

Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250916164847.77883-3-magnuskulke@linux.microsoft.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/emulate/x86_decode.c
target/i386/emulate/x86_decode.h
target/i386/emulate/x86_emu.c
target/i386/emulate/x86_emu.h