[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/7] hw/xen: take iothread mutex in xen_evtchn_reset_op()
From: |
David Woodhouse |
Subject: |
[PULL 6/7] hw/xen: take iothread mutex in xen_evtchn_reset_op() |
Date: |
Mon, 6 Nov 2023 10:39:54 +0000 |
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.
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>
---
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.41.0
- [PULL 0/7] xenfv-stable queue, David Woodhouse, 2023/11/06
- [PULL 2/7] i386/xen: fix per-vCPU upcall vector for Xen emulation, David Woodhouse, 2023/11/06
- [PULL 1/7] i386/xen: Don't advertise XENFEAT_supervisor_mode_kernel, David Woodhouse, 2023/11/06
- [PULL 7/7] hw/xen: use correct default protocol for xen-block on x86, David Woodhouse, 2023/11/06
- [PULL 3/7] hw/xen: select kernel mode for per-vCPU event channel upcall vector, David Woodhouse, 2023/11/06
- [PULL 4/7] hw/xen: don't clear map_track[] in xen_gnttab_reset(), David Woodhouse, 2023/11/06
- [PULL 6/7] hw/xen: take iothread mutex in xen_evtchn_reset_op(),
David Woodhouse <=
- [PULL 5/7] hw/xen: fix XenStore watch delivery to guest, David Woodhouse, 2023/11/06
- Re: [PULL 0/7] xenfv-stable queue, Stefan Hajnoczi, 2023/11/06