mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
Hotplug command is facing dead lock issue when it tries to acquire the lock for pci root in the vm control thread. Dead lock could happen when the vm control thread(Thread A namely) is handling the hotplug command and it tries to get the lock for pci root. However, the lock is already hold by another device in thread B, which is actively sending an vm control to be handled by thread A and waiting for response. However, thread A is blocked on acquiring the lock, so dead lock happens. In order to resolve this issue, we add a new pci root worker thread and push all work that locks pci root to this thread. BUG=b:199986018 TEST=tools/presubmit Change-Id: I11552a1c9c626035d0ca01ce2835fd8b6c067a67 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3765366 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |