| commit | 8edf58db9245ad9eec714ce0835e5e4165abf67b | [log] [tgz] |
|---|---|---|
| author | Wang Ningyuan <ningyuan@google.com> | Tue Dec 12 17:43:50 2023 +0900 |
| committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 13 06:25:03 2023 +0000 |
| tree | fb4429981d744d7ec2b4184d44356a798b6e6c62 | |
| parent | a60d7df02dc0d6b801fbc570a4c1fbd3dd802a46 [diff] |
crosvm: Preserve order of early hotplugged device
When multiple PCI devices are hotplugged in before PCI enumeration, the
devices may be listed in a different order than they are hotplugged.
This CL fixes the issue by allocating hotplug ports in the same order as
they would be enumerated by the guest OS.
BUG=b:315923326
TEST=./tools/dev_container ./tools/presubmit
TEST=manual feature tests
TEST=tast run ${DUT} arc.MultiNetworkingConnectivity (with patch
http://crrev/c/5096163, http://crrev/c/4798333, and http://ag/25574078)
Change-Id: I3c023788eb5828d22dae5b71744e7bf26abe487a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5113785
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Ningyuan Wang <ningyuan@google.com>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on ChromeOS devices.