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

[libvirt] 答复: [PATCH] libvirt: lxc: A dd Get/Set vcpus for lxc



On 2014/8/22 17:50, Li Yang wrote:
>> 1.Add function to get vcpu count for lxc(vcpucount) 2.Add function to 
>> set vcpu count for lxc(setvcpus)
>> 
>> Signed-off-by: Li Yang <liyang fnst cn fujitsu com>
>> ---
>>  src/lxc/lxc_driver.c |  159
>> ++++++++++++++++++++++++++++++++++++++++++++++++++
>>  1 files changed, 159 insertions(+), 0 deletions(-)
>
>Does def->vcpus affect anything?
>No matter how much vcpus I set in xml , it seems that the vcpu count in container is equal to the host pcpu count.

Thanks for your respond.
Yes, the vcpus in  xml doesn't  affect container internal vcpu count, I wrote these functions because I
 saw `virsh setmem/setmaxmem` has already been working on domain's xml although it doesn't 
affect container internal memory information.


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