ia64/xen-unstable

view Config.mk @ 7176:0e1838de9db8

Move XendDomainInfo.{create,recreate,parseConfig} to the top level of the
domain. This allows us to refer to them using an import statement, rather than
a from .. import. This is a step towards getting rid of the xroot hack. All
other references to XendDomainInfo methods need to be doubly qualified (once
for the module, once for the class).

Remove XendDomainDict, replacing it with a simple dictionary, folding the
get_by_name method into XendDomain.

Replace XendDomain.refresh_lock with a domains_lock which goes around any
reference to XendDomain.domains or anything that will create or destroy a
domain. This serialises most accesses through XendDomain, ensuring that we will
not return stale state when racing against the watches fired in separate
threads. This should have fixed bugs #270 and #234.

Added a number of domain_get_xyz methods. Those named xyz_nr are to allow
components internal to XendDomain (XendDomainInfo, XendCheckpoint) to call back
into XendDomain without triggering further calls to XendDomain.refresh. The
other methods simply make it clear which fallback behaviour is expected.

Replace XendDomainInfo.domain_exists with XendDomainInfo.domain_by_name; the
internals of this method needed to change to match those changes above, and it
has been a misnomer for some time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Tue Oct 04 02:21:28 2005 +0100 (2005-10-04)
parents 06d84bf87159
children aad1d3e231ff
line source
1 # -*- mode: Makefile; -*-
3 # Currently supported architectures: x86_32, x86_64
4 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
5 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
6 XEN_TARGET_X86_PAE ?= n
8 # Tools to run on system hosting the build
9 HOSTCC = gcc
10 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
12 AS = $(CROSS_COMPILE)as
13 LD = $(CROSS_COMPILE)ld
14 CC = $(CROSS_COMPILE)gcc
15 CPP = $(CROSS_COMPILE)gcc -E
16 AR = $(CROSS_COMPILE)ar
17 RANLIB = $(CROSS_COMPILE)ranlib
18 NM = $(CROSS_COMPILE)nm
19 STRIP = $(CROSS_COMPILE)strip
20 OBJCOPY = $(CROSS_COMPILE)objcopy
21 OBJDUMP = $(CROSS_COMPILE)objdump
23 ifeq ($(XEN_TARGET_ARCH),x86_64)
24 LIBDIR = lib64
25 else
26 LIBDIR = lib
27 endif
29 ifneq ($(EXTRA_PREFIX),)
30 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
31 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
32 endif
34 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
35 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
37 # Choose the best mirror to download linux kernel
38 KERNEL_REPO = http://www.kernel.org
40 # ACM_USE_SECURITY_POLICY is set to security policy of Xen
41 # Supported models are:
42 # ACM_NULL_POLICY (ACM will not be built with this policy)
43 # ACM_CHINESE_WALL_POLICY
44 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
45 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
46 ACM_USE_SECURITY_POLICY ?= ACM_NULL_POLICY
48 # Optional components
49 XENSTAT_XENTOP ?= y
51 VTPM_TOOLS ?= n