[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 30/42] tpm-passthrough: pass TPMPassthruState to han
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 30/42] tpm-passthrough: pass TPMPassthruState to handle_device_opts |
Date: |
Tue, 10 Oct 2017 00:56:11 +0200 |
It doesn't need TPMBackend. Also reorder arguments for consistency.
Signed-off-by: Marc-André Lureau <address@hidden>
---
hw/tpm/tpm_passthrough.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/tpm/tpm_passthrough.c b/hw/tpm/tpm_passthrough.c
index 048edb1a1a..9326cbfdc9 100644
--- a/hw/tpm/tpm_passthrough.c
+++ b/hw/tpm/tpm_passthrough.c
@@ -239,9 +239,9 @@ static int
tpm_passthrough_open_sysfs_cancel(TPMPassthruState *tpm_pt)
return fd;
}
-static int tpm_passthrough_handle_device_opts(QemuOpts *opts, TPMBackend *tb)
+static int
+tpm_passthrough_handle_device_opts(TPMPassthruState *tpm_pt, QemuOpts *opts)
{
- TPMPassthruState *tpm_pt = TPM_PASSTHROUGH(tb);
const char *value;
value = qemu_opt_get(opts, "cancel-path");
@@ -292,7 +292,7 @@ static TPMBackend *tpm_passthrough_create(QemuOpts *opts,
const char *id)
tb->id = g_strdup(id);
- if (tpm_passthrough_handle_device_opts(opts, tb)) {
+ if (tpm_passthrough_handle_device_opts(tpm_pt, opts)) {
goto err_exit;
}
--
2.14.1.146.gd35faa819
- [Qemu-devel] [PATCH 24/42] tpm-be: call request_completed() out of thread, (continued)
- [Qemu-devel] [PATCH 24/42] tpm-be: call request_completed() out of thread, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 25/42] tpm-be: report error instead of front-end, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 26/42] tpm-be: ask model to the TPM interface, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 27/42] tpm: remove unused opened code, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 28/42] tpm-passthrough: don't save guessed cancel_path in options, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 29/42] tpm-be: update optional function pointers, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 30/42] tpm-passthrough: pass TPMPassthruState to handle_device_opts,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 31/42] tpm-backend: move set 'id' to common code, Marc-André Lureau, 2017/10/09
- Re: [Qemu-devel] [PATCH 31/42] tpm-backend: move set 'id' to common code, Stefan Berger, 2017/10/10
- [Qemu-devel] [PATCH 32/42] tpm-passthrough: make it safer to destroy after creation, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 33/42] tpm-passthrough: remove error cleanup from handle_device_opts, Marc-André Lureau, 2017/10/09