]> git.ipfire.org Git - thirdparty/libvirt.git/commit
smartcard: add spicevmc support
authorEric Blake <eblake@redhat.com>
Fri, 4 Feb 2011 02:23:31 +0000 (19:23 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 4 Feb 2011 16:00:39 +0000 (09:00 -0700)
commit79f9267f4bd697fbcfeb040440404bc49195eb48
tree19c739379286e6d5c4fc116678784352688d0640
parentbe87a1236eef208d11196627b159fdf41f1d8a67
smartcard: add spicevmc support

Adds <smartcard mode='passthrough' type='spicevmc'/>, which uses the
new <channel name='smartcard'/> of <graphics type='spice'>.

* docs/schemas/domain.rng: Support new XML.
* docs/formatdomain.html.in: Document it.
* src/conf/domain_conf.h (virDomainGraphicsSpiceChannelName): New
enum value.
(virDomainChrSpicevmcName): New enum.
(virDomainChrSourceDef): Distinguish spicevmc types.
* src/conf/domain_conf.c (virDomainGraphicsSpiceChannelName): Add
smartcard.
(virDomainSmartcardDefParseXML): Parse it.
(virDomainChrDefParseXML, virDomainSmartcardDefParseXML): Set
spicevmc name.
(virDomainChrSpicevmc): New enum conversion functions.
* src/libvirt_private.syms: Export new functions.
* src/qemu/qemu_command.c (qemuBuildChrChardevStr): Conditionalize
name.
* tests/qemuxml2argvtest.c (domain): New test.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-spicevmc.args:
New file.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-spicevmc.xml:
Likewise.
docs/formatdomain.html.in
docs/schemas/domain.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-spicevmc.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-spicevmc.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c