From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v2 0/2] Introduce segmented addresses to the emulator Date: Thu, 18 Nov 2010 14:03:42 -0200 Message-ID: <20101118160342.GI14327@amt.cnet> References: <1290000502-28669-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43301 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754311Ab0KRQPy (ORCPT ); Thu, 18 Nov 2010 11:15:54 -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 oAIGFsp6001438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Nov 2010 11:15:54 -0500 Content-Disposition: inline In-Reply-To: <1290000502-28669-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 17, 2010 at 03:28:20PM +0200, Avi Kivity wrote: > 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(-) Applied, thanks.