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