mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
cputune: New tests for cputune XML
v1 - v2: * Add missed tests/qemuxml2argvdata/qemuxml2argv-cputune.args
This commit is contained in:
parent
01692bb167
commit
079ae9c7a1
4
tests/qemuxml2argvdata/qemuxml2argv-cputune.args
Normal file
4
tests/qemuxml2argvdata/qemuxml2argv-cputune.args
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M \
|
||||||
|
pc -m 214 -smp 2 -name QEMUGuest1 -nographic \
|
||||||
|
-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c \
|
||||||
|
-hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
|
30
tests/qemuxml2argvdata/qemuxml2argv-cputune.xml
Normal file
30
tests/qemuxml2argvdata/qemuxml2argv-cputune.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory>219136</memory>
|
||||||
|
<currentMemory>219136</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<cputune>
|
||||||
|
<shares>2048</shares>
|
||||||
|
<vcpupin vcpu='0' cpuset='0'/>
|
||||||
|
<vcpupin vcpu='1' cpuset='1'/>
|
||||||
|
</cputune>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='hd'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu</emulator>
|
||||||
|
<disk type='block' device='disk'>
|
||||||
|
<source dev='/dev/HostVG/QEMUGuest1'/>
|
||||||
|
<target dev='hda' bus='ide'/>
|
||||||
|
<address type='drive' controller='0' bus='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='ide' index='0'/>
|
||||||
|
<memballoon model='virtio'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -494,6 +494,7 @@ mymain(int argc, char **argv)
|
|||||||
|
|
||||||
DO_TEST("memtune", false, QEMU_CAPS_NAME);
|
DO_TEST("memtune", false, QEMU_CAPS_NAME);
|
||||||
DO_TEST("blkiotune", false, QEMU_CAPS_NAME);
|
DO_TEST("blkiotune", false, QEMU_CAPS_NAME);
|
||||||
|
DO_TEST("cputune", false, QEMU_CAPS_NAME);
|
||||||
|
|
||||||
free(driver.stateDir);
|
free(driver.stateDir);
|
||||||
virCapabilitiesFree(driver.caps);
|
virCapabilitiesFree(driver.caps);
|
||||||
|
@ -185,6 +185,7 @@ mymain(int argc, char **argv)
|
|||||||
DO_TEST("encrypted-disk");
|
DO_TEST("encrypted-disk");
|
||||||
DO_TEST("memtune");
|
DO_TEST("memtune");
|
||||||
DO_TEST("blkiotune");
|
DO_TEST("blkiotune");
|
||||||
|
DO_TEST("cputune");
|
||||||
|
|
||||||
DO_TEST("smp");
|
DO_TEST("smp");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user