From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 0/2] Fix vmx real-mode state leakage Date: Mon, 3 Jan 2011 14:28:50 +0200 Message-ID: <1294057732-11364-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:8411 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754527Ab1ACM3F (ORCPT ); Mon, 3 Jan 2011 07:29:05 -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.13.8/8.13.8) with ESMTP id p03CT48g032298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Jan 2011 07:29:05 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p03CT4mb021430 for ; Mon, 3 Jan 2011 07:29:04 -0500 Sender: kvm-owner@vger.kernel.org List-ID: When emulating real mode, we fake some segment state to conform with vm86 mode. Unfortunately, we allow the guest to see this fake state if we live migrate when this state is in effect. This patchset corrects the problem. Avi Kivity (2): KVM: VMX: Save and restore tr selector across mode switches KVM: VMX: Avoid leaking fake realmode state to userspace arch/x86/kvm/vmx.c | 45 ++++++++++++++++++++++++++++++++++++++------- 1 files changed, 38 insertions(+), 7 deletions(-)