public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, Mohammed Gamal <m.gamal005@gmail.com>
Subject: Re: [PATCH 0/4] Real mode interrupt injection emulation
Date: Tue, 21 Sep 2010 15:32:59 -0300	[thread overview]
Message-ID: <20100921183259.GC22536@amt.cnet> (raw)
In-Reply-To: <1284899648-19958-1-git-send-email-avi@redhat.com>

On Sun, Sep 19, 2010 at 02:34:04PM +0200, Avi Kivity wrote:
> Our current real mode interrupt injection injects external interrupts as
> software interrupts, which is somewhat hacky.  This is problematic in big
> real mode (can't use vmx there) and on via processors (a cpu bug prevents
> this from working correctly).
> 
> Replace the current mechanism with emulation; we now inject the interrupt
> by looking up the vector in the IVT, updating the stack, etc. using the
> emulator. This is somewhat slower but works in all cases.
> 
> Avi Kivity (1):
>   KVM: VMX: Respect interrupt window in big real mode
> 
> Mohammed Gamal (3):
>   KVM: x86 emulator: Expose emulate_int_real()
>   KVM: Add kvm_inject_realmode_interrupt() wrapper
>   KVM: VMX: Emulated real mode interrupt injection
> 
>  arch/x86/include/asm/kvm_emulate.h |    3 +-
>  arch/x86/kvm/vmx.c                 |   74 +++++++----------------------------
>  arch/x86/kvm/x86.c                 |   29 ++++++++++++++
>  arch/x86/kvm/x86.h                 |    1 +
>  4 files changed, 47 insertions(+), 60 deletions(-)
> 
> -- 
> 1.7.2.3

Applied, thanks.


      parent reply	other threads:[~2010-09-22 20:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-19 12:34 [PATCH 0/4] Real mode interrupt injection emulation Avi Kivity
2010-09-19 12:34 ` [PATCH 1/4] KVM: x86 emulator: Expose emulate_int_real() Avi Kivity
2010-09-19 12:34 ` [PATCH 2/4] KVM: Add kvm_inject_realmode_interrupt() wrapper Avi Kivity
2010-09-19 12:34 ` [PATCH 3/4] KVM: VMX: Emulated real mode interrupt injection Avi Kivity
2010-09-20 17:30   ` Marcelo Tosatti
2010-09-21 11:56     ` Avi Kivity
2010-09-21 15:36       ` Marcelo Tosatti
2010-09-21 16:00         ` Avi Kivity
2010-09-19 12:34 ` [PATCH 4/4] KVM: VMX: Respect interrupt window in big real mode Avi Kivity
2010-09-19 15:25 ` [PATCH 0/4] Real mode interrupt injection emulation Avi Kivity
2010-09-21 18:32 ` Marcelo Tosatti [this message]

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=20100921183259.GC22536@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=m.gamal005@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox