All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: the arch/x86 maintainers <x86@kernel.org>,
	Xen-devel <xen-devel@lists.xensource.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Yinghai Lu <yinghai@kernel.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>
Subject: [PATCH 07/19] xen: disable PAT
Date: Mon, 16 Feb 2009 15:46:00 -0800	[thread overview]
Message-ID: <630b678d3259163fc237f673b6f2a4a5fa76ac25.1234826723.git.jeremy.fitzhardinge@citrix.com> (raw)
In-Reply-To: <83b1377d81029933b769798dbe1ca134f6d365ae.1234826723.git.jeremy.fitzhardinge@citrix.com>
In-Reply-To: <cover.1234826723.git.jeremy.fitzhardinge@citrix.com>

From: Ian Campbell <ian.campbell@citrix.com>

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@citrix.com>
---
 arch/x86/include/asm/pat.h |    5 +++++
 arch/x86/mm/pat.c          |    5 -----
 arch/x86/xen/enlighten.c   |    3 +++
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/arch/x86/include/asm/pat.h b/arch/x86/include/asm/pat.h
index 9709fdf..d8be231 100644
--- a/arch/x86/include/asm/pat.h
+++ b/arch/x86/include/asm/pat.h
@@ -5,8 +5,13 @@
 
 #ifdef CONFIG_X86_PAT
 extern int pat_enabled;
+extern void pat_disable(const char *reason);
 #else
 static const int pat_enabled;
+static inline void pat_disable(const char *reason)
+{
+	(void)reason;
+}
 #endif
 
 extern void pat_init(void);
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index 05f9aef..37df685 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -42,11 +42,6 @@ static int __init nopat(char *str)
 	return 0;
 }
 early_param("nopat", nopat);
-#else
-static inline void pat_disable(const char *reason)
-{
-	(void)reason;
-}
 #endif
 
 
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 468aa23..1b89d1c 100644
--- 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"
@@ -986,6 +987,8 @@ asmlinkage void __init xen_start_kernel(void)
 		add_preferred_console("hvc", 0, NULL);
 	}
 
+	pat_disable("PAT disabled on Xen");
+
 	xen_raw_console_write("about to get started...\n");
 
 	/* Start the world */
-- 
1.6.0.6


  reply	other threads:[~2009-02-16 23:48 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16 23:45 [PATCH 00/19] *** SUBJECT HERE *** Jeremy Fitzhardinge
2009-02-16 23:45 ` [PATCH 01/19] xen dom0: Make hvc_xen console work for dom0 Jeremy Fitzhardinge
2009-02-16 23:45   ` [PATCH 02/19] xen dom0: Initialize xenbus " Jeremy Fitzhardinge
2009-02-16 23:45     ` [PATCH 03/19] xen dom0: Set up basic IO permissions " Jeremy Fitzhardinge
2009-02-16 23:45       ` [PATCH 04/19] xen-dom0: only selectively disable cpu features Jeremy Fitzhardinge
2009-02-16 23:45         ` Jeremy Fitzhardinge
2009-02-16 23:45         ` [PATCH 05/19] xen dom0: Add support for the platform_ops hypercall Jeremy Fitzhardinge
2009-02-16 23:45           ` [PATCH 06/19] xen mtrr: Add mtrr_ops support for Xen mtrr Jeremy Fitzhardinge
2009-02-16 23:46             ` Jeremy Fitzhardinge [this message]
2009-02-16 23:46               ` [PATCH 08/19] xen/dom0: use _PAGE_IOMAP in ioremap to do machine mappings Jeremy Fitzhardinge
2009-02-16 23:46                 ` [PATCH 09/19] paravirt/xen: add pvop for page_is_ram Jeremy Fitzhardinge
2009-02-16 23:46                   ` [PATCH 10/19] xen/dom0: Use host E820 map Jeremy Fitzhardinge
2009-02-16 23:46                     ` [PATCH 11/19] xen: implement XENMEM_machphys_mapping Jeremy Fitzhardinge
2009-02-16 23:46                       ` [PATCH 12/19] xen: clear reserved bits in l3 entries given in the initial pagetables Jeremy Fitzhardinge
2009-02-16 23:46                         ` [PATCH 13/19] xen/dom0: add XEN_DOM0 config option Jeremy Fitzhardinge
2009-02-16 23:46                           ` [PATCH 14/19] xen: allow enable use of VGA console on dom0 Jeremy Fitzhardinge
2009-02-16 23:46                             ` [PATCH 15/19] xen mtrr: Use specific cpu_has_foo macros instead of generic cpu_has() Jeremy Fitzhardinge
2009-02-16 23:46                               ` [PATCH 16/19] xen mtrr: Kill some unneccessary includes Jeremy Fitzhardinge
2009-02-16 23:46                                 ` [PATCH 17/19] xen mtrr: Use generic_validate_add_page() Jeremy Fitzhardinge
2009-02-16 23:46                                   ` [PATCH 18/19] xen mtrr: Implement xen_get_free_region() Jeremy Fitzhardinge
2009-02-16 23:46                                     ` [PATCH 19/19] xen mtrr: Add xen_{get,set}_mtrr() implementations Jeremy Fitzhardinge
2009-02-16 23:47 ` [Xen-devel] [PATCH 00/19] *** SUBJECT HERE *** Jeremy Fitzhardinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=630b678d3259163fc237f673b6f2a4a5fa76ac25.1234826723.git.jeremy.fitzhardinge@citrix.com \
    --to=jeremy@goop.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=x86@kernel.org \
    --cc=xen-devel@lists.xensource.com \
    --cc=yinghai@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.