[PATCH 09/16] conf: Convert 'chr' in virDomainShmemDef to proper pointer

Ján Tomko jtomko at redhat.com
Fri Nov 19 10:36:17 UTC 2021


On a Friday in 2021, Peter Krempa wrote:
>On Thu, Nov 18, 2021 at 17:33:34 +0100, Peter Krempa wrote:
>> The main reason is to ensure that the private data are properly
>> allocated for every instance.
>>
>> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>> ---
>>  src/conf/domain_audit.c |  2 +-
>>  src/conf/domain_conf.c  | 17 ++++++++++-------
>>  src/conf/domain_conf.h  |  2 +-
>>  src/qemu/qemu_command.c |  2 +-
>>  src/qemu/qemu_domain.c  |  6 +++---
>>  src/qemu/qemu_hotplug.c |  2 +-
>>  6 files changed, 17 insertions(+), 14 deletions(-)
>
>[...]
>
>> diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
>> index ab9a7d66f8..3cb68c5d0a 100644
>> --- a/src/conf/domain_conf.h
>> +++ b/src/conf/domain_conf.h
>> @@ -1997,7 +1997,7 @@ struct _virDomainShmemDef {
>>      virDomainShmemRole role;
>>      struct {
>>          bool enabled;
>> -        virDomainChrSourceDef chr;
>> +        virDomainChrSourceDef *chr;
>>      } server;
>>      struct {
>>          bool enabled;
>
>Apparently I've misplaced my hack to build the apparmor security driver
>on my dev box, so the following diff is needed to build properly:
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211119/98fb36bb/attachment-0001.sig>


More information about the libvir-list mailing list