On 9/26/23 11:20, Stefan Berger wrote:
On 1/9/23 11:15, James Bottomley wrote:
From: James Bottomley <james.bottom...@hansenpartnership.com>
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 <j...@linux.ibm.com>
+ while (!QSIMPLEQ_EMPTY(&tco_queue)) {
+ TpmCreateOptionsQueueEntry *tcoqe = QSIMPLEQ_FIRST(&tco_queue);
- return 0;
+ QSIMPLEQ_REMOVE_HEAD(&tco_queue, entry);
+ tpm_init_tpmdev(tcoqe->tco);
tcoqe->tco and the possible emulator or passthrough specific
allocations should probably be also free'ed here.
Use: qapi_free_TpmCreateOptions(tcoqe->tco);