Skip to contentSkip to conversation

virtio serial device problem

Qemu-devel Li Zhang 4 participants 10 messages May 7, 2013 – May 9, 2013

lore
Share & tools
lore

Li Zhang

author
#0 lore raw

Hi all,

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

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 = <null>
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

#1 lore raw

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 4 lines

Hi all,

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

It might have been fixed already.

Paolo

Quoted 74 lines

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 = <null>
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

#2 lore raw
Quoted 7 lines · Paolo Bonzini

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 4 lines

Hi all,

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

b3e6d591b05538056d665572f3e3bbfb3cbb70e7

Quoted 1 line

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.

Quoted 76 lines

Paolo

Quoted 74 lines

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 = <null>
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

Signature · 5 lines
Alexey Kardashevskiy
IBM OzLabs, LTC Team

e-mail: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM
author
#3 lore raw
Quoted 10 lines · Alexey Kardashevskiy
Quoted 6 lines · Paolo Bonzini

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 4 lines

Hi all,

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

b3e6d591b05538056d665572f3e3bbfb3cbb70e7

Our QEMU tree syncs with upstream, right?

Quoted 4 lines
Quoted 1 line

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.

Yes, from qtree, virtserialport is under virtio-serial-bus.0.

virtio-serial0.0
|
virtio-serial-bus.0
|
virtserialport

But libvirt set this device on virt-serial0.0 bus directly which is old way in QEMU.

virtio-serial0.0
|
virtserialport

Quoted 77 lines
Quoted 76 lines

Paolo

Quoted 73 lines

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 = <null>
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

#4 lore raw
In reply to Alexey Kardashevskiy
Quoted 3 lines · Paolo Bonzini
Quoted 2 lines

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 1 line

Hi all,

Hi,

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

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

Thanks,
Fred

Quoted 97 lines
Quoted 3 lines

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.

Quoted 77 lines

Paolo

Quoted 75 lines

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 = <null>
        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: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM

#5 lore raw

Hi!

Quoted 14 lines · On 05/09/2013 01:53 AM, [email protected] wrote:
Quoted 3 lines · Paolo Bonzini
Quoted 2 lines

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 1 line

Hi all,

Hi,

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

b3e6d591b05538056d665572f3e3bbfb3cbb70e7

Quoted 7 lines

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!

Quoted 87 lines

Thanks,
Fred

Quoted 83 lines
Quoted 3 lines

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.

Quoted 74 lines

Paolo

Quoted 72 lines

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 = <null>
        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

Signature · 5 lines
Alexey Kardashevskiy
IBM OzLabs, LTC Team

e-mail: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM
author
#6 lore raw
In reply to [email protected]
Quoted 8 lines · On 2013年05月08日 23:53, [email protected] wrote:
Quoted 3 lines · Paolo Bonzini
Quoted 2 lines

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 1 line

Hi all,

Hi,

Quoted 4 lines
Quoted 3 lines
Quoted 2 lines

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

Quoted 8 lines
Quoted 1 line

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

Hi Fred,

This patch is to change bus which can be compatible with old version, right? But I saw the current name is still different from old version.

The current name is: "virtio-serial-bus0.0"
The old version is: "virtio-serial0.0"

Is it possible to change it back to the old name?

Thanks. :)
--Li

Quoted 97 lines

Thanks,
Fred

Quoted 93 lines
Quoted 2 lines

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.

Quoted 76 lines

Paolo

Quoted 74 lines

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 = <null>
         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: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM

#7 lore raw
Quoted 20 lines · Li Zhang
Quoted 8 lines · On 2013年05月08日 23:53, [email protected] wrote:
Quoted 3 lines · Paolo Bonzini
Quoted 2 lines

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 1 line

Hi all,

Hi,

Quoted 4 lines
Quoted 3 lines
Quoted 2 lines

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

Quoted 8 lines
Quoted 1 line

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

Hi Fred,

Quoted 7 lines

This patch is to change bus which can be compatible with old version, right? But I saw the current name is still different from old version.

The current name is: "virtio-serial-bus0.0"
The old version is: "virtio-serial0.0"

Is it possible to change it back to the old name?

This is what the most recent qemu produces:

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 = <null>
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-bus
type virtio-pci-bus
dev: virtio-serial-device, id ""
max_ports = 31
bus: virtio-serial0.0
type virtio-serial-bus
dev: virtserialport, id "channel0"
chardev = charchannel0
nr = 1
name = "com.redhat.rhevm.vdsm"
port 1, guest off, host off, throttle off

The device layout is new, the bus name is old - "virtio-serial0.0", everything should be ok now.

Quoted 101 lines

Thanks. :)
--Li

Quoted 99 lines

Thanks,
Fred

Quoted 95 lines
Quoted 2 lines

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.

Quoted 78 lines

Paolo

Quoted 76 lines

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 = <null>
         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

Signature · 5 lines
Alexey Kardashevskiy
IBM OzLabs, LTC Team

e-mail: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM
Signature · 5 lines
Alexey Kardashevskiy
IBM OzLabs, LTC Team

e-mail: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM
author
#8 lore raw
Quoted 59 lines · Alexey Kardashevskiy
Quoted 18 lines · Li Zhang
Quoted 7 lines · On 2013年05月08日 23:53, [email protected] wrote:
Quoted 3 lines · Paolo Bonzini
Quoted 2 lines

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 1 line

Hi all,

Hi,

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

Quoted 8 lines
Quoted 1 line

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

Hi Fred,

Quoted 7 lines

This patch is to change bus which can be compatible with old version, right? But I saw the current name is still different from old version.

The current name is: "virtio-serial-bus0.0"
The old version is: "virtio-serial0.0"

Is it possible to change it back to the old name?

This is what the most recent qemu produces:

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 = <null>
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-bus
type virtio-pci-bus
dev: virtio-serial-device, id ""
max_ports = 31
bus: virtio-serial0.0
type virtio-serial-bus
dev: virtserialport, id "channel0"
chardev = charchannel0
nr = 1
name = "com.redhat.rhevm.vdsm"
port 1, guest off, host off, throttle off

Quoted 4 lines

The device layout is new, the bus name is old - "virtio-serial0.0", everything should be ok now.

Alexey, thanks.
It seems that both of them can be recognized. :)

Quoted 99 lines
Quoted 98 lines

Thanks. :)
--Li

Quoted 96 lines

Thanks,
Fred

Quoted 93 lines
Quoted 1 line

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.

Quoted 78 lines

Paolo

Quoted 76 lines

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 = <null>
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

Signature · 5 lines
Alexey Kardashevskiy
IBM OzLabs, LTC Team

e-mail: [email protected]
notes: Alexey Kardashevskiy/Australia/IBM
author
#9 lore raw
In reply to Paolo Bonzini
Quoted 8 lines · Paolo Bonzini

Il 07/05/2013 09:20, Li Zhang ha scritto:

Quoted 4 lines

Hi all,

When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

What QEMU commit is this?

It might have been fixed already.

You mean this is one bug of QEMU, right?

We are using our internal branch, and we may need to sync with upstream.

Do you know which commit fixes this problem?

Thanks a lot.
--Li

Quoted 76 lines

Paolo

Quoted 73 lines

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 = <null>
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