Skip to content

more VMX real mode emulation fixes

Gleb Natapov kvm 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 14 repliesApplied
  2. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- emulate_invalid_guest_state=0 broke again. Fix it.
- additional patch to handle IO during emulation caused by #GP

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6KVM: emulator: drop RPL check from linearize() functionarch/x86/kvm/emulate.c+1 -67 replies
2/6KVM: emulator: implement fninit, fnstsw, fnstcwarch/x86/kvm/emulate.c+125 -10 replies
3/6KVM: VMX: make rmode_segment_valid() more strict.arch/x86/kvm/vmx.c+1 -30 replies
4/6KVM: VMX: fix emulation of invalid guest state.arch/x86/kvm/vmx.c+68 -540 replies
5/6KVM: VMX: Do not fix segment register during vcpu initialization.arch/x86/kvm/vmx.c+5 -130 replies
6/6KVM: VMX: handle IO when emulation is due to #GP in real mode.arch/x86/kvm/vmx.c+41 -346 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/6] more VMX real mode emulation fixes

This series goes on top of my previous one: "Fix emulate_invalid_guest_state=0 part 2". It does not only fixes bugs, but also does a nice cleanup of VMX real mode emulation. All real mode segment register mangling is now contained in fix_rmode_seg() function.

Changelog:
v1 -> v2:
- emulate_invalid_guest_state=0 broke again. Fix it.
- additional patch to handle IO during emulation caused by #GP

Gleb Natapov (6):
KVM: emulator: drop RPL check from linearize() function
KVM: emulator: implement fninit, fnstsw, fnstcw
KVM: VMX: make rmode_segment_valid() more strict.
KVM: VMX: fix emulation of invalid guest state.
KVM: VMX: Do not fix segment register during vcpu initialization.
KVM: VMX: handle IO when emulation is due to #GP in real mode.

 arch/x86/kvm/emulate.c |  133 +++++++++++++++++++++++++++--
 arch/x86/kvm/vmx.c     |  219 +++++++++++++++++++++++++-----------------------
 2 files changed, 241 insertions(+), 111 deletions(-)
Signature · 1 line
1.7.10.4