|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 08 of 11] xen: forcibly disable PAT support
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Xen imposes a particular PAT layout on all paravirtual guests which
does not match the layout Linux would like to use.
Force PAT to be disabled until this is resolved.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
arch/x86/include/asm/pat.h | 4 ++--
arch/x86/xen/enlighten.c | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/pat.h b/arch/x86/include/asm/pat.h
--- a/arch/x86/include/asm/pat.h
+++ b/arch/x86/include/asm/pat.h
@@ -6,9 +6,11 @@
#ifdef CONFIG_X86_PAT
extern int pat_enabled;
extern void validate_pat_support(struct cpuinfo_x86 *c);
+extern void pat_disable(char *reason);
#else
static const int pat_enabled;
static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
+static inline void pat_disable(char *reason) { }
#endif
extern void pat_init(void);
@@ -17,6 +19,4 @@
unsigned long req_type, unsigned long *ret_type);
extern int free_memtype(u64 start, u64 end);
-extern void pat_disable(char *reason);
-
#endif /* _ASM_X86_PAT_H */
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -48,6 +48,7 @@
#include <asm/pgtable.h>
#include <asm/tlbflush.h>
#include <asm/reboot.h>
+#include <asm/pat.h>
#include "xen-ops.h"
#include "mmu.h"
@@ -1743,6 +1744,8 @@
add_preferred_console("hvc", 0, NULL);
}
+ pat_disable("PAT disabled on Xen");
+
xen_raw_console_write("about to get started...\n");
/* Start the world */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 11] xen: smattering of dom0 patches, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 01 of 11] xen: short-circuit tests for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 03 of 11] xen dom0: Initialize xenbus for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 04 of 11] xen dom0: Set up basic IO permissions for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 02 of 11] xen dom0: Make hvc_xen console work for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09 of 11] xen/dom0: use _PAGE_IOMAP in ioremap to do machine mappings, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06 of 11] xen dom0: Add support for the platform_ops hypercall, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10 of 11] paravirt/xen: add pvop for page_is_ram, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11 of 11] xen: use machine memory map in domain 0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05 of 11] xen-dom0: only selectively disable cpu features, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 08 of 11] xen: forcibly disable PAT support,
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 07 of 11] xen mtrr: Add mtrr_ops support for Xen mtrr, Jeremy Fitzhardinge
|
|
|
|
|