Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 return after calling xen_pagezero(), don't ...
details: https://anonhg.NetBSD.org/src/rev/3bd593ef9635
branches: trunk
changeset: 365989:3bd593ef9635
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sat May 07 14:59:25 2022 +0000
description:
return after calling xen_pagezero(), don't fall back to the legacy
pmap_zero_page() method.
This should only affect performances.
diffstat:
sys/arch/x86/x86/pmap.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r eebd175354d5 -r 3bd593ef9635 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Sat May 07 14:25:12 2022 +0000
+++ b/sys/arch/x86/x86/pmap.c Sat May 07 14:59:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.413 2022/01/02 20:28:53 andvar Exp $ */
+/* $NetBSD: pmap.c,v 1.414 2022/05/07 14:59:25 bouyer Exp $ */
/*
* Copyright (c) 2008, 2010, 2016, 2017, 2019, 2020 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.413 2022/01/02 20:28:53 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.414 2022/05/07 14:59:25 bouyer Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -3813,8 +3813,10 @@
memset(PAGE_ALIGNED(PMAP_DIRECT_MAP(pa)), 0, PAGE_SIZE);
#else
#if defined(XENPV)
- if (XEN_VERSION_SUPPORTED(3, 4))
+ if (XEN_VERSION_SUPPORTED(3, 4)) {
xen_pagezero(pa);
+ return;
+ }
#endif
struct cpu_info *ci;
pt_entry_t *zpte;
Home |
Main Index |
Thread Index |
Old Index