Skip to content

Commit

Permalink
PAT flags are not under control of Xen domains currently, so there is no
Browse files Browse the repository at this point in the history
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@.
  • Loading branch information
jymigeon committed Feb 13, 2012
1 parent 4fa575c commit eea316a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sys/arch/xen/x86/cpu.c
Original file line number Diff line number Diff line change
@@ -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 */

/*-
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -532,7 +532,6 @@ cpu_attach_common(device_t parent, device_t self, void *aux)
panic("unknown processor type??\n");
}

pat_init(ci);
atomic_or_32(&cpus_attached, ci->ci_cpumask);

#ifdef MPVERBOSE
Expand Down

0 comments on commit eea316a

Please sign in to comment.