root / trunk / shell / dom0-pin-vcpus @ 53
Historique | Voir | Annoter | Télécharger (412 octet)
1 |
#! /bin/sh -x |
---|---|
2 |
# |
3 |
# ST 2012-05-15 |
4 |
# |
5 |
# Pint the dom0 vcpus. |
6 |
# |
7 |
# Get the directory of the script. |
8 |
SCRIPT_PATH=`dirname $0` |
9 |
# Get the script name. |
10 |
SCRIPT_NAME=`basename $0` |
11 |
# Source the common configuration variables. |
12 |
. $SCRIPT_PATH/c-i-a-b.common |
13 |
# |
14 |
# Pin the VPCU to the selected CPU for dom0 |
15 |
VCPU_NUM=0 |
16 |
for i in $DOM0_CPUS_LIST; do |
17 |
xm vcpu-pin $CONST_XEN_DOM0_NAME $VCPU_NUM $i |
18 |
VCPU_NUM=$((VCPU_NUM + 1)) |
19 |
done |
20 |
|