init: scale priority of vm_session

Issue #3111
This commit is contained in:
Alexander Boettcher 2019-01-11 15:40:49 +01:00 committed by Christian Helmuth
parent 450c8dc149
commit d459432c45

View File

@ -11,6 +11,8 @@
* under the terms of the GNU Affero General Public License version 3.
*/
#include <vm_session/vm_session.h>
/* local includes */
#include <child.h>
@ -600,7 +602,9 @@ void Init::Child::filter_session_args(Service::Name const &service,
/*
* Intercept CPU session requests to scale priorities
*/
if (service == Cpu_session::service_name() && _prio_levels_log2 > 0) {
if ((service == Cpu_session::service_name() ||
service == Vm_session::service_name())
&& _prio_levels_log2 > 0) {
unsigned long priority = Arg_string::find_arg(args, "priority").ulong_value(0);