1. 24 7月, 2011 1 次提交
    • M
      virtio-serial: Clean up virtser_bus_dev_print() output · 021a1318
      Markus Armbruster 提交于
      Old version looks like this in info qtree (last four lines):
      
                dev: virtconsole, id ""
                  dev-prop: is_console = 1
                  dev-prop: nr = 0
                  dev-prop: chardev = <null>
                  dev-prop: name = <null>
                   dev-prop-int: id: 0
                   dev-prop-int: guest_connected: 1
                   dev-prop-int: host_connected: 0
                   dev-prop-int: throttled: 0
      
      Indentation is off, and "dev-prop-int" suggests these are properties
      you can configure with -device, which isn't the case.  The other
      buses' print_dev() callbacks don't do that.  For instance, PCI's
      output looks like this:
      
              class Ethernet controller, addr 00:03.0, pci id 1af4:1000 (sub 1af4:0001)
              bar 0: i/o at 0xffffffffffffffff [0x1e]
              bar 1: mem at 0xffffffffffffffff [0xffe]
              bar 6: mem at 0xffffffffffffffff [0xfffe]
      
      Change virtser_bus_dev_print() to that style.  Result:
      
                dev: virtconsole, id ""
                  dev-prop: is_console = 1
                  dev-prop: nr = 0
                  dev-prop: chardev = <null>
                  dev-prop: name = <null>
                  port 0, guest on, host off, throttle off
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      021a1318
  2. 18 7月, 2011 3 次提交
  3. 27 6月, 2011 1 次提交
    • L
      virtio-serial: Fix segfault on guest boot · d2e4d08b
      Luiz Capitulino 提交于
      If I start qemu with:
      
        # qemu -hda disks/test.img -enable-kvm -m 1G -snapshot \
               -device virtio-serial \
               -chardev socket,host=localhost,port=1234,server,nowait,id=foo \
               -device virtserialport,chardev=foo,name=org.qemu.guest_agent
      
      I get a segfault when booting a Fedora 14 guest. The backtrace says:
      
        Program terminated with signal 11, Segmentation fault.
          #0  0x0000000000420850 in handle_control_message (vser=0x3732bd0, buf=0x2c173e0, len=8) at /home/lcapitulino/src/qmp-unstable/hw/virtio-serial-bus.c:335
          335     info = DO_UPCAST(VirtIOSerialPortInfo, qdev, port->dev.info);
      
      What's happening is VIRTIO_CONSOLE_DEVICE_READY is a message for the
      whole device, not for an individual port. So port is NULL. This bug was
      introduced by commit a15bb0d6.
      
      This commit fixes that by making the port returned by find_port_by_id()
      be used only by the VIRTIO_CONSOLE_PORT_READY and
      VIRTIO_CONSOLE_PORT_OPEN messages.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      d2e4d08b
  4. 24 6月, 2011 1 次提交
  5. 27 5月, 2011 4 次提交
  6. 28 4月, 2011 1 次提交
  7. 29 3月, 2011 1 次提交
  8. 21 3月, 2011 2 次提交
  9. 25 2月, 2011 1 次提交
  10. 04 2月, 2011 1 次提交
  11. 20 1月, 2011 4 次提交
  12. 12 1月, 2011 1 次提交
  13. 23 8月, 2010 1 次提交
  14. 31 7月, 2010 1 次提交
  15. 13 7月, 2010 2 次提交
  16. 06 7月, 2010 1 次提交
  17. 01 7月, 2010 1 次提交
  18. 02 6月, 2010 1 次提交
  19. 04 5月, 2010 1 次提交
  20. 28 4月, 2010 11 次提交