]> git.ipfire.org Git - thirdparty/libvirt.git/commit
smartcard: add XML support for <smartcard> device
authorEric Blake <eblake@redhat.com>
Thu, 6 Jan 2011 01:02:20 +0000 (18:02 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 4 Feb 2011 02:27:43 +0000 (19:27 -0700)
commitffdf478be2e61c554ce229be186168a6997bb9b2
tree9a65161792142b35a0bf3c704ee9090466b37669
parentad88e17ff5d0c733c7f6caee509353feeb9c8602
smartcard: add XML support for <smartcard> device

Assuming a hypervisor that supports multiple smartcard devices in the
guest, this would be a valid XML description:

<devices>
  <smartcard mode='host'/>
  <smartcard mode='host-certificates'>
    <certificate>/path/to/cert1</certificate>
    <certificate>/path/to/cert2</certificate>
    <certificate>/path/to/cert3</certificate>
  </smartcard>
  <smartcard mode='passthrough' type='tcp'>
    <source mode='bind' host='127.0.0.1' service='2001'/>
    <protocol type='raw'/>
  </smartcard>
</devices>

(As of this commit, the qemu hypervisor will be the first
implementation, but it only supports one smartcard.)

* docs/formatdomain.html.in (Smartcard devices): New section.
* docs/schemas/domain.rng (smartcard): New define, used in
devices.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-host.xml: New file
to test schema.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-host-certificates.xml:
Likewise.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml:
Likewise.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-controller.xml:
Likewise.
docs/formatdomain.html.in
docs/schemas/domain.rng
tests/qemuxml2argvdata/qemuxml2argv-smartcard-controller.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-smartcard-host-certificates.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-smartcard-host.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml [new file with mode: 0644]