mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
fixup: hw: x86_64: refactor Vm_session_component
Remove unused vCPU priority support. Issue #5221
This commit is contained in:
committed by
Norman Feske
parent
bd79ee0805
commit
40b00e2bcd
@@ -116,7 +116,6 @@ class Core::Svm_session_component
|
||||
Diag diag,
|
||||
Ram_allocator &ram_alloc,
|
||||
Region_map ®ion_map,
|
||||
unsigned,
|
||||
Trace::Source_registry &)
|
||||
:
|
||||
Session_object(ds_ep, resources, label, diag),
|
||||
|
||||
@@ -116,7 +116,6 @@ class Core::Vmx_session_component
|
||||
Diag diag,
|
||||
Ram_allocator &ram_alloc,
|
||||
Region_map ®ion_map,
|
||||
unsigned,
|
||||
Trace::Source_registry &)
|
||||
:
|
||||
Session_object(ds_ep, resources, label, diag),
|
||||
|
||||
@@ -43,15 +43,6 @@ class Core::Vm_root : public Root_component<Session_object<Vm_session>>
|
||||
|
||||
Session_object<Vm_session> *_create_session(const char *args) override
|
||||
{
|
||||
unsigned priority = 0;
|
||||
Arg a = Arg_string::find_arg(args, "priority");
|
||||
if (a.valid()) {
|
||||
priority = (unsigned)a.ulong_value(0);
|
||||
|
||||
/* clamp priority value to valid range */
|
||||
priority = min((unsigned)Cpu_session::PRIORITY_LIMIT - 1, priority);
|
||||
}
|
||||
|
||||
Session::Resources resources = session_resources_from_args(args);
|
||||
|
||||
if (Hw::Virtualization_support::has_svm())
|
||||
@@ -61,7 +52,7 @@ class Core::Vm_root : public Root_component<Session_object<Vm_session>>
|
||||
resources,
|
||||
session_label_from_args(args),
|
||||
session_diag_from_args(args),
|
||||
_ram_allocator, _local_rm, priority,
|
||||
_ram_allocator, _local_rm,
|
||||
_trace_sources);
|
||||
|
||||
if (Hw::Virtualization_support::has_vmx())
|
||||
@@ -71,7 +62,7 @@ class Core::Vm_root : public Root_component<Session_object<Vm_session>>
|
||||
session_resources_from_args(args),
|
||||
session_label_from_args(args),
|
||||
session_diag_from_args(args),
|
||||
_ram_allocator, _local_rm, priority,
|
||||
_ram_allocator, _local_rm,
|
||||
_trace_sources);
|
||||
|
||||
Genode::error( "No virtualization support detected.");
|
||||
|
||||
Reference in New Issue
Block a user