]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "irqbypass: do not start cons/prod when failed connect"
authorZhu Lingshan <lingshan.zhu@intel.com>
Sat, 8 May 2021 07:11:52 +0000 (15:11 +0800)
committerMarc Zyngier <maz@kernel.org>
Sat, 15 May 2021 09:26:55 +0000 (10:26 +0100)
commit65371974b045821e878c0a8d5be9bfbca9fa77f8
tree6b5aef3e09c0e79ce5a53f488a02ae1ee7f155f9
parent9fb51bb203ba1c67f480638e9d0605db59810687
Revert "irqbypass: do not start cons/prod when failed connect"

This reverts commit 05ca9d999323adb8b347c2a108664664ef302a2f.

The reverted commit may cause VM freeze on arm64 with GICv4,
where stopping a consumer is implemented by suspending the VM.
Should the connect fail, the VM will not be resumed, which
is a bit of a problem.

It also erroneously calls the producer destructor unconditionally,
which is unexpected.

Reported-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Suggested-by: Marc Zyngier <maz@kernel.org>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
[maz: tags and cc-stable, commit message update]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Fixes: 05ca9d999323 ("irqbypass: do not start cons/prod when failed connect")
Link: https://lore.kernel.org/r/3a2c66d6-6ca0-8478-d24b-61e8e3241b20@hisilicon.com
Link: https://lore.kernel.org/r/20210508071152.722425-1-lingshan.zhu@intel.com
Cc: stable@vger.kernel.org
virt/lib/irqbypass.c