From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammed Gamal Subject: [RFC PATCH v3 0/4] Real mode interrupt injection Date: Mon, 16 Aug 2010 00:46:59 +0300 Message-ID: <1281908823-4505-1-git-send-email-m.gamal005@gmail.com> Cc: kvm@vger.kernel.org, mtosatti@redhat.com, Mohammed Gamal To: avi@redhat.com Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:33009 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814Ab0HOVrQ (ORCPT ); Sun, 15 Aug 2010 17:47:16 -0400 Received: by wyb32 with SMTP id 32so4945688wyb.19 for ; Sun, 15 Aug 2010 14:47:15 -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 (4): x86 emulator: Expose emulate_int_real() x86: Separate emulation context initialization in a separate function x86: Add kvm_inject_realmode_interrupt() wrapper VMX: Emulated real mode interrupt injection arch/x86/include/asm/kvm_emulate.h | 3 +- arch/x86/kvm/vmx.c | 65 +++---------------------------- arch/x86/kvm/x86.c | 75 ++++++++++++++++++++++-------------- arch/x86/kvm/x86.h | 1 + 4 files changed, 55 insertions(+), 89 deletions(-) --- Changes since v2: - Refactored emulation context initialization code - Commit eip value from the decode cache to the emulation context in x86.c rather than the emulator - Add kvm_* prefix to inject_realmode_interrupt() global symbol for consistency