Function crosvm_direct::crosvm::sys::unix::vcpu::set_vcpu_thread_scheduling
source · [−]pub fn set_vcpu_thread_scheduling(
vcpu_affinity: Vec<usize>,
enable_per_vm_core_scheduling: bool,
vcpu_cgroup_tasks_file: Option<File>,
run_rt: bool
) -> Result<()>
Expand description
Set the VCPU thread affinity and other per-thread scheduler properties. This function will be called from each VCPU thread at startup.