Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
libvirt.6841
58ba240d-cmt-fix3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 58ba240d-cmt-fix3.patch of Package libvirt.6841
commit 58ba240df89a7dd7bff16ebb65d9aadd49fb8bbb Author: Jiri Denemark <jdenemar@redhat.com> Date: Tue Aug 9 15:03:20 2016 +0200 tests: Add a test for host-model CPU with CMT feature The generated command line wouldn't work since QEMU doesn't know what 'cmt' is. The following patch will fix this issue. https://bugzilla.redhat.com/show_bug.cgi?id=1355857 Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Index: libvirt-2.0.0/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-cmt.args =================================================================== --- /dev/null +++ libvirt-2.0.0/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-cmt.args @@ -0,0 +1,22 @@ +LC_ALL=C \ +PATH=/bin \ +HOME=/home/test \ +USER=test \ +LOGNAME=test \ +QEMU_AUDIO_DRV=none \ +/usr/bin/qemu \ +-name QEMUGuest1 \ +-S \ +-M pc \ +-cpu Haswell,+vme,+ds,+acpi,+ss,+ht,+tm,+pbe,+dtes64,+monitor,+ds_cpl,+vmx,\ ++smx,+est,+tm2,+xtpr,+pdcm,+osxsave,+f16c,+rdrand,+cmt,+pdpe1gb,+abm \ +-m 214 \ +-smp 6 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-nographic \ +-nodefaults \ +-monitor unix:/tmp/lib/domain--1-QEMUGuest1/monitor.sock,server,nowait \ +-no-acpi \ +-boot n \ +-usb \ +-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 Index: libvirt-2.0.0/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-cmt.xml =================================================================== --- /dev/null +++ libvirt-2.0.0/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-cmt.xml @@ -0,0 +1,19 @@ +<domain type='qemu'> + <name>QEMUGuest1</name> + <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid> + <memory unit='KiB'>219100</memory> + <currentMemory unit='KiB'>219100</currentMemory> + <vcpu placement='static'>6</vcpu> + <os> + <type arch='x86_64' machine='pc'>hvm</type> + <boot dev='network'/> + </os> + <cpu mode='host-model'/> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>destroy</on_crash> + <devices> + <emulator>/usr/bin/qemu</emulator> + </devices> +</domain> Index: libvirt-2.0.0/tests/qemuxml2argvtest.c =================================================================== --- libvirt-2.0.0.orig/tests/qemuxml2argvtest.c +++ libvirt-2.0.0/tests/qemuxml2argvtest.c @@ -1338,6 +1338,7 @@ mymain(void) DO_TEST("cpu-Haswell2", QEMU_CAPS_KVM); DO_TEST("cpu-Haswell3", QEMU_CAPS_KVM); DO_TEST("cpu-Haswell-noTSX", QEMU_CAPS_KVM); + DO_TEST("cpu-host-model-cmt", NONE); driver.caps->host.cpu = cpuDefault; DO_TEST("encrypted-disk", NONE); Index: libvirt-2.0.0/tests/testutilsqemu.c =================================================================== --- libvirt-2.0.0.orig/tests/testutilsqemu.c +++ libvirt-2.0.0/tests/testutilsqemu.c @@ -54,6 +54,7 @@ static virCPUFeatureDef cpuHaswellFeatur { (char *) "invtsc", -1 }, { (char *) "abm", -1 }, { (char *) "pdpe1gb", -1 }, + { (char *) "cmt", -1 }, { (char *) "rdrand", -1 }, { (char *) "f16c", -1 }, { (char *) "osxsave", -1 },
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor