All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [RFC PATCH v2 4/4] x86 emulator: Eagerly commit emulation ctxt eip in emulate_int_real()
Date: Sun, 15 Aug 2010 15:42:16 +0300	[thread overview]
Message-ID: <4C67E0A8.8070504@redhat.com> (raw)
In-Reply-To: <1281745181-4426-3-git-send-email-m.gamal005@gmail.com>

  On 08/14/2010 03:19 AM, Mohammed Gamal wrote:
> emulate_int_real() is to be used outside the emulator. Hence, we shouldn't
> wait for writeback to write the eip value stored in the decode cache. Save it
> in emulation context eagerly instead.
>
> Signed-off-by: Mohammed Gamal<m.gamal005@gmail.com>
> ---
>   arch/x86/kvm/emulate.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
> index 32498e3..ae45b04 100644
> --- a/arch/x86/kvm/emulate.c
> +++ b/arch/x86/kvm/emulate.c
> @@ -1245,7 +1245,7 @@ int emulate_int_real(struct x86_emulate_ctxt *ctxt,
>   	if (rc != X86EMUL_CONTINUE)
>   		return rc;
>
> -	c->eip = eip;
> +	ctxt->eip = eip;
>
>   	return rc;
>   }

Doesn't seem right.  It should work like the rest of the emulator.

Instead, the wrapper code in x86.c should do this.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-08-15 16:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-14  0:19 [RFC PATCH v2 2/4] x86: Add inject_realmode_interrupt() wrapper Mohammed Gamal
2010-08-14  0:19 ` [RFC PATCH v2 3/4] VMX: Emulated real mode interrupt injection Mohammed Gamal
2010-08-14  0:19 ` [RFC PATCH v2 4/4] x86 emulator: Eagerly commit emulation ctxt eip in emulate_int_real() Mohammed Gamal
2010-08-15 12:42   ` Avi Kivity [this message]
2010-08-15  7:41 ` [RFC PATCH v2 2/4] x86: Add inject_realmode_interrupt() wrapper Gleb Natapov
2010-08-15 12:37 ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C67E0A8.8070504@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=m.gamal005@gmail.com \
    --cc=mtosatti@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.