Re: [RFC PATCH 22/25] target/i386/mshv: Integrate x86 instruction decoder/emulator

2025-05-28 Thread Magnus Kulke
On Tue, May 20, 2025 at 10:38:28PM +, Wei Liu wrote: > On Tue, May 20, 2025 at 01:30:15PM +0200, Magnus Kulke wrote: > > +init_emu(&mshv_x86_emul_ops); > > If I'm not mistaken, the name mshv_init_cpu_logic suggests this function > is called every time a CPU is initialized. There is no need

Re: [RFC PATCH 22/25] target/i386/mshv: Integrate x86 instruction decoder/emulator

2025-05-20 Thread Wei Liu
On Tue, May 20, 2025 at 01:30:15PM +0200, Magnus Kulke wrote: > 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 access

[RFC PATCH 22/25] target/i386/mshv: Integrate x86 instruction decoder/emulator

2025-05-20 Thread Magnus Kulke
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 memor