From: Mohammed Gamal Subject: [RFC PATCH v2 0/4] Real mode interrupt injection Date: Sat, 14 Aug 2010 03:09:33 +0300 Message-ID: <1281744577-14061-1-git-send-email-m.gamal005@gmail.com> Cc: mtosatti@redhat.com, kvm@vger.kernel.org, Mohammed Gamal To: avi@redhat.com Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:40533 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932183Ab0HNAJy (ORCPT ); Fri, 13 Aug 2010 20:09:54 -0400 Received: by wwj40 with SMTP id 40so3639212wwj.1 for ; Fri, 13 Aug 2010 17:09:53 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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()