]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Add XML for individual vCPU hotplug
authorPeter Krempa <pkrempa@redhat.com>
Tue, 2 Aug 2016 15:58:43 +0000 (17:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Aug 2016 19:44:47 +0000 (15:44 -0400)
commit5847bc5c64f205a2f00315a2434e8a7bd48c5508
treea90417196cd6013a3bac9d882aec319173b09a08
parentc84c2cb389398d684a00066c421813e7908a84e7
conf: Add XML for individual vCPU hotplug

Individual vCPU hotplug requires us to track the state of any vCPU. To
allow this add the following XML:

<domain>
  ...
  <vcpu current='2'>3</vcpu>
  <vcpus>
    <vcpu id='0' enabled='yes' hotpluggable='no' order='1'/>
    <vcpu id='1' enabled='yes' hotpluggable='yes' order='2'/>
    <vcpu id='1' enabled='no' hotpluggable='yes'/>
  </vcpus>
  ...

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.
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_domain.c
tests/genericxml2xmlindata/generic-vcpus-individual.xml [new file with mode: 0644]
tests/genericxml2xmltest.c
tests/testutils.c