Re: [libvirt] [PATCH v9 06/17] qemu: Extend QEMU with external TPM support

2018-06-07 Thread bushuanshuan
... > +static int > +qemuExtTPMStartEmulator(virQEMUDriverPtr driver, > +virDomainDefPtr def, > +qemuDomainLogContextPtr logCtxt) > +{ ... > +if (!(cmd = qemuTPMEmulatorBuildCommand(tpm, def->name, def->uuid, > +

Re: [libvirt] [PATCH v9 06/17] qemu: Extend QEMU with external TPM support

2018-06-07 Thread Stefan Berger
On 06/06/2018 09:08 PM, bushuanshuan wrote: ... > +static int > +qemuExtTPMStartEmulator(virQEMUDriverPtr driver, > +    virDomainDefPtr def, > +    qemuDomainLogContextPtr logCtxt) > +{ ... > +    if (!(cmd = qemuTPMEmulatorBuildCommand(tpm,

[libvirt] [PATCH v9 06/17] qemu: Extend QEMU with external TPM support

2018-06-04 Thread Stefan Berger
Implement functions for managing the storage of the external swtpm as well as starting and stopping it. Also implement functions to use swtpm_setup, which simulates the manufacturing of a TPM, which includes creation of certificates for the device. Further, the external TPM needs storage on the