diff options
Diffstat (limited to 'src/linux/mod.rs')
-rw-r--r-- | src/linux/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/mod.rs b/src/linux/mod.rs index 444d8c9b4..9ff692e8c 100644 --- a/src/linux/mod.rs +++ b/src/linux/mod.rs @@ -1719,7 +1719,7 @@ fn run_control<V: VmArch + 'static, Vcpu: VcpuArch + 'static>( // shared by all vCPU threads. // TODO(b/199312402): Avoid enabling core scheduling for the crosvm process // itself for even better performance. Only vCPUs need the feature. - if cfg.per_vm_core_scheduling { + if cfg.core_scheduling && cfg.per_vm_core_scheduling { if let Err(e) = enable_core_scheduling() { error!("Failed to enable core scheduling: {}", e); } @@ -1770,6 +1770,7 @@ fn run_control<V: VmArch + 'static, Vcpu: VcpuArch + 'static>( use_hypervisor_signals, #[cfg(all(target_arch = "x86_64", feature = "gdb"))] to_gdb_channel.clone(), + cfg.core_scheduling, cfg.per_vm_core_scheduling, cfg.host_cpu_topology, cfg.privileged_vm, |