ia64/xen-unstable

view buildconfigs/enable-xen-config @ 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 7f9286d21706
children
line source
1 #!/bin/sh
3 set -e
5 if [ $# -ne 1 ] ; then
6 echo "Usage $(basename $0) <config-file>" 1>&2
7 exit 1
8 fi
10 CONFIG=$1
12 setopt()
13 {
14 OPTION=$1
15 VALUE=$2
17 # First remove any existing instances of this option
18 sed -e "s/^# ${OPTION} is not set$//g ; s/^^{OPTION}=.$//g" -i "${CONFIG}"
20 # Then append the new value
21 case ${VALUE} in
22 n) echo "# ${OPTION} is not set" >> "${CONFIG}" ;;
23 y|m|*) echo "${OPTION}=${VALUE}" >> "${CONFIG}" ;;
24 esac
25 }
27 setopt CONFIG_PARAVIRT y
28 setopt CONFIG_PARAVIRT_DEBUG y
29 setopt CONFIG_PARAVIRT_GUEST y
31 setopt CONFIG_XEN y
32 setopt CONFIG_XEN_BLKDEV_FRONTEND y
33 setopt CONFIG_XEN_NETDEV_FRONTEND y
34 setopt CONFIG_XEN_KBDDEV_FRONTEND y
35 setopt CONFIG_XEN_FBDEV_FRONTEND y
36 setopt CONFIG_XEN_BALLOON y
37 setopt CONFIG_XEN_SCRUB_PAGES y
38 setopt CONFIG_XEN_DEV_EVTCHN y
39 setopt CONFIG_XEN_BACKEND y
40 setopt CONFIG_XEN_BLKDEV_BACKEND y
41 setopt CONFIG_XEN_NETDEV_BACKEND y
42 setopt CONFIG_XENFS y
43 setopt CONFIG_XEN_COMPAT_XENFS y
44 setopt CONFIG_HVC_XEN y
45 setopt CONFIG_XEN_MAX_DOMAIN_MEMORY 32
46 setopt CONFIG_XEN_DEBUG_FS y
47 setopt CONFIG_XEN_DOM0 y
48 setopt CONFIG_XEN_SYS_HYPERVISOR y
49 setopt CONFIG_XEN_GNTDEV y
50 setopt CONFIG_VMI y
52 setopt CONFIG_KVM y
53 setopt CONFIG_KVM_INTEL y
54 setopt CONFIG_KVM_AMD y
55 setopt CONFIG_KVM_CLOCK y
56 setopt CONFIG_KVM_GUEST n
57 setopt CONFIG_KVM_TRACE n
59 setopt CONFIG_LGUEST n
61 setopt CONFIG_LOCALVERSION_AUTO n
63 # Should all be set one way or another in defconfig but aren't
64 setopt CONFIG_NUMA n
65 setopt CONFIG_X86_VSMP n
66 setopt CONFIG_X86_UV n
67 setopt CONFIG_CALGARY_IOMMU n
68 setopt CONFIG_AMD_IOMMU n
69 setopt CONFIG_MAXSMP n
70 setopt CONFIG_SPARSEMEM_VMEMMAP n
71 setopt CONFIG_I7300_IDLE n
72 setopt CONFIG_DMAR n
73 setopt CONFIG_INTR_REMAP n
74 setopt CONFIG_GFS2_FS n
75 setopt CONFIG_IOMMU_DEBUG n
76 setopt CONFIG_X86_MCE_INTEL n
77 setopt CONFIG_X86_MCE_AMD n
78 setopt CONFIG_CRYPTO_AES_NI_INTEL n
80 case ${XEN_TARGET_ARCH} in
81 x86_32) setopt CONFIG_64BIT n ;;
82 x86_64)
83 setopt CONFIG_64BIT y
84 setopt CONFIG_IA32_EMULATION y
85 setopt CONFIG_IA32_AOUT n
86 setopt CONFIG_CRYPTO_AES_X86_64 n
87 setopt CONFIG_CRYPTO_SALSA20_X86_64 n
88 setopt CONFIG_CRYPTO_TWOFISH_X86_64 n
89 ;;
90 *) ;;
91 esac
93 exit 0