All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/4] Real mode interrupt injection
@ 2010-08-14  0:09 Mohammed Gamal
  2010-08-14  0:09 ` [RFC PATCH v2 1/4] x86 emulator: Expose emulate_int_real() Mohammed Gamal
  2010-08-15 12:43 ` [RFC PATCH v2 0/4] Real mode interrupt injection Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Mohammed Gamal @ 2010-08-14  0:09 UTC (permalink / raw)
  To: avi; +Cc: mtosatti, kvm, Mohammed Gamal

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()

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [RFC PATCH v2 1/4] x86 emulator: Expose emulate_int_real()
  2010-08-14  0:09 [RFC PATCH v2 0/4] Real mode interrupt injection Mohammed Gamal
@ 2010-08-14  0:09 ` Mohammed Gamal
  2010-08-15 12:43 ` [RFC PATCH v2 0/4] Real mode interrupt injection Avi Kivity
  1 sibling, 0 replies; 4+ messages in thread
From: Mohammed Gamal @ 2010-08-14  0:09 UTC (permalink / raw)
  To: avi; +Cc: mtosatti, kvm, Mohammed Gamal

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
---
 arch/x86/include/asm/kvm_emulate.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index f22e5da..6a7cce0 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -255,5 +255,6 @@ int x86_emulate_insn(struct x86_emulate_ctxt *ctxt);
 int emulator_task_switch(struct x86_emulate_ctxt *ctxt,
 			 u16 tss_selector, int reason,
 			 bool has_error_code, u32 error_code);
-
+int emulate_int_real(struct x86_emulate_ctxt *ctxt,
+		     struct x86_emulate_ops *ops, int irq);
 #endif /* _ASM_X86_KVM_X86_EMULATE_H */
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH v2 0/4] Real mode interrupt injection
  2010-08-14  0:09 [RFC PATCH v2 0/4] Real mode interrupt injection Mohammed Gamal
  2010-08-14  0:09 ` [RFC PATCH v2 1/4] x86 emulator: Expose emulate_int_real() Mohammed Gamal
@ 2010-08-15 12:43 ` Avi Kivity
  2010-08-15 12:44   ` Mohammed Gamal
  1 sibling, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2010-08-15 12:43 UTC (permalink / raw)
  To: Mohammed Gamal; +Cc: mtosatti, kvm

  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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH v2 0/4] Real mode interrupt injection
  2010-08-15 12:43 ` [RFC PATCH v2 0/4] Real mode interrupt injection Avi Kivity
@ 2010-08-15 12:44   ` Mohammed Gamal
  0 siblings, 0 replies; 4+ messages in thread
From: Mohammed Gamal @ 2010-08-15 12:44 UTC (permalink / raw)
  To: Avi Kivity; +Cc: mtosatti, kvm

On Sun, Aug 15, 2010 at 3:43 PM, Avi Kivity <avi@redhat.com> 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
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-15 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-14  0:09 [RFC PATCH v2 0/4] Real mode interrupt injection Mohammed Gamal
2010-08-14  0:09 ` [RFC PATCH v2 1/4] x86 emulator: Expose emulate_int_real() Mohammed Gamal
2010-08-15 12:43 ` [RFC PATCH v2 0/4] Real mode interrupt injection Avi Kivity
2010-08-15 12:44   ` Mohammed Gamal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.