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

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

 



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@xxxxxxxxxxxxxx>
>> ---
>>  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.

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