qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 1/2] tpm: convert tpmdev options processing to new visitor


From: Daniel P . Berrangé
Subject: Re: [PATCH v5 1/2] tpm: convert tpmdev options processing to new visitor format
Date: Mon, 9 Jan 2023 14:57:39 +0000
User-agent: Mutt/2.2.7 (2022-08-07)

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 :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]