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

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

 




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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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]