Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP3:Update
xen.36362
libxl.max_event_channels.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libxl.max_event_channels.patch of Package xen.36362
References: bsc#1167608 unbound limits for max_event_channels 1023 is too low for a three digit value of vcpus it is difficult to make the value depend on the number of vcpus adding devices at runtime also needs event channels But, having an unbound value (of 128k) may have a negative effect on XSA-344. Therefore, just let the built-in default depend on the number of vcpus. Index: xen-4.14.0-testing/tools/libxl/libxl_create.c =================================================================== --- xen-4.14.0-testing.orig/tools/libxl/libxl_create.c +++ xen-4.14.0-testing/tools/libxl/libxl_create.c @@ -262,7 +262,7 @@ int libxl__domain_build_info_setdefault( b_info->iomem[i].gfn = b_info->iomem[i].start; if (!b_info->event_channels) - b_info->event_channels = 1023; + b_info->event_channels = max(1023, 8 * b_info->max_vcpus + 511); libxl__arch_domain_build_info_setdefault(gc, b_info); libxl_defbool_setdefault(&b_info->dm_restrict, false);
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