[libvirt] [PATCH v2 16/23] conf: Add XML for individual vCPU hotplug

John Ferlan jferlan at redhat.com
Fri Aug 19 21:08:50 UTC 2016

On 08/19/2016 10:38 AM, Peter Krempa wrote:
> Individual vCPU hotplug requires us to track the state of any vCPU. To
> allow this add the following XML:
> <domain>
>   ...
>   <vcpu current='1'>2</vcpu>
>   <vcpus>
>     <vcpu id='0' enabled='no' hotpluggable='yes'/>
>     <vcpu id='1' enabled='yes' hotpluggable='no' order='1'/>
>   </vcpus>
>   ...

Rules as of patch 20 don't allow this config to work -

error: unsupported configuration: vcpu 0 can't be offline

> The 'enabled' attribute allows to control the state of the vcpu.
> 'hotpluggable' controls whether given vcpu can be hotplugged and 'order'
> allows to specify the order to add the vcpus.


More information about the libvir-list mailing list