HomeFreeBSD

vmm: don't lock a mtx in the icr_low write handler

Description

vmm: don't lock a mtx in the icr_low write handler

x2apic accesses are handled by a wrmsr exit. This handler is called in a
critical section. So, we can't lock a mtx in the icr_low handler.

Reported by: kp, pho
Tested by: kp, pho
Approved by: manu (mentor)
Fixes: c0f35dbf19c3c8825bd2b321d8efd582807d1940 vmm: Use a cpuset_t for vCPUs waiting for STARTUP IPIs.
MFC after: 1 week
MFC with: c0f35dbf19c3c8825bd2b321d8efd582807d1940
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37452

(cherry picked from commit 7c326ab5bb9aced8dcbc2465ac1c9ff8df2ba46b)

Details

Provenance
corvinkAuthored on Nov 21 2022, 2:00 PM
jhbCommitted on Jan 26 2023, 10:06 PM
Differential Revision
D37452: vmm: do not call mtx_lock in icr_low write handler
Parents
rGb88a7eae3584: vmm: Use a cpuset_t for vCPUs waiting for STARTUP IPIs.
Branches
Unknown
Tags
Unknown