From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] KVM: x86 emulator: fix %rip-relative addressing with immediate source operand Date: Tue, 21 Jun 2011 12:45:23 -0300 Message-ID: <20110621154523.GA708@amt.cnet> References: <1308500471-6222-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, xin.li@intel.com To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1032 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150Ab1FUPpc (ORCPT ); Tue, 21 Jun 2011 11:45:32 -0400 Content-Disposition: inline In-Reply-To: <1308500471-6222-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Jun 19, 2011 at 07:21:11PM +0300, Avi Kivity wrote: > %rip-relative addressing is relative to the first byte of the next instruction, > so we need to add %rip only after we've fetched any immediate bytes. > > Signed-off-by: Avi Kivity > --- > arch/x86/kvm/emulate.c | 12 +++++++----- > 1 files changed, 7 insertions(+), 5 deletions(-) Applied, thanks.