Skip to content

Real mode interrupt injection emulation

Avi Kivity kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: x86 emulator: Expose emulate_int_real()arch/x86/include/asm/kvm_emulate.h+2 -10 replies
2/4KVM: Add kvm_inject_realmode_interrupt() wrapperarch/x86/kvm/x86.c arch/x86/kvm/x86.h+30 -00 replies
3/4KVM: VMX: Emulated real mode interrupt injectionarch/x86/kvm/vmx.c+6 -594 replies
4/4KVM: VMX: Respect interrupt window in big real modearch/x86/kvm/vmx.c+9 -00 replies

Reviews trailers per patch

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

Read the v1 thread

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

Our current real mode interrupt injection injects external interrupts as software interrupts, which is somewhat hacky. This is problematic in big real mode (can't use vmx there) and on via processors (a cpu bug prevents this from working correctly).

Replace the current mechanism with emulation; we now inject the interrupt by looking up the vector in the IVT, updating the stack, etc. using the emulator. This is somewhat slower but works in all cases.

Avi Kivity (1):
KVM: VMX: Respect interrupt window in big real mode

Mohammed Gamal (3):
KVM: x86 emulator: Expose emulate_int_real()
KVM: Add kvm_inject_realmode_interrupt() wrapper
KVM: VMX: Emulated real mode interrupt injection

 arch/x86/include/asm/kvm_emulate.h |    3 +-
 arch/x86/kvm/vmx.c                 |   74 +++++++----------------------------
 arch/x86/kvm/x86.c                 |   29 ++++++++++++++
 arch/x86/kvm/x86.h                 |    1 +
 4 files changed, 47 insertions(+), 60 deletions(-)
Signature · 1 line
1.7.2.3