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

No differences found