From: "Daniel P. Berrangé" <berrange@redhat.com>
To: James Bottomley <jejb@linux.ibm.com>
Cc: Stefan Berger <stefanb@linux.ibm.com>,
qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>
Subject: Re: [PATCH v5 1/2] tpm: convert tpmdev options processing to new visitor format
Date: Mon, 9 Jan 2023 14:57:39 +0000 [thread overview]
Message-ID: <Y7wrYwIuW1giyC33@redhat.com> (raw)
In-Reply-To: <ecabd13c2b311d9f22f58d54737effe0ec966782.camel@linux.ibm.com>
On Thu, Jan 05, 2023 at 03:34:50PM -0500, James Bottomley wrote:
> 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).
Yes, 'help' options should 'exit(0)'
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2023-01-09 14:58 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
2023-01-09 14:57 ` Daniel P. Berrangé [this message]
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=Y7wrYwIuW1giyC33@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=jejb@linux.ibm.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).