Re: [PATCH RFC 01/10] qemu_tpm: Make APIs work over a single virDomainTPMDef

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

 



On 5/23/22 18:49, Daniel P. Berrangé wrote:
> On Mon, May 09, 2022 at 05:02:08PM +0200, Michal Privoznik wrote:
>> In qemu_extdevice.c lives code that handles helper daemons that
>> are required for some types of devices (e.g. virtiofsd,
>> vhost-user-gpu, swtpm, etc.). These devices have their own
>> handling code in separate files, with only a very basic functions
>> exposed (e.g. for starting/stopping helper process, placing it
>> into given CGroup, etc.). And these functions all work over a
>> single instance of device (virDomainVideoDef *, virDomainFSDef *,
>> etc.), except for TPM handling code which takes virDomainDef *
>> and iterates over it inside its module.
>>
>> Remove this oddness and make qemuExtTPM*() functions look closer
>> to the rest of the code.
>>
>> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
>> ---
>>  src/qemu/qemu_extdevice.c | 51 ++++++++++++++++------
>>  src/qemu/qemu_tpm.c       | 89 +++++++++++----------------------------
>>  src/qemu/qemu_tpm.h       | 11 +++--
>>  3 files changed, 69 insertions(+), 82 deletions(-)
> 
> Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>

PSA: I'm going to push this one regardless of ongoing discussion on the
design, because it's independent of the rest and actually makes TPM code
consistent with the rest of devices.

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux