KVM: Add kvm_inject_realmode_interrupt() wrapper
authorMohammed Gamal <m.gamal005@gmail.com>
Sun, 19 Sep 2010 12:34:06 +0000 (14:34 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:53:01 +0000 (10:53 +0200)
commit63995653ade16deacaea5b49ceaf6376314593ac
tree92c4dc379a1c8925a53ce6d6abd5d4d0f85ecc49
parent4ab8e02404fcbc16beefac66de24dbb2706fe2f3
KVM: Add kvm_inject_realmode_interrupt() wrapper

This adds a wrapper function kvm_inject_realmode_interrupt() around the
emulator function emulate_int_real() to allow real mode interrupt injection.

[avi: initialize operand and address sizes before emulating interrupts]
[avi: initialize rip for real mode interrupt injection]
[avi: clear interrupt pending flag after emulating interrupt injection]

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h