Module Name: src Committed By: bouyer Date: Thu Apr 16 09:45:57 UTC 2020
Modified Files: src/sys/arch/amd64/amd64 [bouyer-xenpvh]: locore.S machdep.c src/sys/arch/x86/include [bouyer-xenpvh]: pci_machdep_common.h src/sys/arch/x86/x86 [bouyer-xenpvh]: consinit.c cpu.c cpu_ucode_amd.c identcpu.c intr.c pmap.c x86_autoconf.c x86_machdep.c Log Message: More #ifndef XEN -> #ifndef XENPV To generate a diff of this commit: cvs rdiff -u -r1.200.4.1 -r1.200.4.2 src/sys/arch/amd64/amd64/locore.S cvs rdiff -u -r1.346.4.1 -r1.346.4.2 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.23 -r1.23.28.1 src/sys/arch/x86/include/pci_machdep_common.h cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/arch/x86/x86/consinit.c cvs rdiff -u -r1.181.4.1 -r1.181.4.2 src/sys/arch/x86/x86/cpu.c cvs rdiff -u -r1.10.6.1 -r1.10.6.2 src/sys/arch/x86/x86/cpu_ucode_amd.c cvs rdiff -u -r1.102.2.1 -r1.102.2.2 src/sys/arch/x86/x86/identcpu.c cvs rdiff -u -r1.150.6.2 -r1.150.6.3 src/sys/arch/x86/x86/intr.c cvs rdiff -u -r1.381 -r1.381.2.1 src/sys/arch/x86/x86/pmap.c cvs rdiff -u -r1.79 -r1.79.6.1 src/sys/arch/x86/x86/x86_autoconf.c cvs rdiff -u -r1.137.2.3 -r1.137.2.4 src/sys/arch/x86/x86/x86_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/amd64/locore.S diff -u src/sys/arch/amd64/amd64/locore.S:1.200.4.1 src/sys/arch/amd64/amd64/locore.S:1.200.4.2 --- src/sys/arch/amd64/amd64/locore.S:1.200.4.1 Wed Apr 8 17:59:16 2020 +++ src/sys/arch/amd64/amd64/locore.S Thu Apr 16 09:45:56 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.200.4.1 2020/04/08 17:59:16 bouyer Exp $ */ +/* $NetBSD: locore.S,v 1.200.4.2 2020/04/16 09:45:56 bouyer Exp $ */ /* * Copyright-o-rama! @@ -1110,7 +1110,7 @@ ENTRY(cpu_switchto) .Lskip_svs: #endif -#ifndef XEN +#ifndef XENPV movq %r13,%rdi movq %r12,%rsi callq _C_LABEL(speculation_barrier) Index: src/sys/arch/amd64/amd64/machdep.c diff -u src/sys/arch/amd64/amd64/machdep.c:1.346.4.1 src/sys/arch/amd64/amd64/machdep.c:1.346.4.2 --- src/sys/arch/amd64/amd64/machdep.c:1.346.4.1 Thu Apr 9 16:12:50 2020 +++ src/sys/arch/amd64/amd64/machdep.c Thu Apr 16 09:45:56 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.346.4.1 2020/04/09 16:12:50 bouyer Exp $ */ +/* $NetBSD: machdep.c,v 1.346.4.2 2020/04/16 09:45:56 bouyer Exp $ */ /* * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011 @@ -110,7 +110,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.346.4.1 2020/04/09 16:12:50 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.346.4.2 2020/04/16 09:45:56 bouyer Exp $"); #include "opt_modular.h" #include "opt_user_ldt.h" @@ -1696,7 +1696,7 @@ init_x86_64(paddr_t first_avail) svs_init(); #endif cpu_init_msrs(&cpu_info_primary, true); -#ifndef XEN +#ifndef XENPV cpu_speculation_init(&cpu_info_primary); #endif Index: src/sys/arch/x86/include/pci_machdep_common.h diff -u src/sys/arch/x86/include/pci_machdep_common.h:1.23 src/sys/arch/x86/include/pci_machdep_common.h:1.23.28.1 --- src/sys/arch/x86/include/pci_machdep_common.h:1.23 Mon Jul 11 06:14:51 2016 +++ src/sys/arch/x86/include/pci_machdep_common.h Thu Apr 16 09:45:56 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep_common.h,v 1.23 2016/07/11 06:14:51 knakahara Exp $ */ +/* $NetBSD: pci_machdep_common.h,v 1.23.28.1 2020/04/16 09:45:56 bouyer Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -37,7 +37,7 @@ * Machine-specific definitions for PCI autoconfiguration. */ #define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH -#ifndef XEN +#ifndef XENPV #define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_DISESTABLISH #endif Index: src/sys/arch/x86/x86/consinit.c diff -u src/sys/arch/x86/x86/consinit.c:1.31 src/sys/arch/x86/x86/consinit.c:1.31.8.1 --- src/sys/arch/x86/x86/consinit.c:1.31 Fri May 31 03:10:31 2019 +++ src/sys/arch/x86/x86/consinit.c Thu Apr 16 09:45:56 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: consinit.c,v 1.31 2019/05/31 03:10:31 nonaka Exp $ */ +/* $NetBSD: consinit.c,v 1.31.8.1 2020/04/16 09:45:56 bouyer Exp $ */ /* * Copyright (c) 1998 @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.31 2019/05/31 03:10:31 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.31.8.1 2020/04/16 09:45:56 bouyer Exp $"); #include "opt_kgdb.h" #include "opt_puc.h" @@ -91,7 +91,7 @@ __KERNEL_RCSID(0, "$NetBSD: consinit.c,v #include <dev/usb/ukbdvar.h> #endif -#ifndef XEN +#ifndef XENPV #include "hvkbd.h" #if NHVKBD > 0 #include <dev/hyperv/hvkbdvar.h> Index: src/sys/arch/x86/x86/cpu.c diff -u src/sys/arch/x86/x86/cpu.c:1.181.4.1 src/sys/arch/x86/x86/cpu.c:1.181.4.2 --- src/sys/arch/x86/x86/cpu.c:1.181.4.1 Fri Apr 10 14:37:54 2020 +++ src/sys/arch/x86/x86/cpu.c Thu Apr 16 09:45:56 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.181.4.1 2020/04/10 14:37:54 bouyer Exp $ */ +/* $NetBSD: cpu.c,v 1.181.4.2 2020/04/16 09:45:56 bouyer Exp $ */ /* * Copyright (c) 2000-2012 NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.181.4.1 2020/04/10 14:37:54 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.181.4.2 2020/04/16 09:45:56 bouyer Exp $"); #include "opt_ddb.h" #include "opt_mpbios.h" /* for MPDEBUG */ @@ -123,7 +123,7 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.18 #include "tsc.h" -#ifndef XEN +#ifndef XENPV #include "hyperv.h" #if NHYPERV > 0 #include <x86/x86/hypervvar.h> Index: src/sys/arch/x86/x86/cpu_ucode_amd.c diff -u src/sys/arch/x86/x86/cpu_ucode_amd.c:1.10.6.1 src/sys/arch/x86/x86/cpu_ucode_amd.c:1.10.6.2 --- src/sys/arch/x86/x86/cpu_ucode_amd.c:1.10.6.1 Thu Apr 16 08:46:35 2020 +++ src/sys/arch/x86/x86/cpu_ucode_amd.c Thu Apr 16 09:45:56 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu_ucode_amd.c,v 1.10.6.1 2020/04/16 08:46:35 bouyer Exp $ */ +/* $NetBSD: cpu_ucode_amd.c,v 1.10.6.2 2020/04/16 09:45:56 bouyer Exp $ */ /* * Copyright (c) 2012 The NetBSD Foundation, Inc. * All rights reserved. @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cpu_ucode_amd.c,v 1.10.6.1 2020/04/16 08:46:35 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu_ucode_amd.c,v 1.10.6.2 2020/04/16 09:45:56 bouyer Exp $"); #ifdef _KERNEL_OPT #include "opt_xen.h" @@ -302,4 +302,4 @@ err1: kmem_free(mc.mc_amd, sizeof(*mc.mc_amd)); return error; } -#endif /* ! XEN */ +#endif /* ! XENPV */ Index: src/sys/arch/x86/x86/identcpu.c diff -u src/sys/arch/x86/x86/identcpu.c:1.102.2.1 src/sys/arch/x86/x86/identcpu.c:1.102.2.2 --- src/sys/arch/x86/x86/identcpu.c:1.102.2.1 Wed Apr 8 17:59:16 2020 +++ src/sys/arch/x86/x86/identcpu.c Thu Apr 16 09:45:57 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: identcpu.c,v 1.102.2.1 2020/04/08 17:59:16 bouyer Exp $ */ +/* $NetBSD: identcpu.c,v 1.102.2.2 2020/04/16 09:45:57 bouyer Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.102.2.1 2020/04/08 17:59:16 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.102.2.2 2020/04/16 09:45:57 bouyer Exp $"); #include "opt_xen.h" @@ -53,7 +53,7 @@ __KERNEL_RCSID(0, "$NetBSD: identcpu.c,v #include <x86/x86/vmtreg.h> /* for vmt_hvcall() */ #include <x86/x86/vmtvar.h> /* for vmt_hvcall() */ -#ifndef XEN +#ifndef XENPV #include "hyperv.h" #if NHYPERV > 0 #include <x86/x86/hypervvar.h> @@ -461,7 +461,7 @@ cpu_probe_cyrix_cmn(struct cpu_info *ci) * even be in here, it should be in there. XXX */ uint8_t c3; -#ifndef XEN +#ifndef XENPV extern int clock_broken_latch; switch (ci->ci_signature) { @@ -973,7 +973,7 @@ cpu_probe(struct cpu_info *ci) cpu_probe_fpu(ci); } -#ifndef XEN +#ifndef XENPV x86_cpu_topology(ci); #endif @@ -990,7 +990,7 @@ cpu_probe(struct cpu_info *ci) cpu_feature[i] = ci->ci_feat_val[i]; } identify_hypervisor(); -#ifndef XEN +#ifndef XENPV /* Early patch of text segment. */ x86_patch(true); #endif Index: src/sys/arch/x86/x86/intr.c diff -u src/sys/arch/x86/x86/intr.c:1.150.6.2 src/sys/arch/x86/x86/intr.c:1.150.6.3 --- src/sys/arch/x86/x86/intr.c:1.150.6.2 Sun Apr 12 17:25:52 2020 +++ src/sys/arch/x86/x86/intr.c Thu Apr 16 09:45:57 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.c,v 1.150.6.2 2020/04/12 17:25:52 bouyer Exp $ */ +/* $NetBSD: intr.c,v 1.150.6.3 2020/04/16 09:45:57 bouyer Exp $ */ /* * Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc. @@ -133,7 +133,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.150.6.2 2020/04/12 17:25:52 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.150.6.3 2020/04/16 09:45:57 bouyer Exp $"); #include "opt_intrdebug.h" #include "opt_multiprocessor.h" @@ -166,7 +166,7 @@ __KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.1 #include "lapic.h" #include "pci.h" #include "acpica.h" -#ifndef XEN +#ifndef XENPV #include "hyperv.h" #if NHYPERV > 0 #include <dev/hyperv/hypervvar.h> Index: src/sys/arch/x86/x86/pmap.c diff -u src/sys/arch/x86/x86/pmap.c:1.381 src/sys/arch/x86/x86/pmap.c:1.381.2.1 --- src/sys/arch/x86/x86/pmap.c:1.381 Sun Apr 5 00:21:11 2020 +++ src/sys/arch/x86/x86/pmap.c Thu Apr 16 09:45:57 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.381 2020/04/05 00:21:11 ad Exp $ */ +/* $NetBSD: pmap.c,v 1.381.2.1 2020/04/16 09:45:57 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.381 2020/04/05 00:21:11 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.381.2.1 2020/04/16 09:45:57 bouyer Exp $"); #include "opt_user_ldt.h" #include "opt_lockdebug.h" @@ -3001,7 +3001,7 @@ static void pmap_zap_ptp(struct pmap *pmap, struct vm_page *ptp, pt_entry_t *pte, vaddr_t startva, vaddr_t blkendva) { -#ifndef XEN +#ifndef XENPV struct pv_entry *pve; struct vm_page *pg; struct pmap_page *pp; @@ -3111,13 +3111,13 @@ pmap_zap_ptp(struct pmap *pmap, struct v #ifdef DIAGNOSTIC rb_tree_init(tree, &pmap_rbtree_ops); #endif -#else /* !XEN */ +#else /* !XENPV */ /* * XXXAD For XEN, it's not clear to me that we can do this, because * I guess the hypervisor keeps track of PTEs too. */ pmap_remove_ptes(pmap, ptp, (vaddr_t)pte, startva, blkendva); -#endif /* !XEN */ +#endif /* !XENPV */ } /* @@ -5517,7 +5517,7 @@ x86_mmap_flags(paddr_t mdpgno) return pflag; } -#if defined(__HAVE_DIRECT_MAP) && defined(__x86_64__) && !defined(XEN) +#if defined(__HAVE_DIRECT_MAP) && defined(__x86_64__) && !defined(XENPV) /* * ----------------------------------------------------------------------------- @@ -6384,4 +6384,4 @@ pmap_ept_transform(struct pmap *pmap) memset(pmap->pm_pdir, 0, PAGE_SIZE); } -#endif /* __HAVE_DIRECT_MAP && __x86_64__ && !XEN */ +#endif /* __HAVE_DIRECT_MAP && __x86_64__ && !XENPV */ Index: src/sys/arch/x86/x86/x86_autoconf.c diff -u src/sys/arch/x86/x86/x86_autoconf.c:1.79 src/sys/arch/x86/x86/x86_autoconf.c:1.79.6.1 --- src/sys/arch/x86/x86/x86_autoconf.c:1.79 Sun Nov 10 21:16:34 2019 +++ src/sys/arch/x86/x86/x86_autoconf.c Thu Apr 16 09:45:57 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: x86_autoconf.c,v 1.79 2019/11/10 21:16:34 chs Exp $ */ +/* $NetBSD: x86_autoconf.c,v 1.79.6.1 2020/04/16 09:45:57 bouyer Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.79 2019/11/10 21:16:34 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.79.6.1 2020/04/16 09:45:57 bouyer Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -58,7 +58,7 @@ __KERNEL_RCSID(0, "$NetBSD: x86_autoconf #include "acpica.h" #include "wsdisplay.h" -#ifndef XEN +#ifndef XENPV #include "hyperv.h" #endif Index: src/sys/arch/x86/x86/x86_machdep.c diff -u src/sys/arch/x86/x86/x86_machdep.c:1.137.2.3 src/sys/arch/x86/x86/x86_machdep.c:1.137.2.4 --- src/sys/arch/x86/x86/x86_machdep.c:1.137.2.3 Sat Apr 11 18:26:07 2020 +++ src/sys/arch/x86/x86/x86_machdep.c Thu Apr 16 09:45:57 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: x86_machdep.c,v 1.137.2.3 2020/04/11 18:26:07 bouyer Exp $ */ +/* $NetBSD: x86_machdep.c,v 1.137.2.4 2020/04/16 09:45:57 bouyer Exp $ */ /*- * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi, @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.137.2.3 2020/04/11 18:26:07 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.137.2.4 2020/04/16 09:45:57 bouyer Exp $"); #include "opt_modular.h" #include "opt_physmem.h" @@ -1384,7 +1384,7 @@ SYSCTL_SETUP(sysctl_machdep_setup, "sysc CTL_CREATE, CTL_EOL); #endif -#ifndef XEN +#ifndef XENPV void sysctl_speculation_init(struct sysctllog **); sysctl_speculation_init(clog); #endif