qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: James Bottomley <jejb@linux.ibm.com>
To: Stefan Berger <stefanb@linux.ibm.com>, qemu-devel@nongnu.org
Cc: "Daniel P . Berrangé" <berrange@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>
Subject: Re: [PATCH v5 1/2] tpm: convert tpmdev options processing to new visitor format
Date: Thu, 05 Jan 2023 15:34:50 -0500	[thread overview]
Message-ID: <ecabd13c2b311d9f22f58d54737effe0ec966782.camel@linux.ibm.com> (raw)
In-Reply-To: <92288ac5-c850-3d06-d047-0bb5ca1e3397@linux.ibm.com>

On Thu, 2023-01-05 at 09:59 -0500, Stefan Berger wrote:
[...]
> > @@ -2658,7 +2646,6 @@ void qemu_init(int argc, char **argv)
> >       qemu_add_opts(&qemu_boot_opts);
> >       qemu_add_opts(&qemu_add_fd_opts);
> >       qemu_add_opts(&qemu_object_opts);
> > -    qemu_add_opts(&qemu_tpmdev_opts);
> >       qemu_add_opts(&qemu_overcommit_opts);
> >       qemu_add_opts(&qemu_msg_opts);
> >       qemu_add_opts(&qemu_name_opts);
> > @@ -2906,9 +2893,7 @@ void qemu_init(int argc, char **argv)
> >                   break;
> >   #ifdef CONFIG_TPM
> >               case QEMU_OPTION_tpmdev:
> > -                if (tpm_config_parse(qemu_find_opts("tpmdev"),
> > optarg) < 0) {
> > -                    exit(1);
> > -                }
> > +                tpm_config_parse(optarg);
> 
> The comment to v4 still applies:
> 
> $ qemu-system-x86_64 --tpmdev help
> Supported TPM types (choose only one):
>   passthrough   Passthrough TPM backend driver
>      emulator   TPM emulator backend driver
>         mssim   TPM mssim emulator backend driver
> VNC server running on ::1:5900

So I think if I parse this correctly, your complaint is the help option
no longer exit(1)'s?  It shouldn't do that because it's not a failure,
but I can code it to exit(0).

James



  reply	other threads:[~2023-01-05 20:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-05 13:00 [PATCH v5 0/2] tpm: add mssim backend James Bottomley
2023-01-05 13:00 ` [PATCH v5 1/2] tpm: convert tpmdev options processing to new visitor format James Bottomley
2023-01-05 14:59   ` Stefan Berger
2023-01-05 20:34     ` James Bottomley [this message]
2023-01-09 14:57       ` Daniel P. Berrangé
2023-01-05 13:00 ` [PATCH v5 2/2] tpm: add backend for mssim James Bottomley
2023-01-05 16:20   ` Stefan Berger
2023-01-05 22:02     ` James Bottomley
2023-01-05 22:25       ` Stefan Berger

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=ecabd13c2b311d9f22f58d54737effe0ec966782.camel@linux.ibm.com \
    --to=jejb@linux.ibm.com \
    --cc=armbru@redhat.com \
    --cc=berrange@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).