]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Extract opening of TPM backend FDs for mocking purposes
authorPeter Krempa <pkrempa@redhat.com>
Tue, 14 Aug 2018 12:17:52 +0000 (14:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 24 Aug 2018 13:58:34 +0000 (15:58 +0200)
commit09e45e8a9be2f004242452f23180d580700142d8
tree34d3d908b0040918c8b8e20d4a15a68121cbab65
parentd06a8ebe8f1737881fb316ca266d3dd2ab679155
qemu: command: Extract opening of TPM backend FDs for mocking purposes

Allow mocking of the file descriptor numbers used for the TPM
passthrough mode by extracting the relevant code into an exported
function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h