Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
libvirt.25654
75a4e016-qemu-validate-prealloc-threads.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 75a4e016-qemu-validate-prealloc-threads.patch of Package libvirt.25654
commit 75a4e0165ef199809974e97b507d3953e1de01d1 Author: Michal Prívozník <mprivozn@redhat.com> Date: Mon Mar 21 17:09:40 2022 +0100 qemu_validate: Validate prealloc threads against qemuCpas Only fairly new QEMUs are capable of user provided number of preallocation threads. Validate this assumption. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Index: libvirt-7.1.0/src/qemu/qemu_validate.c =================================================================== --- libvirt-7.1.0.orig/src/qemu/qemu_validate.c +++ libvirt-7.1.0/src/qemu/qemu_validate.c @@ -771,6 +771,13 @@ qemuValidateDomainDefMemory(const virDom return -1; } + if (mem->allocation_threads > 0 && + !virQEMUCapsGet(qemuCaps, QEMU_CAPS_MEMORY_BACKEND_PREALLOC_THREADS)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("preallocation threads are unsupported with this QEMU")); + return -1; + } + if (mem->source == VIR_DOMAIN_MEMORY_SOURCE_ANONYMOUS) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("hugepages are not allowed with anonymous "
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