]> xenbits.xensource.com Git - libvirt.git/commit
tpm: adapt sysfs cancel path for new TPM driver
authorStefan Berger <stefanb@us.ibm.com>
Wed, 18 Nov 2015 00:44:13 +0000 (19:44 -0500)
committerCole Robinson <crobinso@redhat.com>
Wed, 18 Nov 2015 01:52:13 +0000 (20:52 -0500)
commit5ed7afa9de4e8d2b7e83fee334a0c3f2bddc6a48
tree6c4e7f40cb65db1c8848f2310adfab7b0a580b1f
parentb6e19cf4cb76427a45883388399b0d2f9bf1c37d
tpm: adapt sysfs cancel path for new TPM driver

This patch addresses BZ 1244895.

Adapt the sysfs TPM command cancel path for the TPM driver that
does not use a miscdevice anymore since Linux 4.0. Support old
and new paths and check their availability.

Add a mockup for the test cases to avoid the testing for
availability of the cancel path.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/util/virtpm.c
tests/qemuxml2argvmock.c