KVM: Clear assigned guest IRQ on release
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 16 Nov 2010 21:30:02 +0000 (22:30 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:19 +0000 (11:29 +0200)
commit0c106b5aaa727c7f508828e94cff4a98874f930c
tree24bcd4ff350c34e86ee76bdcac006d7c96de2719
parent945ee35e0764a834bc5bc5d572085d5b6409902a
KVM: Clear assigned guest IRQ on release

When we deassign a guest IRQ, clear the potentially asserted guest line.
There might be no chance for the guest to do this, specifically if we
switch from INTx to MSI mode.

Acked-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/assigned-dev.c