diff options
author | Eric Blake <eblake@redhat.com> | 2011-01-05 18:02:20 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-02-03 19:27:43 -0700 |
commit | ffdf478be2e61c554ce229be186168a6997bb9b2 (patch) | |
tree | 9a65161792142b35a0bf3c704ee9090466b37669 /tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml | |
parent | docs/index.html.in: update QEMU url (diff) | |
download | libvirt-ffdf478be2e61c554ce229be186168a6997bb9b2.tar.gz libvirt-ffdf478be2e61c554ce229be186168a6997bb9b2.tar.bz2 libvirt-ffdf478be2e61c554ce229be186168a6997bb9b2.zip |
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.
Diffstat (limited to 'tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml')
-rw-r--r-- | tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml b/tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml new file mode 100644 index 000000000..f133391db --- /dev/null +++ b/tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml @@ -0,0 +1,19 @@ +<domain type='qemu'> + <name>QEMUGuest1</name> + <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid> + <memory>219136</memory> + <currentMemory>219200</currentMemory> + <vcpu>1</vcpu> + <os> + <type arch='i686' machine='pc'>hvm</type> + <boot dev='hd'/> + </os> + <devices> + <emulator>/usr/bin/qemu</emulator> + <smartcard mode='passthrough' type='tcp'> + <source mode='bind' host='127.0.0.1' service='2001'/> + <protocol type='raw'/> + </smartcard> + <memballoon model='virtio'/> + </devices> +</domain> |