hw/usb: hcd-xhci-pci: Raise MSI/MSI-X interrupts only when told to
commit3c6151cd11ae7e4a7dae10f8c17ab1fe2f0a73bf
authorRuimei Yan <ruimei.yan@windriver.com>
Fri, 21 May 2021 02:42:23 +0000 (21 10:42 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 28 May 2021 07:10:14 +0000 (28 09:10 +0200)
treebc7c7bdb1f7505bc988d78794d7e4e83d8565b21
parentf9c481247f6a2c87439e0ebfa42cd56325db2ac0
hw/usb: hcd-xhci-pci: Raise MSI/MSI-X interrupts only when told to

At present MSI / MSI-X interrupts are triggered regardless of the
irq level. We should have checked the level to determine whether
the interrupt needs to be delivered.

The level check logic was present in early versions of the xhci
model, but got dropped later by a rework of interrupt handling
under commit 4c4abe7cc903 ("xhci: rework interrupt handling").

Fixes: 4c4abe7cc903 ("xhci: rework interrupt handling")
Signed-off-by: Ruimei Yan <ruimei.yan@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20210521024224.2277634-1-bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci-pci.c