mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
c677fb49ce
Allow separately specifying each VCPU thread's affinity, extending the existing --cpu-affinity option so that it can parse a new format: <GUEST-CPU>=<HOST-CPU-SET>[:<GUEST-CPU>=<HOST-CPU-SET>[:...]] This can be used to pin each VCPU thread to a single host core, for example. Tested with this command to verify the affinity of the VCPU threads: ps -C crosvm -T | grep vcpu | awk '{print $2}' | xargs -n1 taskset -p BUG=b:167714813 TEST=cargo test TEST=Run crosvm with new --cpu-affinity option; verify with taskset -p Change-Id: Ie6c1acf954931c12b9eaa74c6ae3f67c3f062ef6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2399639 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |