ia64/xen-unstable

view buildconfigs/select-linux-image @ 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 3 ] ; then
6 echo "usage: $ME <linux-build-directory> <linux-arch> <linux-targets...>" 1>&2
7 exit 1;
8 fi
10 LINUX_DIR=$1
11 LINUX_ARCH=$2
12 LINUX_TARGET=$3 # We don't care about second and subsequent targets
14 case ${XEN_TARGET_ARCH} in
15 ia64)
16 IMAGE=${LINUX_DIR}/arch/ia64/hp/sim/boot/vmlinux.gz
17 ;;
18 *)
19 if [ -f ${LINUX_DIR}/arch/${LINUX_ARCH}/boot/${LINUX_TARGET} ] ; then
20 IMAGE=${LINUX_DIR}/arch/${LINUX_ARCH}/boot/${LINUX_TARGET}
21 elif [ -f ${LINUX_DIR}/${LINUX_TARGET} ] ; then
22 IMAGE=${LINUX_DIR}/${LINUX_TARGET}
23 else
24 echo "$ME: cannot determine Linux image to use for ${LINUX_ARCH} in ${LINUX_DIR}" 1>&2
25 exit 1
26 fi
27 ;;
28 esac
30 echo "$ME: ${IMAGE}" 1>&2
31 echo ${IMAGE}
33 exit 0