[libvirt] [PATCH 26/34] conf: turn def->vcpus into a structure

John Ferlan jferlan at redhat.com
Mon Nov 23 22:48:04 UTC 2015



On 11/23/2015 05:22 PM, John Ferlan wrote:
> 
> 
> On 11/20/2015 10:22 AM, Peter Krempa wrote:
>> To allow collecting all relevant data at one place let's make def->vcpus
>> a structure and then we can start moving stuff into it.
>> ---
>>  src/conf/domain_conf.c | 55 ++++++++++++++++++++++++++++++++++++++++++++------
>>  src/conf/domain_conf.h | 10 ++++++++-
>>  2 files changed, 58 insertions(+), 7 deletions(-)
>>

[...]

>> diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
>> index 3490f02..68f82c6 100644
>> --- a/src/conf/domain_conf.h
>> +++ b/src/conf/domain_conf.h
>> @@ -2129,6 +2129,14 @@ struct _virDomainCputune {
>>      virDomainThreadSchedParamPtr iothreadsched;
>>  };
>>
>> +
>> +typedef struct _virDomainVCpuInfo virDomainVCpuInfo;
>> +typedef virDomainVCpuInfo *virDomainVCpuInfoPtr;
>> +
>> +struct _virDomainVCpuInfo {
>> +    bool online;
>> +};

Missed noting these 'VcpuInfo' or 'VCPUInfo" not "VCpuInfo"


John
>> +
>>  typedef struct _virDomainBlkiotune virDomainBlkiotune;
>>  typedef virDomainBlkiotune *virDomainBlkiotunePtr;
>>
>> @@ -2202,7 +2210,7 @@ struct _virDomainDef {
>>      virDomainBlkiotune blkio;
>>      virDomainMemtune mem;
>>
>> -    unsigned int vcpus;
>> +    virDomainVCpuInfoPtr vcpus;
>>      size_t maxvcpus;
>>      int placement_mode;
>>      virBitmapPtr cpumask;
>>
> 
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
> 




More information about the libvir-list mailing list