ia64/xen-unstable

view buildconfigs/select-linux-arch @ 19807:468561f3c8ee

Only allow DOMCTL_max_vcpus to increase vcpus from zero.

Otherwise reallocation of the vcpus array is unsafe.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 11:10:29 2009 +0100 (2009-06-23)
parents 419a141ca16d
children
line source
1 #!/bin/sh
3 ME=$(basename $0)
5 if [ $# -lt 1 ] || [ $# -gt 2 ] ; then
6 echo "usage: $ME <linux-build-directory>" 1>&2
7 exit 1;
8 fi
10 LINUX_DIR=$1
12 case ${XEN_TARGET_ARCH} in
13 x86_32|x86_64)
14 if [ -d ${LINUX_DIR}/arch/x86 ] ; then
15 ARCH=x86
16 elif [ "${XEN_TARGET_ARCH}" = "x86_32" ] ; then
17 ARCH=i386
18 else
19 ARCH=x86_64
20 fi
21 ;;
22 *)
23 ARCH=${XEN_TARGET_ARCH}
24 ;;
25 esac
27 echo "$ME: ${ARCH}" 1>&2
28 echo ${ARCH}
30 exit 0