Skip to content

RFC Real mode interrupt injection

Mohammed Gamal kvm 3 versions – Applied

Status from this message: I applied the second patch to next, rest are applied to non-atomic-injection branch. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest4 patches 12 repliesApplied
  2. v2 RFC4 patches 5 repliesSuperseded
  3. v1 RFC3 patches 17 repliesSuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4x86 emulator: Expose emulate_int_real()arch/x86/include/asm/kvm_emulate.h+2 -10 replies
2/4x86: Separate emulation context initialization in a separate functionarch/x86/kvm/x86.c+25 -290 replies
3/4x86: Add kvm_inject_realmode_interrupt() wrapperarch/x86/kvm/x86.c arch/x86/kvm/x86.h+22 -00 replies
4/4VMX: Emulated real mode interrupt injectionarch/x86/kvm/vmx.c+6 -590 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RFC PATCH v3 0/4] Real mode interrupt injection

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