CVS commit: src/sys/dev/nvmm/x86

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 12:15:21 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Fix definition for MWAIT. It should be bit 11, not 12; 12 is the armed version. To generate a diff of this commit: cvs rdiff -u -r1.47

CVS commit: src/sys/dev/nvmm/x86

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 12:15:21 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Fix definition for MWAIT. It should be bit 11, not 12; 12 is the armed version. To generate a diff of this commit: cvs rdiff -u -r1.47

CVS commit: src/sys/dev/nvmm/x86

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 12:17:05 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Switch to the new PTE naming. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/dev/nvmm/x86/nvmm_x8

CVS commit: src/sys/dev/nvmm/x86

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 12:17:05 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Switch to the new PTE naming. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/dev/nvmm/x86/nvmm_x8

CVS commit: src/sys/arch/i386/i386

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 15:28:00 UTC 2019 Modified Files: src/sys/arch/i386/i386: i386_trap.S locore.S spl.S Log Message: Misc reordering, to clarify and reduce the diff against amd64. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1

CVS commit: src/sys/arch/i386/i386

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 15:28:00 UTC 2019 Modified Files: src/sys/arch/i386/i386: i386_trap.S locore.S spl.S Log Message: Misc reordering, to clarify and reduce the diff against amd64. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1

CVS commit: src/sys/arch/x86/x86

2019-10-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 5 07:19:49 UTC 2019 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Switch to the new PTE naming: PG_PVLIST -> PTE_PVLIST PG_W -> PTE_WIRED PG_FRAME -> PTE_FRAME No functional chang

CVS commit: src/sys/arch/x86/x86

2019-10-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 5 07:19:49 UTC 2019 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Switch to the new PTE naming: PG_PVLIST -> PTE_PVLIST PG_W -> PTE_WIRED PG_FRAME -> PTE_FRAME No functional chang

CVS commit: src/sys/arch/x86/include

2019-10-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 5 07:30:03 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h pte.h Log Message: Switch to the new PTE naming. No binary diff (tested with MKREPRO). To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 s

CVS commit: src/sys/arch/x86/include

2019-10-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 5 07:30:03 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h pte.h Log Message: Switch to the new PTE naming. No binary diff (tested with MKREPRO). To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 s

Re: CVS commit: src/sys/kern

2019-10-05 Thread Maxime Villard
Le 01/10/2019 à 18:36, Chuck Silvers a écrit : Module Name:src Committed By: chs Date: Tue Oct 1 16:36:58 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: in shmdt(), wait until shmat() completes before detaching. Reported-by: syzbot+8f470a1bf36b47ae0...@

CVS commit: src

2019-10-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 8 18:43:03 UTC 2019 Modified Files: src/share/man/man4: tpm.4 src/sys/dev/acpi: tpm_acpi.c src/sys/dev/ic: tpm.c tpmreg.h tpmvar.h src/sys/dev/isa: tpm_isa.c Log Message: Improvements in tpm(4): - R

CVS commit: src

2019-10-08 Thread Maxime Villard
ot; Permission to use, copy, modify, and distribute this software for any -.\" purpose with or without fee is hereby granted, provided that the above -.\" copyright notice and this permission notice appear in all copies. +.\" This code is derived from software contributed to The NetBSD Found

CVS commit: src/sys/arch

2019-10-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 8 18:50:44 UTC 2019 Modified Files: src/sys/arch/amd64/conf: ALL GENERIC src/sys/arch/i386/conf: ALL GENERIC Log Message: No I/O ports for TPM-ISA, only MMIO, so remove commented-out options. To generate a diff of

CVS commit: src/sys/arch

2019-10-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 8 18:50:44 UTC 2019 Modified Files: src/sys/arch/amd64/conf: ALL GENERIC src/sys/arch/i386/conf: ALL GENERIC Log Message: No I/O ports for TPM-ISA, only MMIO, so remove commented-out options. To generate a diff of

CVS commit: src/sys/dev

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 07:30:58 UTC 2019 Modified Files: src/sys/dev/acpi: tpm_acpi.c src/sys/dev/ic: tpm.c tpmreg.h tpmvar.h src/sys/dev/isa: tpm_isa.c Log Message: Add suspend support for TPM 2.0 chips. Check the TPM response

CVS commit: src/sys/dev

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 07:30:58 UTC 2019 Modified Files: src/sys/dev/acpi: tpm_acpi.c src/sys/dev/ic: tpm.c tpmreg.h tpmvar.h src/sys/dev/isa: tpm_isa.c Log Message: Add suspend support for TPM 2.0 chips. Check the TPM response

CVS commit: src/sys/dev

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 14:03:58 UTC 2019 Modified Files: src/sys/dev/acpi: tpm_acpi.c src/sys/dev/ic: tpm.c tpmvar.h src/sys/dev/isa: tpm_isa.c Log Message: Provide a better abstraction for the TPM interface. Report it in the io

CVS commit: src/sys/dev

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 14:03:58 UTC 2019 Modified Files: src/sys/dev/acpi: tpm_acpi.c src/sys/dev/ic: tpm.c tpmvar.h src/sys/dev/isa: tpm_isa.c Log Message: Provide a better abstraction for the TPM interface. Report it in the io

CVS commit: src/sys/netatalk

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 14:15:40 UTC 2019 Modified Files: src/sys/netatalk: at_var.h Log Message: Memset to prevent stack info leak. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/netatalk/at_var.h Please note that diffs

CVS commit: src/sys/netatalk

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 14:15:40 UTC 2019 Modified Files: src/sys/netatalk: at_var.h Log Message: Memset to prevent stack info leak. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/netatalk/at_var.h Please note that diffs

CVS commit: src/sys/arch/x86/include

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 17:28:46 UTC 2019 Modified Files: src/sys/arch/x86/include: pte.h Log Message: Add new bits. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/include/pte.h Please note that diffs are not pub

CVS commit: src/sys/arch/x86/include

2019-10-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 9 17:28:46 UTC 2019 Modified Files: src/sys/arch/x86/include: pte.h Log Message: Add new bits. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/include/pte.h Please note that diffs are not pub

Re: CVS commit: src/sys/kern

2019-10-09 Thread Maxime Villard
Le 30/09/2019 à 20:51, Nick Hudson a écrit : On 30 Sep 2019, at 18:06, Tobias Nygren wrote: On Mon, 23 Sep 2019 05:39:59 + Nick Hudson wrote: Modified Files: src/sys/kern: subr_pool.c Log Message: Enable POOL_REDZONE with DIAGNOSTIC. The bug in the arm pmap was fixed long ago. T

CVS commit: src/sys

2019-10-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 10 13:45:14 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/sys: systm.h Log Message: Add KASAN instrumentation on ucas and ufetch. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/k

CVS commit: src/sys

2019-10-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 10 13:45:14 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/sys: systm.h Log Message: Add KASAN instrumentation on ucas and ufetch. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/k

CVS commit: src/sys

2019-10-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 12 06:31:04 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S genassym.cf locore.S machdep.c spl.S src/sys/arch/amd64/include: frameasm.h pcb.h proc.h src/sys/arch/i386/i386: genassym

CVS commit: src/sys

2019-10-11 Thread Maxime Villard
8 2019 +++ src/sys/arch/x86/x86/fpu.c Sat Oct 12 06:31:04 2019 @@ -1,11 +1,11 @@ -/* $NetBSD: fpu.c,v 1.57 2019/10/04 11:47:08 maxv Exp $ */ +/* $NetBSD: fpu.c,v 1.58 2019/10/12 06:31:04 maxv Exp $ */ /* - * Copyright (c) 2008 The NetBSD Foundation, Inc. All + * Copyright (c) 2008, 2019 The Ne

CVS commit: src

2019-10-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 13 17:32:15 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c src/tests/lib/libnvmm: h_mem_assist.c h_mem_assist_asm.S Log Message: Fix incorrect parsing: the R/M field uses a special GPR map when the address s

CVS commit: src

2019-10-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 13 17:32:15 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c src/tests/lib/libnvmm: h_mem_assist.c h_mem_assist_asm.S Log Message: Fix incorrect parsing: the R/M field uses a special GPR map when the address s

CVS commit: src

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 10:39:24 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c src/tests/lib/libnvmm: h_mem_assist.c h_mem_assist_asm.S Log Message: Implement XCHG, add associated tests, and add comments to explain. With this i

CVS commit: src

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 10:39:24 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c src/tests/lib/libnvmm: h_mem_assist.c h_mem_assist_asm.S Log Message: Implement XCHG, add associated tests, and add comments to explain. With this i

CVS commit: src/lib/libnvmm

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 10:43:40 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Improve nvmm_vcpu_dump(). To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/lib/libnvmm/libnvmm_x86.c Please note that diffs

CVS commit: src/lib/libnvmm

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 10:43:40 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Improve nvmm_vcpu_dump(). To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/lib/libnvmm/libnvmm_x86.c Please note that diffs

CVS commit: src/sys/kern

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 16:27:04 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Add a check before the memcpy. memcpy is defined to never take NULL as second argument, and the compiler is free to perform optimizations knowing

CVS commit: src/sys/kern

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 16:27:04 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Add a check before the memcpy. memcpy is defined to never take NULL as second argument, and the compiler is free to perform optimizations knowing

CVS commit: src/sys/net

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 16:43:04 UTC 2019 Modified Files: src/sys/net: rtsock_shared.c Log Message: Error out if the type is beyond the storage size. No functional change, since the shift would otherwise 'and' against zero, returning EEXIST. Re

CVS commit: src/sys/net

2019-10-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 14 16:43:04 UTC 2019 Modified Files: src/sys/net: rtsock_shared.c Log Message: Error out if the type is beyond the storage size. No functional change, since the shift would otherwise 'and' against zero, returning EEXIST. Re

CVS commit: src/usr.sbin/sysinst

2019-10-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 17 08:54:50 UTC 2019 Modified Files: src/usr.sbin/sysinst: msg.mi.en msg.mi.fr Log Message: Sentence begins with capital letter ("yes or no?"). Also add a few french sentences, to make it less awful, but not complete. Not te

CVS commit: src/usr.sbin/sysinst

2019-10-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 17 08:54:50 UTC 2019 Modified Files: src/usr.sbin/sysinst: msg.mi.en msg.mi.fr Log Message: Sentence begins with capital letter ("yes or no?"). Also add a few french sentences, to make it less awful, but not complete. Not te

CVS commit: src/sys/lib/libsa

2019-10-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 17 14:00:28 UTC 2019 Modified Files: src/sys/lib/libsa: loadfile_elf32.c Log Message: Make sure we're dealing with a static binary. Otherwise we could crash if the user mistakenly tries to boot a KASLR kernel with 'boot' ins

CVS commit: src/sys/lib/libsa

2019-10-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 17 14:00:28 UTC 2019 Modified Files: src/sys/lib/libsa: loadfile_elf32.c Log Message: Make sure we're dealing with a static binary. Otherwise we could crash if the user mistakenly tries to boot a KASLR kernel with 'boot' ins

CVS commit: src/sys/arch/x86/x86

2019-10-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 18 16:26:38 UTC 2019 Modified Files: src/sys/arch/x86/x86: vm_machdep.c Log Message: Remove unused call to savectx(). To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/arch/x86/x86/vm_machdep.c Please

CVS commit: src/sys/arch/x86/x86

2019-10-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 18 16:26:38 UTC 2019 Modified Files: src/sys/arch/x86/x86: vm_machdep.c Log Message: Remove unused call to savectx(). To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/arch/x86/x86/vm_machdep.c Please

CVS commit: src/lib/libnvmm

2019-10-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 19 19:45:10 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Put back 'default', because llvm apparently doesn't realize that all cases are covered in the switch. To generate a diff of this commit: cvs

CVS commit: src/lib/libnvmm

2019-10-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 19 19:45:10 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Put back 'default', because llvm apparently doesn't realize that all cases are covered in the switch. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/x86/x86

2019-10-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 21 10:09:24 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Call cpu_probe_fpu() only once (from cpu0), and style. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/sys/arch/x86/x86/i

CVS commit: src/sys/arch/x86/x86

2019-10-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 21 10:09:24 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Call cpu_probe_fpu() only once (from cpu0), and style. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/sys/arch/x86/x86/i

CVS commit: src

2019-10-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 23 07:01:12 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.c libnvmm_x86.c nvmm.h src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h nvmm_ioctl.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c

CVS commit: src

2019-10-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 23 07:01:12 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.c libnvmm_x86.c nvmm.h src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h nvmm_ioctl.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c

CVS commit: src

2019-10-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 23 12:02:56 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.c libnvmm_x86.c nvmm.h src/tests/lib/libnvmm: h_io_assist.c h_mem_assist.c Log Message: Three changes in libnvmm: - Add 'mach' and 'vcpu' backpointers i

CVS commit: src

2019-10-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 23 12:02:56 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.c libnvmm_x86.c nvmm.h src/tests/lib/libnvmm: h_io_assist.c h_mem_assist.c Log Message: Three changes in libnvmm: - Add 'mach' and 'vcpu' backpointers i

CVS commit: src/lib/libnvmm

2019-10-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 25 09:09:24 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 Log Message: Update the libnvmm man page: - Sync the naming with reality. - Replace "relevant" by "desired" and "virtualizer" by "emulator", closer to wh

CVS commit: src/lib/libnvmm

2019-10-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 25 09:09:24 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 Log Message: Update the libnvmm man page: - Sync the naming with reality. - Replace "relevant" by "desired" and "virtualizer" by "emulator", closer to wh

CVS commit: src

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 07:08:15 UTC 2019 Modified Files: src/etc: MAKEDEV.tmpl group src/lib/libnvmm: libnvmm.3 libnvmm.c nvmm.h src/tests/lib/libnvmm: h_io_assist.c h_mem_assist.c Log Message: Add the "nvmm" group, and make nvm

CVS commit: src

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 07:08:15 UTC 2019 Modified Files: src/etc: MAKEDEV.tmpl group src/lib/libnvmm: libnvmm.3 libnvmm.c nvmm.h src/tests/lib/libnvmm: h_io_assist.c h_mem_assist.c Log Message: Add the "nvmm" group, and make nvm

CVS commit: src/lib/libnvmm

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 08:30:05 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Use the new PTE naming, and define CR3_FRAME_* separately. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.3

CVS commit: src/lib/libnvmm

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 08:30:05 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Use the new PTE naming, and define CR3_FRAME_* separately. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.3

CVS commit: src

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 10:28:55 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Add a new VCPU conf option, that allows userland to request VMEXITs after a

CVS commit: src

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 10:28:55 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Add a new VCPU conf option, that allows userland to request VMEXITs after a

CVS commit: src/sys/dev/nvmm/x86

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 11:11:09 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Mask CPUID leaf 0x0A on Intel, because we don't want the guest to try (and fail) to probe the PMC MSRs. This avoids "Unexpected WRMSR" wa

CVS commit: src/sys/dev/nvmm/x86

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 11:11:09 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Mask CPUID leaf 0x0A on Intel, because we don't want the guest to try (and fail) to probe the PMC MSRs. This avoids "Unexpected WRMSR" wa

CVS commit: src/sys/dev/nvmm/x86

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 18:26:54 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Add PCID support in the guests. This speeds up most 64bit guests, because since Meltdown, everybody uses PCID (including NetBSD). To ge

CVS commit: src/sys/dev/nvmm/x86

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 18:26:54 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Add PCID support in the guests. This speeds up most 64bit guests, because since Meltdown, everybody uses PCID (including NetBSD). To ge

CVS commit: src

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 20:17:36 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.c nvmm.h src/sys/dev/nvmm: nvmm.c Log Message: Change the way root_owner works: consider the calling process as root_owner not if it has root privileges,

CVS commit: src

2019-10-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 27 20:17:36 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.c nvmm.h src/sys/dev/nvmm: nvmm.c Log Message: Change the way root_owner works: consider the calling process as root_owner not if it has root privileges,

CVS commit: src

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 08:30:49 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 nvmm.h src/sys/dev/nvmm: nvmm.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: A few changes: - Use smaller types

CVS commit: src

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 08:30:49 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 nvmm.h src/sys/dev/nvmm: nvmm.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: A few changes: - Use smaller types

CVS commit: src/sys/dev/nvmm

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 09:00:08 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_ioctl.h Log Message: Add nram in struct nvmm_ctl_mach_info. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/dev/nvmm/nvmm.c cvs rdiff

CVS commit: src/sys/dev/nvmm

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 09:00:08 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_ioctl.h Log Message: Add nram in struct nvmm_ctl_mach_info. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/dev/nvmm/nvmm.c cvs rdiff

CVS commit: src

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 13:04:19 UTC 2019 Modified Files: src/distrib/sets/lists/base: md.amd64 src/distrib/sets/lists/man: mi src/share/mk: bsd.hostprog.mk src/usr.sbin: Makefile Added Files: src/usr.sbin/nvmmctl:

CVS commit: src

2019-10-28 Thread Maxime Villard
ctl.8,v 1.1 2019/10/28 13:04:18 maxv Exp $ +.\" +.\" Copyright (c) 2019 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Maxime Villard. +.\" +.\" Redistribution and

CVS commit: src/lib/libnvmm

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 14:20:28 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 Log Message: should be fork(2), noticed by wiz To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libnvmm/libnvmm.3 Please note that diffs

CVS commit: src/lib/libnvmm

2019-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 28 14:20:28 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 Log Message: should be fork(2), noticed by wiz To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libnvmm/libnvmm.3 Please note that diffs

CVS commit: src/usr.sbin/nvmmctl

2019-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 29 08:13:17 UTC 2019 Modified Files: src/usr.sbin/nvmmctl: Makefile Log Message: Forgot to put nvmmctl in the "nvmm" group. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/nvmmctl/Makefile Please

CVS commit: src/usr.sbin/nvmmctl

2019-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 29 08:13:17 UTC 2019 Modified Files: src/usr.sbin/nvmmctl: Makefile Log Message: Forgot to put nvmmctl in the "nvmm" group. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/nvmmctl/Makefile Please

CVS commit: src/sys/arch/x86/x86

2019-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 29 12:39:46 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Enable XSAVEOPT. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/arch/x86/x86/identcpu.c Please note that diffs are

CVS commit: src/sys/arch/x86/x86

2019-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 29 12:39:46 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Enable XSAVEOPT. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/arch/x86/x86/identcpu.c Please note that diffs are

CVS commit: src/sys/arch

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 07:40:06 UTC 2019 Modified Files: src/sys/arch/i386/i386: gdt.c src/sys/arch/x86/x86: pmap.c src/sys/arch/xen/include: xenpmap.h src/sys/arch/xen/x86: x86_xpmap.c xen_pmap.c src/sys/arch/xen

CVS commit: src/sys/arch

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 07:40:06 UTC 2019 Modified Files: src/sys/arch/i386/i386: gdt.c src/sys/arch/x86/x86: pmap.c src/sys/arch/xen/include: xenpmap.h src/sys/arch/xen/x86: x86_xpmap.c xen_pmap.c src/sys/arch/xen

CVS commit: src/sys/dev/raidframe

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 07:59:45 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Get &rsc->sc_dksc only when we know 'rsc' is not NULL. This was actually harmless because we didn't use the pointer then. Reported-by

CVS commit: src/sys/dev/raidframe

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 07:59:45 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Get &rsc->sc_dksc only when we know 'rsc' is not NULL. This was actually harmless because we didn't use the pointer then. Reported-by

CVS commit: src/sys/arch/x86/x86

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 16:32:04 UTC 2019 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Style. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/arch/x86/x86/fpu.c Please note that diffs are not public domain; t

CVS commit: src/sys/arch/x86/x86

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 16:32:04 UTC 2019 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Style. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/arch/x86/x86/fpu.c Please note that diffs are not public domain; t

CVS commit: src/sys/arch

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 17:06:57 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: cpufunc.h Log Message: More inlined ASM. To generate a diff of this commi

CVS commit: src/sys/arch

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 17:06:57 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: cpufunc.h Log Message: More inlined ASM. To generate a diff of this commi

CVS commit: src/sys/arch/amd64/include

2019-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 1 15:11:43 UTC 2019 Modified Files: src/sys/arch/amd64/include: pmap.h Log Message: Fix KUBSAN: the kernel size now exceeds the mapping limit, so bump the limit. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.

CVS commit: src/sys/arch/amd64/include

2019-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 1 15:11:43 UTC 2019 Modified Files: src/sys/arch/amd64/include: pmap.h Log Message: Fix KUBSAN: the kernel size now exceeds the mapping limit, so bump the limit. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.

CVS commit: src

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:19:18 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk src/sys/arch/amd64/amd64: machdep.c mptramp.S src/sys/arch/amd64/conf: GENERIC Makefile.amd64 src/sys/arch/x86/x86: cpu.c src/sys/c

CVS commit: src

2019-11-05 Thread Maxime Villard
ize_t, size_t *); Added files: Index: src/sys/arch/amd64/include/csan.h diff -u /dev/null src/sys/arch/amd64/include/csan.h:1.1 --- /dev/null Tue Nov 5 20:19:18 2019 +++ src/sys/arch/amd64/include/csan.h Tue Nov 5 20:19:17 2019 @@ -0,0 +1,119 @@ +/* $NetBSD: csan.h,v 1.1 2019/11/05 20:19:17 ma

CVS commit: src/sys/arch/x86/acpi

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:21:34 UTC 2019 Modified Files: src/sys/arch/x86/acpi: acpi_cpu_md.c Log Message: Add the __nocsan attribute on this function. Races on ci_want_resched are accepted (part of the design). To generate a diff of this com

CVS commit: src/sys/arch/x86/acpi

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:21:34 UTC 2019 Modified Files: src/sys/arch/x86/acpi: acpi_cpu_md.c Log Message: Add the __nocsan attribute on this function. Races on ci_want_resched are accepted (part of the design). To generate a diff of this com

CVS commit: src/doc

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:23:44 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Note kCSan. To generate a diff of this commit: cvs rdiff -u -r1.2608 -r1.2609 src/doc/CHANGES Please note that diffs are not public domain; they are subje

CVS commit: src/doc

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:23:44 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Note kCSan. To generate a diff of this commit: cvs rdiff -u -r1.2608 -r1.2609 src/doc/CHANGES Please note that diffs are not public domain; they are subje

Re: CVS commit: src

2019-11-05 Thread Maxime Villard
Le 05/11/2019 à 22:01, m...@netbsd.org a écrit : On Tue, Nov 05, 2019 at 08:19:18PM +, Maxime Villard wrote: Module Name:src Committed By: maxv Date: Tue Nov 5 20:19:18 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk src/sys/arch/amd64/amd64: machdep.c

CVS commit: src/sys

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 6 06:57:22 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Change kcsan_md_is_avail() to always return true; I was testing with interrupts disabled as debugging. Ch

CVS commit: src/sys

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 6 06:57:22 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Change kcsan_md_is_avail() to always return true; I was testing with interrupts disabled as debugging. Ch

CVS commit: src/sys

2019-11-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 8 12:36:11 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Exclude the PTE space from KCSAN, since there the same VA can point to different PAs. To generate a dif

CVS commit: src/sys

2019-11-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 8 12:36:11 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Exclude the PTE space from KCSAN, since there the same VA can point to different PAs. To generate a dif

CVS commit: src/sys/kern

2019-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 11 09:50:11 UTC 2019 Modified Files: src/sys/kern: subr_xcall.c Log Message: Remove lockless reads of 'xc_donep'. This is an uint64_t, and we cannot expect the accesses to be MP-safe on 32bit arches. Found by KCSAN. To ge

<    2   3   4   5   6   7   8   9   >