On Tue, May 05, 2026 at 09:50:26PM +0300, Doru Blânzeanu wrote: > Change the mshv_load_regs to use the register page when it is mmapped > and is valid. > Otherwise use the existing logic that uses ioctls to fetch registers. > > When retrieving the special registers, there are some registers that are > not present in the register page: TR, LDTR, GDTR, IDTR, CR2, APIC_BASE. > As this registers are not likely to be used in an MMIO/PIO operation, > and to avoid a hypercall overhead we do not retrieve them. > > Local testing showed no regression when using this logic. To properly > retrieve all the necessary registers for each decoded operation implies > having a mechanism that tracks the state of each register, which is > beyond the scope of this patch series. > > Signed-off-by: Doru Blânzeanu <[email protected]> > --- > target/i386/mshv/mshv-cpu.c | 99 +++++++++++++++++++++++++++++++++---- > 1 file changed, 90 insertions(+), 9 deletions(-)
Reviewed-by: Anirudh Rayabharam (Microsoft) <[email protected]>
