diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-07-05 18:48:11 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-08-09 11:45:49 +0300 |
commit | b4a2f5e723e4f7df46731106faf9e2405673c073 (patch) | |
tree | 98766bcb94182957b27b9bdd371c742d927da951 /arch/ia64 | |
parent | 53a27b39ff4d2492f84b1fdc2f0047175f0b0b93 (diff) | |
download | op-kernel-dev-b4a2f5e723e4f7df46731106faf9e2405673c073.zip op-kernel-dev-b4a2f5e723e4f7df46731106faf9e2405673c073.tar.gz |
KVM: Avoid redelivery of edge interrupt before next edge
The check for an edge is broken in current ioapic code. ioapic->irr is
cleared on each edge interrupt by ioapic_service() and this makes
old_irr != ioapic->irr condition in kvm_ioapic_set_irq() to be always
true. The patch fixes the code to properly recognise edge.
Some HW emulation calls set_irq() without level change. If each such
call is propagated to an OS it may confuse a device driver. This is the
case with keyboard device emulation and Windows XP x64 installer on SMP VM.
Each keystroke produce two interrupts (down/up) one interrupt is
submitted to CPU0 and another to CPU1. This confuses Windows somehow
and it ignores keystrokes.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions