Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/x86 PAT flags are not under control of Xen doma...



details:   https://anonhg.NetBSD.org/src/rev/13c04078d67c
branches:  trunk
changeset: 773717:13c04078d67c
user:      jym <jym%NetBSD.org@localhost>
date:      Mon Feb 13 23:54:58 2012 +0000

description:
PAT flags are not under control of Xen domains currently, so there is no
point in enabling them.

Avoids:
- a warning logged by hypervisor when a domain attempts to modify the PAT
MSR.
- an error during domain resuming, where a PAT flag has been set on a page
while the hypervisor does not allow it.

ok releng@.

diffstat:

 sys/arch/xen/x86/cpu.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f87aca427db1 -r 13c04078d67c sys/arch/xen/x86/cpu.c
--- a/sys/arch/xen/x86/cpu.c    Mon Feb 13 22:40:43 2012 +0000
+++ b/sys/arch/xen/x86/cpu.c    Mon Feb 13 23:54:58 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.79 2012/01/28 12:15:19 cherry Exp $  */
+/*     $NetBSD: cpu.c,v 1.80 2012/02/13 23:54:58 jym Exp $     */
 /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp  */
 
 /*-
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.79 2012/01/28 12:15:19 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.80 2012/02/13 23:54:58 jym Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -532,7 +532,6 @@
                panic("unknown processor type??\n");
        }
 
-       pat_init(ci);
        atomic_or_32(&cpus_attached, ci->ci_cpumask);
 
 #ifdef MPVERBOSE



Home | Main Index | Thread Index | Old Index