Xen Test Framework
config.h
Go to the documentation of this file.
1
11#ifndef XTF_X86_CONFIG_H
12#define XTF_X86_CONFIG_H
13
14#define XTF_VIRT_START (1 << 20)
15
16#include <xtf/macro_magic.h>
17
18#if defined(CONFIG_ENV_pv64)
19
20#define CONFIG_PV 1
21#define CONFIG_64BIT 1
22#define CONFIG_PAGING_LEVELS 4
23#define ENVIRONMENT_DESCRIPTION "PV 64bit (Long mode 4 levels)"
24
25#undef CONFIG_ENV_pv64
26
27#elif defined(CONFIG_ENV_pv32pae)
28
29#define CONFIG_PV 1
30#define CONFIG_32BIT 1
31#define CONFIG_PAGING_LEVELS 3
32#define ENVIRONMENT_DESCRIPTION "PV 32bit (PAE 3 levels)"
33
34#undef CONFIG_ENV_pv32pae
35
36#elif defined(CONFIG_ENV_hvm64)
37
38#define CONFIG_HVM 1
39#define CONFIG_64BIT 1
40#define CONFIG_PAGING_LEVELS 4
41#define ENVIRONMENT_DESCRIPTION "HVM 64bit (Long mode 4 levels)"
42
43#undef CONFIG_ENV_hvm64
44
45#elif defined(CONFIG_ENV_hvm32pae)
46
47#define CONFIG_HVM 1
48#define CONFIG_32BIT 1
49#define CONFIG_PAGING_LEVELS 3
50#define ENVIRONMENT_DESCRIPTION "HVM 32bit (PAE 3 levels)"
51
52#undef CONFIG_ENV_hvm32pae
53
54#elif defined(CONFIG_ENV_hvm32pse)
55
56#define CONFIG_HVM 1
57#define CONFIG_32BIT 1
58#define CONFIG_PAGING_LEVELS 2
59#define ENVIRONMENT_DESCRIPTION "HVM 32bit (PSE 2 levels)"
60
61#undef CONFIG_ENV_hvm32pse
62
63#elif defined(CONFIG_ENV_hvm32)
64
65#define CONFIG_HVM 1
66#define CONFIG_32BIT 1
67#define CONFIG_PAGING_LEVELS 0
68#define ENVIRONMENT_DESCRIPTION "HVM 32bit (No paging)"
69
70#undef CONFIG_ENV_hvm32
71
72#else
73# error Bad environment
74#endif
75
76#endif /* XTF_X86_CONFIG_H */
77
78/*
79 * Local variables:
80 * mode: C
81 * c-file-style: "BSD"
82 * c-basic-offset: 4
83 * tab-width: 4
84 * indent-tabs-mode: nil
85 * End:
86 */
Varadic macro helpers - Here be many dragons.