]> xenbits.xensource.com Git - libvirt.git/commit
qemu: command: Use 'qemuBuildChrChardevCommand' to build TPM backend
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Nov 2021 16:12:37 +0000 (17:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 10 Dec 2021 15:37:42 +0000 (16:37 +0100)
commit1ee3314c10852dac667f9a50b00fa81cc68141c5
tree841de501b17d4f7938a06acc32ce386493384174
parent5c62df7e78dd12b7bdc5c602b89ea5005c869dda
qemu: command: Use 'qemuBuildChrChardevCommand' to build TPM backend

Since the backend of the TPM is a chardev we can use the common helper
to instantiate it.

This commit also ensures proper ordering so that the backend chardev is
formatted before it's being referenced.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/aarch64-tpm.aarch64-latest.args
tests/qemuxml2argvdata/ppc64-tpmproxy-with-tpm.ppc64-latest.args
tests/qemuxml2argvdata/tpm-emulator-spapr.ppc64-latest.args
tests/qemuxml2argvdata/tpm-emulator-tpm2-enc.x86_64-latest.args
tests/qemuxml2argvdata/tpm-emulator-tpm2-pstate.x86_64-latest.args
tests/qemuxml2argvdata/tpm-emulator-tpm2.x86_64-latest.args
tests/qemuxml2argvdata/tpm-emulator.x86_64-latest.args