mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
a74f4e4464
Syntax agreed on in https://www.redhat.com/archives/libvir-list/2010-September/msg00476.html <domain ...> <vcpu current='x'>y</vcpu> ... can now be used to specify 1 <= x <= y current vcpus, in relation to the boot-time max of y vcpus. If current is omitted, then current and max are assumed to be the same value. * docs/schemas/domain.rng: Add new attribute. * docs/formatdomain.html.in: Document it. * tests/qemuxml2argvdata/qemuxml2argv-smp.xml: Add to domainschematest. * tests/xml2sexprdata/xml2sexpr-pv-vcpus.xml: Likewise.
23 lines
689 B
XML
23 lines
689 B
XML
<domain type='xen' id='15'>
|
|
<name>pvtest</name>
|
|
<uuid>596a5d2171f48fb2e068e2386a5c413e</uuid>
|
|
<os>
|
|
<type>linux</type>
|
|
<kernel>/var/lib/xen/vmlinuz.2Dn2YT</kernel>
|
|
<initrd>/var/lib/xen/initrd.img.0u-Vhq</initrd>
|
|
<cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os </cmdline>
|
|
</os>
|
|
<memory>430080</memory>
|
|
<vcpu current='2'>4</vcpu>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<source file='/root/some.img'/>
|
|
<target dev='xvda'/>
|
|
</disk>
|
|
<console tty='/dev/pts/4'/>
|
|
</devices>
|
|
</domain>
|