From: Avi Kivity Subject: Re: [RFC PATCH v2 0/4] Real mode interrupt injection Date: Sun, 15 Aug 2010 15:43:12 +0300 Message-ID: <4C67E0E0.6020201@redhat.com> References: <1281744577-14061-1-git-send-email-m.gamal005@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, kvm@vger.kernel.org To: Mohammed Gamal Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44545 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758483Ab0HOQNQ (ORCPT ); Sun, 15 Aug 2010 12:13:16 -0400 In-Reply-To: <1281744577-14061-1-git-send-email-m.gamal005@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/14/2010 03:09 AM, Mohammed Gamal wrote: > This patch introduces real mode interrupt injection for VMX. > It currently invokes the x86 emulator to emulate interrupts > instead of manually setting VMX controls. > > Needless to say, this is not meant for merging in its current state. > The emulator still needs some more work to get this completely operational. > > Mohammed Gamal (3): > x86 emulator: Expose emulate_int_real() > x86: Add inject_realmode_interrupt() wrapper > VMX: Emulated real mode interrupt injection > > arch/x86/include/asm/kvm_emulate.h | 3 ++- > arch/x86/kvm/vmx.c | 11 +---------- > arch/x86/kvm/x86.c | 14 ++++++++++++++ > arch/x86/kvm/x86.h | 1 + > 4 files changed, 18 insertions(+), 11 deletions(-) > > --- > Changes since v1: > - Save emulation context eip value early in emulate_int_real() > - Properly initialize emulation context in inject_realmode_interrupt() > - Implement error checks on using inject_realmode_interrupt() Do those changes help your tests? -- error compiling committee.c: too many arguments to function