mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Move TPM passthrough specific command line options to backend structure
Move the TPM passthrough specific command line options to the passthrough backend implementation and attach them to the backend's interface structure. Add code to tpm.c for validating the TPM command line options. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Corey Bryan <coreyb@linux.vnet.ibm.com> Message-id: 1366641699-21420-1-git-send-email-stefanb@linux.vnet.ibm.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
13daf6cad0
commit
bb71623811
5 changed files with 33 additions and 15 deletions
16
vl.c
16
vl.c
|
@ -502,21 +502,7 @@ static QemuOptsList qemu_tpmdev_opts = {
|
|||
.implied_opt_name = "type",
|
||||
.head = QTAILQ_HEAD_INITIALIZER(qemu_tpmdev_opts.head),
|
||||
.desc = {
|
||||
{
|
||||
.name = "type",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Type of TPM backend",
|
||||
},
|
||||
{
|
||||
.name = "cancel-path",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Sysfs file entry for canceling TPM commands",
|
||||
},
|
||||
{
|
||||
.name = "path",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Path to TPM device on the host",
|
||||
},
|
||||
/* options are defined in the TPM backends */
|
||||
{ /* end of list */ }
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue