From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v2 0/2] Introduce segmented addresses to the emulator Date: Wed, 17 Nov 2010 15:28:20 +0200 Message-ID: <1290000502-28669-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]:25252 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755736Ab0KQN2X (ORCPT ); Wed, 17 Nov 2010 08:28:23 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAHDSNih023823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Nov 2010 08:28:23 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAHDSMrl027783 for ; Wed, 17 Nov 2010 08:28:23 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Currently we lose segment information associated with memory operands. This prevents us from doing proper segment checks. This patchset prepares the way by remembering which segment is associated with a memory operand. Avi Kivity (2): KVM: x86 emulator: preserve an operand's segment identity v2: truncate linear address to 32 bits if not in long mode (thanks Gleb) KVM: x86 emulator: do not perform address calculations on linear addresses v2: fix typo arch/x86/include/asm/kvm_emulate.h | 5 +- arch/x86/kvm/emulate.c | 107 +++++++++++++++++++----------------- 2 files changed, 60 insertions(+), 52 deletions(-) -- 1.7.3.1