Give ivshmem-doorbell a fixed PCI address
We have specified a bus and address for other devices, so we should
do the same for ivshmem-doorbell.
On x86_64, not specifying a PCI address may make it a PCI multi-function
device, which is not supported on some platforms.
Bug: 118442619
Change-Id: I69a84bf955ce8e712289ce52cb1662f7d4f2358a
Signed-off-by: Alistair Strachan <astrachan@google.com>
diff --git a/host/libs/vm_manager/cf_qemu.sh b/host/libs/vm_manager/cf_qemu.sh
index ee46ef2..54a6f46 100755
--- a/host/libs/vm_manager/cf_qemu.sh
+++ b/host/libs/vm_manager/cf_qemu.sh
@@ -78,7 +78,7 @@
-object "rng-random,id=objrng0,filename=/dev/urandom"
-device "virtio-rng-pci,rng=objrng0,id=rng0,max-bytes=1024,period=2000,bus=pci.0,addr=0xa"
-chardev "socket,path=${ivshmem_qemu_socket_path:-${default_dir}/ivshmem_socket_qemu},id=ivsocket"
- -device "ivshmem-doorbell,chardev=ivsocket,vectors=${ivshmem_vector_count}"
+ -device "ivshmem-doorbell,chardev=ivsocket,vectors=${ivshmem_vector_count},bus=pci.0,addr=0xd"
-cpu host
-msg "timestamp=on"
)