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(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html