seoul: set vCPU priority below seoul threads

Issue #1702
This commit is contained in:
Alexander Boettcher 2015-09-09 21:17:10 +02:00 committed by Christian Helmuth
parent 2d15c6d990
commit e5ea76c689
1 changed files with 3 additions and 2 deletions

View File

@ -940,11 +940,12 @@ class Machine : public StaticReceiver<Machine>
_vcpus_up ++;
Vmm::Vcpu_thread * vcpu_thread;
Genode::Cpu_session * cpu_session = Genode::env()->cpu_session();
long const prio = Genode::Cpu_session::PRIORITY_LIMIT / 16;
static Genode::Cpu_connection * cpu_session = new (Genode::env()->heap()) Genode::Cpu_connection("Seoul vCPUs", prio);
Genode::Affinity::Space cpu_space = cpu_session->affinity_space();
Genode::Affinity::Location location = cpu_space.location_of_index(_vcpus_up);
Vmm::Vcpu_thread * vcpu_thread;
if (_colocate_vm_vmm)
vcpu_thread = new Vmm::Vcpu_same_pd(Vcpu_dispatcher::STACK_SIZE, cpu_session, location);
else