[libvirt] [PATCH 0/2]add usb-serial virtual device support for qemu

Guannan Ren gren at redhat.com
Thu Jan 3 06:57:24 UTC 2013


This two patches are trying to add support for qemu virtual device
usb-serial.

Add an optional 'type' attribute to <target> element of serial port
device. There are two choices for its value, 'isa-serial' and
'usb-serial'. For backward compatibility, when attribute 'type' is
missing the 'isa-serial' will be chose as before.

Libvirt XML sample

    <serial type='pty'>
      <target type='usb-serial' port='0'/>
      <address type='usb' bus='0' port='1'/>
    </serial>

qemu commandline:

qemu ${other_vm_args}              \
    -chardev pty,id=charserial0    \
    -device usb-serial,chardev=charserial0,id=serial0,bus=usb.0,port=1

Guannan Ren(2)
  [PATCH 1/2] qemu: add usb-serial caps flag
  [PATCH 2/2] qemu: add usb-serial support

 docs/formatdomain.html.in     |  9 ++++++++-
 docs/schemas/domaincommon.rng | 20 +++++++++++++++++---
 src/conf/domain_conf.c        | 42 +++++++++++++++++++++++++++++++++++++++---
 src/conf/domain_conf.h        | 10 ++++++++++
 src/libvirt_private.syms      |  2 ++
 src/qemu/qemu_capabilities.c  |  2 ++
 src/qemu/qemu_capabilities.h  |  1 +
 src/qemu/qemu_command.c       | 24 ++++++++++++++++++++++--
 tests/qemuhelptest.c          | 21 ++++++++++++++-------
 9 files changed, 115 insertions(+), 16 deletions(-)




More information about the libvir-list mailing list