crosvm/devices/src
Xiong Zhang f67785e9e4 devices:pcie: Specify Bus number at pci bridge creation
When pci bridige is created, caller should specify its primary bus
number and secondary bus number. And supposing kernel won't modify
them as the current pci device topology is simple enough, once
guest modify them, warn message will be printed.

The secondary bus number shouldn't be assigned to any other device,
so this patch loop the bus number to find a free bus number.

BUG=b:185084350
TEST=Boot a vm with passthrough device and check its function

Change-Id: Iae72a0e0401a6e75c62582456b92792a1a36211a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2955569
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2021-11-19 22:10:07 +00:00
..
irqchip devices: Use Mutex to protect bus->devices 2021-10-21 05:42:49 +00:00
pci devices:pcie: Specify Bus number at pci bridge creation 2021-11-19 22:10:07 +00:00
platform Uprev to rust 1.55.0 2021-10-19 19:12:52 +00:00
register_space devices/register_space: use Copy rather than Clone 2021-08-25 23:02:28 +00:00
usb cleanup: Fix previously disabled clippy checks 2021-11-12 23:23:48 +00:00
utils devices: convert to ThisError and sort 2021-09-02 21:00:20 +00:00
virtio devices: vhost: Allow vhost-vsock fd from command-line 2021-11-18 15:19:29 +00:00
acpi.rs devices: acpi: collapsed nested if inside else 2021-05-06 22:06:57 +00:00
bat.rs devices: convert to ThisError and sort 2021-09-02 21:00:20 +00:00
bus.rs devices: re-add set_access_id to bus 2021-11-04 17:55:18 +00:00
cmos.rs devices: add un-mutex-ed BusDevice in Bus 2020-11-23 22:47:29 +00:00
direct_io.rs crosvm-direct: p-t support for port and memory I/O. 2021-04-01 03:02:44 +00:00
direct_irq.rs devices: convert to ThisError and sort 2021-09-02 21:00:20 +00:00
i8042.rs i8042: use address instead of offset for read and write 2021-01-29 18:04:35 +00:00
lib.rs devices: bus: add BusDevice function to get ranges 2021-11-03 20:14:01 +00:00
pit.rs devices: convert to ThisError and sort 2021-09-02 21:00:20 +00:00
pl030.rs devices: add un-mutex-ed BusDevice in Bus 2020-11-23 22:47:29 +00:00
proxy.rs devices: Add/Remove deviece mmio at config memory enable/disable 2021-11-03 20:14:02 +00:00
serial.rs Enable KVM_CAP_ARM_PROTECTED_VM when --protected-vm is passed. 2021-03-02 19:04:43 +00:00
serial_device.rs devices: Serial devices can be backed by FD via /proc/self/fd/N 2021-10-27 00:38:43 +00:00
vfio.rs devices: vfio: Use DataInit for {read, write}_config() 2021-11-18 15:11:11 +00:00