]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/pci: Disable INTx in vfio_realize error path
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 3 Jul 2023 07:15:06 +0000 (15:15 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 5 Aug 2023 05:39:54 +0000 (08:39 +0300)
commite85ab8f753112c96f81fbd7cae08a5753b477b26
tree3669ea8a37a5a2572abd6bbd5c1298ed0f495098
parent48be003029f18b495e33cc3714ffc84a20a4df69
vfio/pci: Disable INTx in vfio_realize error path

When vfio realize fails, INTx isn't disabled if it has been enabled.
This may confuse host side with unhandled interrupt report.

Fixes: c5478fea27ac ("vfio/pci: Respond to KVM irqchip change notifier")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
(cherry picked from commit adee0da0368f50b3ee934cdeeb6076466dabb268)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/vfio/pci.c