>>No, you should lay 'kvm: -device virtio-serial,id=spice,bus=pci.0' before >>"-readconfig /usr/share/qemu-server/pve-q35.cfg",which can assure >>the bus pci.0 has been created.
Oh, you are right, I didn't notice that pci bridge was defined after this device. Sorry to disturb the mailing list about this. Thanks ! Alexandre ----- Mail original ----- De: "Gonglei" <arei.gong...@huawei.com> À: "Alexandre DERUMIER" <aderum...@odiso.com> Cc: "qemu-devel" <qemu-devel@nongnu.org> Envoyé: Mardi 12 Août 2014 14:09:26 Objet: Re: [Qemu-devel] q35 : virtio-serial on pci bridge : bus not found On 2014/8/12 18:51, Alexandre DERUMIER wrote: > Hi, I can't use virtio-serial, with q35 machine, on a pci bridge (other > devices works fine). > > > Is it a known bug ? > No, you should lay 'kvm: -device virtio-serial,id=spice,bus=pci.0' before "-readconfig /usr/share/qemu-server/pve-q35.cfg",which can assure the bus pci.0 has been created. Best regards, -Gonglei > > error message: > --------------- > kvm: -device virtio-serial,id=spice,bus=pci.0,addr=0x9: Bus 'pci.0' not found > > > architecture is: > > pcie.0 > --->pcidmi (i82801b11-bridge) > ------->pci.0 (pci-bridge) > > > > /usr/bin/kvm -id 600 -chardev > socket,id=qmp,path=/var/run/qemu-server/600.qmp,server,nowait > -mon chardev=qmp,mode=control -vnc > unix:/var/run/qemu-server/600.vnc,x509,password > -pidfile /var/run/qemu-server/600.pid -daemonize -name tankrechner -smp > sockets=1,cores=1 > -nodefaults -boot menu=on -vga qxl -cpu kvm64,+lahf_lm,+x2apic,+sep > -spice > tls-port=61002,addr=127.0.0.1,tls-ciphers=DES-CBC3-SHA,seamless-migration=on > -device virtio-serial,id=spice,bus=pci.0,addr=0x9 > -chardev spicevmc,id=vdagent,name=vdagent > -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 > -m 1024 > -readconfig /usr/share/qemu-server/pve-q35.cfg > -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 > -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 > -drive if=none,id=drive-ide2,media=cdrom,aio=native > -device ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200 > -drive > file=/mnt/vmfs-hdd-r5_3x698/images/600/vm-600-disk-1.raw,if=none,id=drive-virtio0,format=raw,aio=native,cache=none > -device > virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100 > -netdev > type=tap,id=net0,ifname=tap600i0,script=/var/lib/qemu-server/pve-bridge,vhost=on > -device > virtio-net-pci,mac=EA:07:3A:31:12:7F,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300 > -rtc driftfix=slew,base=localtime > -machine type=q35 > > > with pve-q35.cfg > > [device "ehci"] > driver = "ich9-usb-ehci1" > multifunction = "on" > bus = "pcie.0" > addr = "1d.7" > > [device "uhci-1"] > driver = "ich9-usb-uhci1" > multifunction = "on" > bus = "pcie.0" > addr = "1d.0" > masterbus = "ehci.0" > firstport = "0" > > [device "uhci-2"] > driver = "ich9-usb-uhci2" > multifunction = "on" > bus = "pcie.0" > addr = "1d.1" > masterbus = "ehci.0" > firstport = "2" > > [device "uhci-3"] > driver = "ich9-usb-uhci3" > multifunction = "on" > bus = "pcie.0" > addr = "1d.2" > masterbus = "ehci.0" > firstport = "4" > > [device "ehci-2"] > driver = "ich9-usb-ehci2" > multifunction = "on" > bus = "pcie.0" > addr = "1a.7" > > [device "uhci-4"] > driver = "ich9-usb-uhci4" > multifunction = "on" > bus = "pcie.0" > addr = "1a.0" > masterbus = "ehci-2.0" > firstport = "0" > > [device "uhci-5"] > driver = "ich9-usb-uhci5" > multifunction = "on" > bus = "pcie.0" > addr = "1a.1" > masterbus = "ehci-2.0" > firstport = "2" > > [device "uhci-6"] > driver = "ich9-usb-uhci6" > multifunction = "on" > bus = "pcie.0" > addr = "1a.2" > masterbus = "ehci-2.0" > firstport = "4" > > [device "audio0"] > driver = "ich9-intel-hda" > bus = "pcie.0" > addr = "1b.0" > > > [device "ich9-pcie-port-1"] > driver = "ioh3420" > multifunction = "on" > bus = "pcie.0" > addr = "1c.0" > port = "1" > chassis = "1" > > [device "ich9-pcie-port-2"] > driver = "ioh3420" > multifunction = "on" > bus = "pcie.0" > addr = "1c.1" > port = "2" > chassis = "2" > > [device "ich9-pcie-port-3"] > driver = "ioh3420" > multifunction = "on" > bus = "pcie.0" > addr = "1c.2" > port = "3" > chassis = "3" > > [device "ich9-pcie-port-4"] > driver = "ioh3420" > multifunction = "on" > bus = "pcie.0" > addr = "1c.3" > port = "4" > chassis = "4" > [device "pcidmi"} > driver = "i82801b11-bridge" > bus = "pcie.0" > addr = "1e.0" > > [device "pci.0"] > driver = "pci-bridge" > bus = "pcidmi" > addr = "1.0" > chassis_nr = "1" > > [device "pci.1"] > driver = "pci-bridge" > bus = "pcidmi" > addr = "2.0" > chassis_nr = "2" > > [device "pci.2"] > driver = "pci-bridge" > bus = "pcidmi" > addr = "3.0" > chassis_nr = "3" > >