On Sun, Aug 15, 2010 at 3:43 PM, Avi Kivity <avi@xxxxxxxxxx> wrote: > 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? > To an extent. At least now the BIOS mostly runs smoothly since eip values are updated correctly. However, it looks like guests go into nowhere once things are handed over to the boot loader. So there is still many things we need to fix. I'll post a trace shortly. > -- > error compiling committee.c: too many arguments to function > > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html