From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaExV-0007p7-Oc for qemu-devel@nongnu.org; Wed, 08 May 2013 20:43:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaExS-0001M6-Sg for qemu-devel@nongnu.org; Wed, 08 May 2013 20:43:45 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:56658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaExS-0001FL-An for qemu-devel@nongnu.org; Wed, 08 May 2013 20:43:42 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 May 2013 10:37:22 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id A3A6F2CE8051 for ; Thu, 9 May 2013 10:43:33 +1000 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r490TVvv19005526 for ; Thu, 9 May 2013 10:29:32 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r490hWhQ015654 for ; Thu, 9 May 2013 10:43:32 +1000 Message-ID: <518AF131.2090805@au1.ibm.com> Date: Thu, 09 May 2013 10:43:29 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <5188AB30.1020307@gmail.com> <5188CE5F.2060703@redhat.com> <5188FC03.6040204@au1.ibm.com> In-Reply-To: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [libvirt]virtio serial device problem List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fred.konrad@greensocs.com Cc: "libvir-list@redhat.com" , "qemu-devel@nongnu.org" , David Gibson , Li Zhang , Paolo Bonzini , Pradipta Kumar Banerjee Hi! On 05/09/2013 01:53 AM, fred.konrad@greensocs.com wrote: >> On 05/07/2013 07:50 PM, Paolo Bonzini wrote: >>> Il 07/05/2013 09:20, Li Zhang ha scritto: >>>> Hi all, > > Hi, >>>> >>>> When we use the latest version of QEMU to build ovirt, >>>> we get this error reported from libvirt. >>> >>> What QEMU commit is this? >> >> >> b3e6d591b05538056d665572f3e3bbfb3cbb70e7 > > This commit is from 05/29 no? > > there were issues with that. But it should be fixed. > > Do you still have the command-line issue with the last git? > > See commit 80270a19685dd20eda017b0360c743b3e3ed6f57 No, this patch helps, thanks! > > Thanks, > Fred > >> >> >>> It might have been fixed already. >> >> Hm. From what I see, it is all correct from the qemu side, the problem is >> in libvirt which does not know about "virtio-pci-bus" yet. >> >> >> >>> Paolo >>> >>>> >>>> qemu-system-ppc64: -device >>>> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm: >>>> >>>> Bus 'virtio-serial0.0' is full >>>> qemu-system-ppc64: -device >>>> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm: >>>> >>>> Bus 'virtio-serial0.0' not found >>>> >>>> Libvirt helps create QEMU command line and put virtserialport device to >>>> bus virtio-serial0.0. >>>> For latest version of QEMU, the bus type is changed. >>>> >>>> (qemu) info qtree >>>> bus: main-system-bus >>>> type System >>>> dev: spapr-pci-host-bridge, id "" >>>> index = 0 >>>> buid = 0x800000020000000 >>>> liobn = 0x80000000 >>>> mem_win_addr = 0x100a0000000 >>>> mem_win_size = 0x20000000 >>>> io_win_addr = 0x10080000000 >>>> io_win_size = 0x10000 >>>> msi_win_addr = 0x10090000000 >>>> irq 0 >>>> bus: pci >>>> type PCI >>>> dev: virtio-serial-pci, id "virtio-serial0" >>>> ioeventfd = on >>>> vectors = 2 >>>> class = 0x780 >>>> indirect_desc = on >>>> event_idx = on >>>> max_ports = 31 >>>> addr = 03.0 >>>> romfile = >>>> rombar = 1 >>>> multifunction = off >>>> command_serr_enable = on >>>> class Class 0780, addr 00:03.0, pci id 1af4:1003 (sub >>>> 1af4:0003) >>>> bar 0: i/o at 0xffffffffffffffff [0x1e] >>>> bar 1: mem at 0xffffffffffffffff [0xffe] >>>> bus: virtio-serial0.0 >>>> type virtio-pci-bus >>>> dev: virtio-serial-device, id "" >>>> max_ports = 31 >>>> bus: virtio-serial-bus.0 >>>> type virtio-serial-bus >>>> dev: virtserialport, id "channel1" >>>> chardev = charchannel1 >>>> nr = 2 >>>> name = "org.qemu.guest_agent.0" >>>> port 2, guest off, host off, throttle off >>>> dev: virtserialport, id "channel0" >>>> chardev = charchannel0 >>>> nr = 1 >>>> name = "com.redhat.rhevm.vdsm" >>>> port 1, guest off, host off, throttle off >>>> >>>> >>>> But we tried to replace virtio-serial0.0 with virtio-serial-bus.0, >>>> SLOF crashes. It still doesn't work at all. >>>> >>>> Does anyone know how to use virtserialport in QEMU command line? >>>> If configuration is changed in QEMU, libvirt also needs to change it >>>> accordingly. >>>> >>>> Thanks. :) >>>> --Li -- Alexey Kardashevskiy IBM OzLabs, LTC Team e-mail: aik@au1.ibm.com notes: Alexey Kardashevskiy/Australia/IBM