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

2023-01-02 Thread Stefan Berger
On 12/30/22 22:40, James Bottomley wrote: On Fri, 2022-12-30 at 12:01 -0500, Stefan Berger wrote: On 12/30/22 10:24, James Bottomley wrote: [...] @@ -2906,9 +2893,7 @@ void qemu_init(int argc, char **argv)   break;   #ifdef CONFIG_TPM   case QEMU_OPTION_tpmdev

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

2022-12-30 Thread James Bottomley
On Fri, 2022-12-30 at 12:01 -0500, Stefan Berger wrote: > On 12/30/22 10:24, James Bottomley wrote: [...] > > @@ -2906,9 +2893,7 @@ void qemu_init(int argc, char **argv) > >   break; > >   #ifdef CONFIG_TPM > >   case QEMU_OPTION_tpmdev: > > -    if (tpm_conf

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

2022-12-30 Thread Stefan Berger
On 12/30/22 10:24, James Bottomley wrote: From: James Bottomley Instead of processing the tpmdev options using the old qemu options, convert to the new visitor format which also allows the passing of json on the command line. Signed-off-by: James Bottomley --- v4: add TpmConfiOptions ---

[PATCH v4 1/2] tpm: convert tpmdev options processing to new visitor format

2022-12-30 Thread James Bottomley
From: James Bottomley Instead of processing the tpmdev options using the old qemu options, convert to the new visitor format which also allows the passing of json on the command line. Signed-off-by: James Bottomley --- v4: add TpmConfiOptions --- backends/tpm/tpm_emulator.c| 24 -