Add support for the QEMU TPM passthrough device that is supported by libvirt: http://libvirt.org/formatdomain.html#elementsTpm I added the choice of the backend device even though only one backend type (passthrough) is supported right now, but we are working on getting another TPM backend into QEMU. Since only one device model (tpm-tis) is supported and we do not currently have plans to implemented for example a virtio model, I did not provide the choice for the device model. Changes: v1->v2: Followed Cole's suggestions Regards, Stefan Stefan Berger (4): Add VirtualTPMDevice class to virtinst Add CLI support and CLI test cases Add GUI elements for TPM passthrough details Add GUI elements for adding a TPM device to a guest man/virt-install.pod | 28 ++++++ tests/cli-test-xml/compare/many-devices.xml | 10 ++ tests/clitest.py | 11 ++- tests/testdriver.xml | 24 +++++ tests/xmlparse-xml/change-tpm-in.xml | 63 +++++++++++++ tests/xmlparse-xml/change-tpm-out.xml | 63 +++++++++++++ tests/xmlparse.py | 13 +++ ui/vmm-add-hardware.ui | 123 +++++++++++++++++++++++++ ui/vmm-details.ui | 120 ++++++++++++++++++++++++ virt-install | 1 + virtManager/addhardware.py | 70 +++++++++++++- virtManager/details.py | 57 +++++++++++- virtManager/domain.py | 10 ++ virtManager/uihelpers.py | 30 ++++++ virtinst/Guest.py | 1 + virtinst/VirtualDevice.py | 4 +- virtinst/VirtualTPMDevice.py | 136 ++++++++++++++++++++++++++++ virtinst/__init__.py | 1 + virtinst/cli.py | 42 +++++++++ 19 files changed, 801 insertions(+), 6 deletions(-) create mode 100644 tests/xmlparse-xml/change-tpm-in.xml create mode 100644 tests/xmlparse-xml/change-tpm-out.xml create mode 100644 virtinst/VirtualTPMDevice.py -- 1.8.1.4 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list