Skip to content
Snippets Groups Projects
Commit bf5681c0 authored by Tsachy Shacham's avatar Tsachy Shacham Committed by Iustin Pop
Browse files

constants: support for CPU pinning under KVM


Signed-off-by: default avatarTsachy Shacham <tsachy@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e4f4896b
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,8 @@ CPU_PINNING_SEP = ":" ...@@ -104,6 +104,8 @@ CPU_PINNING_SEP = ":"
CPU_PINNING_ALL = "all" CPU_PINNING_ALL = "all"
# internal representation of "all" # internal representation of "all"
CPU_PINNING_ALL_VAL = -1 CPU_PINNING_ALL_VAL = -1
# one "all" entry in a CPU list means CPU pinning is off
CPU_PINNING_OFF = [CPU_PINNING_ALL_VAL]
# A Xen-specific implementation detail - there is no way to actually say # A Xen-specific implementation detail - there is no way to actually say
# "use any cpu for pinning" in a Xen configuration file, as opposed to the # "use any cpu for pinning" in a Xen configuration file, as opposed to the
...@@ -114,6 +116,11 @@ CPU_PINNING_ALL_VAL = -1 ...@@ -114,6 +116,11 @@ CPU_PINNING_ALL_VAL = -1
# blackbox string that simply means use-any-cpu-for-pinning-under-xen. # blackbox string that simply means use-any-cpu-for-pinning-under-xen.
CPU_PINNING_ALL_XEN = "0-63" CPU_PINNING_ALL_XEN = "0-63"
# A KVM-specific implementation detail - the following value is used
# to set CPU affinity to all processors (#0 through #31), per taskset
# man page.
CPU_PINNING_ALL_KVM = 0xFFFFFFFF
# Wipe # Wipe
DD_CMD = "dd" DD_CMD = "dd"
WIPE_BLOCK_SIZE = 1024 ** 2 WIPE_BLOCK_SIZE = 1024 ** 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment