Skip to contentSkip to conversation

add pae flag to xen/Rules.mk

PATCH In review Karen White 2 participants 3 messages Mar 29, 2005 – Mar 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add pae flag to xen/Rules.mk

Add pae flag to xen/Rules.mk. Adds -DCONFIG_PAE to CFLAGS if pae is
set and target is x86_32

Karen

Rules.mk +7 -0
@@ -6,6 +6,7 @@ trace       ?= n
 optimize    ?= y
 domu_debug  ?= n
 crash_debug ?= n
+pae         ?= n
 
 # Currently supported architectures: x86_32, x86_64
 XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/)
@@ -71,6 +72,12 @@ ifeq ($(trace),y)
 CFLAGS += -DTRACE_BUFFER
 endif
 
+ifeq ($(pae),y)
+	ifeq ($(XEN_TARGET_ARCH),x86_32)
+	CFLAGS += -DCONFIG_PAE
+	endif
+endif
+
 CFLAGS := $(strip $(CFLAGS))
 
 %.o: %.c $(HDRS) Makefile

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 4 lines · Karen White

Add pae flag to xen/Rules.mk. Adds -DCONFIG_PAE to CFLAGS if pae is
set and target is x86_32

We'll add a CONFIG_PAE if it's needed, when the PAE support gets checked in. We are actually hoping to have a 'dual boot' Xen that will select PAE (or not) depending on the memory size and optional boot-time parameter.

-- Keir

#2 lore raw
Quoted 11 lines · Keir Fraser
Quoted 4 lines · Karen White

Add pae flag to xen/Rules.mk. Adds -DCONFIG_PAE to CFLAGS if pae is
set and target is x86_32

We'll add a CONFIG_PAE if it's needed, when the PAE support gets checked in. We are actually hoping to have a 'dual boot' Xen that will select PAE (or not) depending on the memory size and optional boot-time parameter.

Keir,

So the boot-time parameter will be used to conditionally choose if you need level-2 or level-3 page tables, etc? Last week Ian responded to my comments about the #define, and previous emails with Gerd have described the PAE support will be compiled in.

Do you, Gerd, and Ian have a current high-level design? Below are my
comments and Ian's responses about the #define and Gerd sent email today about also using an #ifdef to determine which page table header file to include.

Karen

Ian's responses to my config questions:

Quoted 5 lines

To be able to add the PAE specific changes, we need to settle on a #define for ifdefing around them in the core Xen code.

What about CONFIG_PAE? We could add this to asm-x86/config.h if pae=y is passed in on the make line (via Rules.mk)

CONFIG_PAE seems reasonable.

Quoted 6 lines

New parallel files vs. ifdef existing files:

Has anyone settled on if the PAE code is going into the files under xen/arch/x86/x86_32, using #ifdef's for PAE, or are you planning to add
a parallel directory to x86_32 and x86_64 under xen/arch?

Most of the changes can be hidden in header files. There should be no need for extra c files.

Quoted 4 lines

Same question for headers. Are you adding the 3-level page tables to the existing include/asm-x86/x86_32/page.h using #ifdef's or adding a new directory parallel to x86_32 and x86_64 which would have a new page.h, etc?

Having a separate 2 and 3 level file that is conditionally included by x86_32/page.h would seem to be the best approach.> Same question for headers. Are you adding the 3-level page tables to

Quoted 3 lines

the existing include/asm-x86/x86_32/page.h using #ifdef's or adding a new directory parallel to x86_32 and x86_64 which would have a new page.h, etc?

I'd create include/asm-x86/x86_32/page-2l.h and page-3l.h and let page.h include the correct one depending on CONFIG_X86_PAE (and also have the common stuff there).

Ian

Quoted 9 lines

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel