]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/xen: take iothread mutex in xen_evtchn_reset_op()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 24 Oct 2023 21:22:47 +0000 (22:22 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 9 Nov 2023 13:39:13 +0000 (16:39 +0300)
commit30a4cc2723c67f4c99633e9695835ddb6fcdbfe0
treeb709bbc188860b814da8238ce49f4076fdb9c7eb
parentb644416ec6d171a5befda4faf7c7ac90cf413a0c
hw/xen: take iothread mutex in xen_evtchn_reset_op()

The xen_evtchn_soft_reset() function requires the iothread mutex, but is
also called for the EVTCHNOP_reset hypercall. Ensure the mutex is taken
in that case.

Cc: qemu-stable@nongnu.org
Fixes: a15b10978fe6 ("hw/xen: Implement EVTCHNOP_reset")
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
(cherry picked from commit debc995e883b05c2fd02fb797a61ab1328e5bae2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/kvm/xen_evtchn.c