]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add usb-serial support
authorGuannan Ren <gren@redhat.com>
Sat, 5 Jan 2013 05:25:36 +0000 (13:25 +0800)
committerGuannan Ren <gren@redhat.com>
Thu, 10 Jan 2013 13:29:20 +0000 (21:29 +0800)
commite3a04455fa4b867726157ff0a35f61a045c443a3
tree1020af88bd74bc3d8aac00803d49c04f08184e6a
parentf8d478b6dfc46a0ad2459844b96937599dec06e1
qemu: add usb-serial support

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 chosen 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
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_command.c