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

Li, Yang liyang.fnst at cn.fujitsu.com
Mon Aug 25 09:12:07 UTC 2014


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 at 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.




More information about the libvir-list mailing list