From 107edb3eec98a707118ae9a4a804a256e53892a0 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 5 Apr 2019 09:58:48 -0700 Subject: main: add --cpu-affinity option to pin VCPUs This allows setting the affinity of the VCPU threads to specific host CPUs. Note that each individual CPU has its affinity set to the full set of CPUs specified, so the host kernel may still reschedule VCPU threads on whichever host CPUs it sees fit (within the specified set). BUG=chromium:909793 TEST=build_test Change-Id: I09b893901caf91368b64f5329a6e9f39027fef23 Signed-off-by: Daniel Verkamp Reviewed-on: https://chromium-review.googlesource.com/1554865 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: kokoro Reviewed-by: Chirantan Ekbote Reviewed-by: Dylan Reid --- src/argument.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/argument.rs') diff --git a/src/argument.rs b/src/argument.rs index 43ae424..6b4cfe9 100644 --- a/src/argument.rs +++ b/src/argument.rs @@ -44,6 +44,7 @@ use std::fmt::{self, Display}; use std::result; /// An error with argument parsing. +#[derive(Debug)] pub enum Error { /// There was a syntax error with the argument. Syntax(String), -- cgit 1.4.1