On 01/09/2017 12:14 PM, Jason Gunthorpe wrote: >>> Not sure I see it, surely running a program in userspace is simpler >>> than patching the kernel? >> Heh, is that a serious question to a kernel developer? If the program >> actually existed, sure, but does it? > Stefan has something to connect vtpm to a TPM2 emulator.
https://github.com/stefanberger/linux-vtpm-tests #> ./src/vtpmctrl --help This is a test tool for the Linux vTPM proxy driver Usage: ./src/vtpmctrl options The following options are supported: --tpm2 : A TPM 2 is used --exit-on-user-request : The tool exits upon a request issued by the user. --spawn program prg-params... : Spawn the given program and pass to it the file descriptor on which to listen for TPM commands. If a parameter '%fd' appears among the prg-params passed to the program, it will be replaced by that file descriptor number. This option must be the last option passed. --help|-h|-? : Display this help screen and exit. Examples: ./src/vtpmctrl --tpm2 \ --spawn /bin/swtpm chardev --tpm2 --fd %fd --tpmstate dir=/tmp ./src/vtpmctrl \ --spawn /bin/swtpm chardev --fd %fd --tpmstate dir=/tmp Stefan ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ tpmdd-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
