pass-through: fix unbinding of MSI interrupts
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Aug 2014 07:32:58 +0000 (09:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Aug 2014 07:32:58 +0000 (09:32 +0200)
commitbf28eecf7b681366ecfbdf250c3c5015ff21fdee
treeacda173c315cb273e83f014988e9442a80924b68
parenta84938b444d7f2e393c9be67fbd0019cafbd974c
pass-through: fix unbinding of MSI interrupts

Commit 568da4f8 ("pt-irq fixes and improvements") went a little too far
in its cleaning up of pt_irq_destroy_bind(): While neither of the two
lists need any maintenance, the actual unbinding still needs to be
done. Fix this and at once
- move all variables applying only to the PCI/MSI-translate cases into
  scopes where they can't be used in error,
- limit the final (optional) log message to the cases it actually
  applies and enhance it to make clear how much cleaning up was
  actually done.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
xen/drivers/passthrough/io.c