All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun Menon <armenon@redhat.com>
To: Stefan Berger <stefanb@linux.ibm.com>
Cc: qemu-devel@nongnu.org, marcandre.lureau@redhat.com
Subject: Re: [PATCH 4/6] tests: Rename id of tpmdev to tpm0
Date: Wed, 29 Apr 2026 17:00:54 +0530	[thread overview]
Message-ID: <afHr7l57qJFyRuLO@fedora> (raw)
In-Reply-To: <20260428130718.1325177-5-stefanb@linux.ibm.com>

Hi,

On Tue, Apr 28, 2026 at 01:07:16PM +0000, Stefan Berger wrote:
> Rename the id of the tpmdev from dev to tpm0 because this 'dev' cannot
> be used when the tpm-tis-i2c device is used.
> 
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> ---
>  tests/qtest/tpm-tests.c | 4 ++--
>  tests/qtest/tpm-util.c  | 8 ++++----
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/qtest/tpm-tests.c b/tests/qtest/tpm-tests.c
> index dcbf5457ed..d1fe4a85d4 100644
> --- a/tests/qtest/tpm-tests.c
> +++ b/tests/qtest/tpm-tests.c
> @@ -49,8 +49,8 @@ void tpm_test_swtpm_test(const char *src_tpm_path, tx_func *tx,
>      args = g_strdup_printf(
>          "%s "
>          "-chardev socket,id=chr,path=%s "
> -        "-tpmdev emulator,id=dev,chardev=chr "
> -        "-device %s,tpmdev=dev",
> +        "-tpmdev emulator,id=tpm0,chardev=chr "
> +        "-device %s,tpmdev=tpm0",
>          machine_options ? : "", addr->u.q_unix.path, ifmodel);
>  
>      s = qtest_start(args);
> diff --git a/tests/qtest/tpm-util.c b/tests/qtest/tpm-util.c
> index 1a47099807..35e9d3f32e 100644
> --- a/tests/qtest/tpm-util.c
> +++ b/tests/qtest/tpm-util.c
> @@ -227,8 +227,8 @@ void tpm_util_migration_start_qemu(QTestState **src_qemu,
>      src_qemu_args = g_strdup_printf(
>          "%s "
>          "-chardev socket,id=chr,path=%s "
> -        "-tpmdev emulator,id=dev,chardev=chr "
> -        "-device %s,tpmdev=dev ",
> +        "-tpmdev emulator,id=tpm0,chardev=chr "
> +        "-device %s,tpmdev=tpm0 ",
>          machine_options ? : "", src_tpm_addr->u.q_unix.path, ifmodel);
>  
>      *src_qemu = qtest_init(src_qemu_args);
> @@ -236,8 +236,8 @@ void tpm_util_migration_start_qemu(QTestState **src_qemu,
>      dst_qemu_args = g_strdup_printf(
>          "%s "
>          "-chardev socket,id=chr,path=%s "
> -        "-tpmdev emulator,id=dev,chardev=chr "
> -        "-device %s,tpmdev=dev "
> +        "-tpmdev emulator,id=tpm0,chardev=chr "
> +        "-device %s,tpmdev=tpm0 "
>          "-incoming %s",
>          machine_options ? : "",
>          dst_tpm_addr->u.q_unix.path,
> -- 
> 2.43.0
> 
> 

Reviewed-by: Arun Menon <armenon@redhat.com>


Regards,
Arun Menon



  reply	other threads:[~2026-04-29 11:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-28 13:07 [PATCH 0/6] Add test case for TPM over I2C with swtpm Stefan Berger
2026-04-28 13:07 ` [PATCH 1/6] tests: Move TPM I2C bus read/write functions to common files Stefan Berger
2026-04-29 11:29   ` Arun Menon
2026-04-28 13:07 ` [PATCH 2/6] tests: Have TPM I2C read/write functions take QTestState as first parameter Stefan Berger
2026-04-29 11:30   ` Arun Menon
2026-04-28 13:07 ` [PATCH 3/6] tests: Set sizes for arrays of expected TPM responses and requests Stefan Berger
2026-04-29 11:29   ` Arun Menon
2026-04-28 13:07 ` [PATCH 4/6] tests: Rename id of tpmdev to tpm0 Stefan Berger
2026-04-29 11:30   ` Arun Menon [this message]
2026-04-28 13:07 ` [PATCH 5/6] tests: Implement aspeed_i2c_restart to reenable selection of master Stefan Berger
2026-04-29 11:32   ` Arun Menon
2026-04-29 12:13     ` Stefan Berger
2026-04-28 13:07 ` [PATCH 6/6] tests: Add a TPM TIS I2C swtpm test Stefan Berger
2026-04-29 11:32   ` Arun Menon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afHr7l57qJFyRuLO@fedora \
    --to=armenon@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.