mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23: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
8
tpm.c
8
tpm.c
|
@ -159,6 +159,14 @@ static int configure_tpm(QemuOpts *opts)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* validate backend specific opts */
|
||||
qemu_opts_validate(opts, be->opts, &local_err);
|
||||
if (error_is_set(&local_err)) {
|
||||
qerror_report_err(local_err);
|
||||
error_free(local_err);
|
||||
return 1;
|
||||
}
|
||||
|
||||
drv = be->create(opts, id);
|
||||
if (!drv) {
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue