Stop assuming the PCI bus will be 'pci.0'

With qemu-system-x86_64 -nodefaults, it does appear that adding a PCI
device will implicitly create a bus called 'pci.0', however with
qemu-system-aarch64 this does not appear to be the case.

The bus we assign our devices to really does not matter (only the "addr"
does, because this prevents multi-function devices from being created
implicitly), and omitting this causes QEMU to bind to whatever the PCI
bus is called in the machine it is emulating, which is more portable.

Bug: 118442619
Change-Id: I1fa93e1462cc8b4b76ffb1ad92a0e118479fcfdb
Signed-off-by: Alistair Strachan <astrachan@google.com>
1 file changed
tree: 9403b20ed86ece1d26c27168e76714431e28d56e
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS