From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCHv2 0/6] more VMX real mode emulation fixes Date: Thu, 20 Dec 2012 16:57:41 +0200 Message-ID: <1356015467-32607-1-git-send-email-gleb@redhat.com> Cc: mtosatti@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:64290 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908Ab2LTO5z (ORCPT ); Thu, 20 Dec 2012 09:57:55 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBKEvtFv031485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 20 Dec 2012 09:57:55 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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