[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 06/28] hw/xen: take iothread mutex in xen_evtchn_reset_op()
From: |
David Woodhouse |
Subject: |
[PATCH v3 06/28] hw/xen: take iothread mutex in xen_evtchn_reset_op() |
Date: |
Wed, 25 Oct 2023 15:50:20 +0100 |
From: David Woodhouse <dwmw@amazon.co.uk>
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.
Fixes: a15b10978fe6 ("hw/xen: Implement EVTCHNOP_reset")
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
hw/i386/kvm/xen_evtchn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/i386/kvm/xen_evtchn.c b/hw/i386/kvm/xen_evtchn.c
index 3d6f4b4a0a..b2b4be9983 100644
--- a/hw/i386/kvm/xen_evtchn.c
+++ b/hw/i386/kvm/xen_evtchn.c
@@ -1135,6 +1135,7 @@ int xen_evtchn_reset_op(struct evtchn_reset *reset)
return -ESRCH;
}
+ QEMU_IOTHREAD_LOCK_GUARD();
return xen_evtchn_soft_reset();
}
--
2.40.1
- [PATCH v3 04/28] hw/xen: don't clear map_track[] in xen_gnttab_reset(), (continued)
- [PATCH v3 04/28] hw/xen: don't clear map_track[] in xen_gnttab_reset(), David Woodhouse, 2023/10/25
- [PATCH v3 01/28] i386/xen: Don't advertise XENFEAT_supervisor_mode_kernel, David Woodhouse, 2023/10/25
- [PATCH v3 10/28] include: update Xen public headers to Xen 4.17.2 release, David Woodhouse, 2023/10/25
- [PATCH v3 15/28] hw/xen: do not repeatedly try to create a failing backend device, David Woodhouse, 2023/10/25
- [PATCH v3 18/28] hw/xen: only remove peers of PCI NICs on unplug, David Woodhouse, 2023/10/25
- [PATCH v3 25/28] hw/pci: add pci_init_nic_devices(), pci_init_nic_in_slot(), David Woodhouse, 2023/10/25
- [PATCH v3 17/28] hw/xen: add support for Xen primary console in emulated mode, David Woodhouse, 2023/10/25
- [PATCH v3 06/28] hw/xen: take iothread mutex in xen_evtchn_reset_op(),
David Woodhouse <=
- [PATCH v3 08/28] i386/xen: Ignore VCPU_SSHOTTMR_future flag in set_singleshot_timer(), David Woodhouse, 2023/10/25
- [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, David Woodhouse, 2023/10/25
- Re: [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, Durrant, Paul, 2023/10/27
- Re: [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, David Woodhouse, 2023/10/27
- Re: [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, Durrant, Paul, 2023/10/27
- Re: [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, David Woodhouse, 2023/10/27
- Re: [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, Durrant, Paul, 2023/10/27
- Re: [PATCH v3 13/28] hw/xen: automatically assign device index to block devices, David Woodhouse, 2023/10/27