From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 0/4] Real mode interrupt injection emulation Date: Tue, 21 Sep 2010 15:32:59 -0300 Message-ID: <20100921183259.GC22536@amt.cnet> References: <1284899648-19958-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, Mohammed Gamal To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44096 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420Ab0IVUun (ORCPT ); Wed, 22 Sep 2010 16:50:43 -0400 Content-Disposition: inline In-Reply-To: <1284899648-19958-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.