<div dir="ltr"><div><div><div><div>Hi Michal,<br><br></div>Thank you for the answer, I understand now!<br></div>Indeed we haven't met for a long while, I hope I will have a chance to talk to you at the Brno developer conference.<br><br></div>Best regards,<br></div>Laszlo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 20, 2014 at 10:24 AM, Michal Privoznik <span dir="ltr"><<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 20.11.2014 09:12, Laszlo Hornyak wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
</blockquote>
<br>
Hey Laszlo, long time no see!<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
According to the libvirt documentation [1]<br>
<br>
"Show maximum number of virtual CPUs for guest domains on this connection"<br>
<br>
This may not be a complete definition.<br>
<br>
My first guess from the above was that this returns the number of<br>
virtual CPUs that can exist at the same time on the host, either one or<br>
several VMs. In fact it returned 16 in my fedora 20 desktop running with<br>
KVM, while this is not the real limit of vCPUs. I can define a VM with<br>
more than 16 vCPUs (which does not really make sense when I have only<br>
two cores, but it looks cool) and  also I can have well over 16 virtual<br>
machines running on the host. I looked into the implementation and now I<br>
understand that each driver returns different values, but I do not<br>
understand the constants. Can you guys give me some hints how should I<br>
understand the output of the command?<br>
<br>
</blockquote>
<br></span>
Well, qemu drivers serves both virt types: kvm and bare qemu. While the latter has no real limit (it's just an userland process without hw acceleration), the former involves KVM in kernel and thus has some limitation on maximal number of machines (inherited from KVM limitation). So, unless you specify which virt type you want to use, libvirt blindly returns 16 (arbitrary meaningless value). But if you specify kvm you'll get sensible value:<br>
<br>
virsh # maxvcpus<br>
16<br>
<br>
virsh # maxvcpus --type kvm<br>
255<br>
<br>
<br>
Hope this shed more light in.<span class="HOEnZb"><font color="#888888"><br>
<br>
Michal<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><br>EOF</div>
</div>