mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
e3401082c9
This patch adds support for hotplug pcie switch. The user send HotplugCommand of the new added device with the same order they appear in device tree, and in handle_hotplug_command we add device accordingly. During hotplug out, firstly vfio endpoint device will send hot unplug command, we remove these endpoint device immediate- ly, and then remove any bridge that is hotplugged into the system but with zero child device connected to it. When all child bridges got cleared up and pcie root port have no child devices, we send plug out interrupt to guest kernel and probe hotplug out handling in guest. BUG=b:199986018 TEST=hotplug in and out pcie switch repeatedly Change-Id: Ic3ab86d14efba4d05e204936e08bc6a582723484 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3769817 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |