CVS commit: src/sys

2020-09-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 10 14:10:47 UTC 2020 Modified Files: src/sys/arch/aarch64/include: asan.h src/sys/arch/amd64/include: asan.h src/sys/arch/arm/include: asan.h src/sys/kern: subr_asan.c src/sys/sys: asan.h Log

CVS commit: src/sys

2020-09-10 Thread Maxime Villard
$ */ /* - * Copyright (c) 2018-2020 The NetBSD Foundation, Inc. + * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net * All rights reserved. * - * This code is derived from software contributed to The NetBSD Foundation - * by Maxime Villard. + * This code is part of the KASAN subsystem

CVS commit: src/sys

2020-09-10 Thread Maxime Villard
maxv Exp $ */ +/* $NetBSD: csan.h,v 1.4 2020/09/10 14:04:45 maxv Exp $ */ /* - * Copyright (c) 2019 The NetBSD Foundation, Inc. + * Copyright (c) 2019-2020 Maxime Villard, m00nbsd.net * All rights reserved. * - * This code is derived from software contributed to The NetBSD Foundation

CVS commit: src/sys

2020-09-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 10 14:04:45 UTC 2020 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c src/sys/sys: csan.h Log Message: kcsan: fix the copyright notices To generate a diff of this commit: cvs

CVS commit: src/sys

2020-09-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Sep 9 16:30:00 UTC 2020 Modified Files: src/sys/arch/amd64/include: msan.h src/sys/kern: subr_msan.c src/sys/sys: msan.h Log Message: kmsan: update the copyright notices To generate a diff of this commit: cvs

CVS commit: src/sys

2020-09-09 Thread Maxime Villard
christos Exp $ */ +/* $NetBSD: msan.h,v 1.5 2020/09/09 16:29:59 maxv Exp $ */ /* - * Copyright (c) 2019 The NetBSD Foundation, Inc. + * Copyright (c) 2019-2020 Maxime Villard, m00nbsd.net * All rights reserved. * - * This code is derived from software contributed to The NetBSD Foundation

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

2020-09-08 Thread Maxime Villard
: nvmm_x86_vmx.c,v 1.79 2020/09/08 17:00:07 maxv Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_vmx.c,v 1.78 2020/09/06 02:18:53 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_vm

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

2020-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Sep 8 17:02:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: avoid hogging behavior observed recently When the FPU code got rewritten in NetBSD, the dependency on IPL_HIGH

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

2020-09-08 Thread Maxime Villard
$ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.80 2020/09/08 16:58:38 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.81 2020/09/08 17:02:03 maxv Exp $"); #include

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

2020-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Sep 8 17:00:07 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: improve the handling of CR0 - CR0_ET is hard-wired to 1 in the cpu, so force CR0_ET to 1 in the shadow. - Clarify.

CVS commit: src/sys/dev/nvmm

2020-09-08 Thread Maxime Villard
+1,4 @@ -/* $NetBSD: nvmm.c,v 1.40 2020/09/05 16:30:11 riastradh Exp $ */ +/* $NetBSD: nvmm.c,v 1.41 2020/09/08 16:58:38 maxv Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.40 2020/09/05 16:

CVS commit: src/sys/dev/nvmm

2020-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Sep 8 16:58:38 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_ioctl.h src/sys/dev/nvmm/x86: nvmm_x86.c nvmm_x86_svm.c Log Message: nvmm: cosmetic changes - Style. - Explicitly include ioccom.h. To generate

CVS commit: src

2020-09-05 Thread Maxime Villard
7 Sat Sep 5 07:22:26 2020 +++ src/sys/dev/nvmm/x86/nvmm_x86.c Sat Sep 5 07:45:44 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: nvmm_x86.c,v 1.17 2020/09/05 07:22:26 maxv Exp $ */ +/* $NetBSD: nvmm_x86.c,v 1.18 2020/09/05 07:45:44 maxv Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @

CVS commit: src

2020-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 5 07:45:45 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h src/sys/arch/x86/x86: identcpu.c src/sys/crypto/aes/arch/x86: aes_ni.c src/sys/dev/nvmm/x86: nvmm_x86.c

CVS commit: src/sys

2020-09-05 Thread Maxime Villard
mm/x86/nvmm_x86_svm.c:1.76 Sat Sep 5 07:22:26 2020 +++ src/sys/dev/nvmm/x86/nvmm_x86_svm.c Sat Sep 5 07:26:38 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: nvmm_x86_svm.c,v 1.76 2020/09/05 07:22:26 maxv Exp $ */ +/* $NetBSD: nvmm_x86_svm.c,v 1.77 2020/09/05 07:26:38 maxv Exp $ */ /* * Copyright (c) 2018-2020 Max

CVS commit: src/sys

2020-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 5 07:26:38 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: trap.c src/sys/arch/i386/i386: trap.c src/sys/arch/x86/include: pte.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: x86: rename

CVS commit: src

2020-09-05 Thread Maxime Villard
v Exp $ +.\" $NetBSD: libnvmm.3,v 1.27 2020/09/05 07:22:25 maxv Exp $ .\" -.\" Copyright (c) 2018-2020 The NetBSD Foundation, Inc. +.\" Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net .\" All rights reserved. .\" -.\" This code is derived from softw

CVS commit: src

2020-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 5 07:22:26 UTC 2020 Modified Files: src/lib/libnvmm: libnvmm.3 libnvmm.c libnvmm_x86.c nvmm.h src/share/man/man4: nvmm.4 src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h nvmm_ioctl.h

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:09:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: improve the CPUID emulation - Mask DTES64, DS_CPL, CID, SDBG, xTPR, PN. - B10, B20 and IA64 do not exist, so just remove them.

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:09:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: improve the CPUID emulation - Mask DTES64, DS_CPL, CID, SDBG, xTPR, PN. - B10, B20 and IA64 do not exist, so just remove them.

CVS commit: src/sys/dev/nvmm

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:08:01 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: more __read_mostly To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/nvmm/nvmm.c Please note that diffs are not

CVS commit: src/sys/dev/nvmm

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:08:01 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: more __read_mostly To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/nvmm/nvmm.c Please note that diffs are not

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:07:33 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: improve the handling of CR0 - Flush the guest TLB when certain CR0 bits change. - If the guest updates a static bit in

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:07:33 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: improve the handling of CR0 - Flush the guest TLB when certain CR0 bits change. - If the guest updates a static bit in

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:06:23 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: check the SVM revision Only revision 1 exists, but check it, for future-proofness. To generate a diff of this commit:

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:06:23 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: check the SVM revision Only revision 1 exists, but check it, for future-proofness. To generate a diff of this commit:

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:05:09 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add a few more CPUID flags. To generate a diff of this commit: cvs rdiff -u -r1.171 -r1.172 src/sys/arch/x86/include/specialreg.h

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:05:09 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add a few more CPUID flags. To generate a diff of this commit: cvs rdiff -u -r1.171 -r1.172 src/sys/arch/x86/include/specialreg.h

CVS commit: src/sys/arch/aarch64

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:17:23 UTC 2020 Modified Files: src/sys/arch/aarch64/aarch64: locore_el2.S src/sys/arch/aarch64/include: hypervisor.h Log Message: Slightly clarify, and style. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/aarch64

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:17:23 UTC 2020 Modified Files: src/sys/arch/aarch64/aarch64: locore_el2.S src/sys/arch/aarch64/include: hypervisor.h Log Message: Slightly clarify, and style. To generate a diff of this commit: cvs rdiff -u

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

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:16:04 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: 'doreti_checkast' isn't global anymore, localify. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

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

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:16:04 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: 'doreti_checkast' isn't global anymore, localify. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/sys/net

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:14:50 UTC 2020 Modified Files: src/sys/net: if_tun.c Log Message: Correct my rev1.159, it was incomplete, the check must be done later because the value can change in the meantime (and get set to zero). To generate

CVS commit: src/sys/net

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:14:50 UTC 2020 Modified Files: src/sys/net: if_tun.c Log Message: Correct my rev1.159, it was incomplete, the check must be done later because the value can change in the meantime (and get set to zero). To generate

CVS commit: src/sys/dev/nvmm

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:14:17 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: explicitly include atomic.h To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/nvmm/nvmm.c Please note that diffs

CVS commit: src/sys/dev/nvmm

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:14:17 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: explicitly include atomic.h To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/nvmm/nvmm.c Please note that diffs

CVS commit: src/sys/kern

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:36:32 UTC 2020 Modified Files: src/sys/kern: tty.c Log Message: Add a check to prevent shift by -1. Not really important in this case, but to appease KUBSAN. Reported-by:

CVS commit: src/sys/kern

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:36:32 UTC 2020 Modified Files: src/sys/kern: tty.c Log Message: Add a check to prevent shift by -1. Not really important in this case, but to appease KUBSAN. Reported-by:

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:33:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: improve the handling of MSR_EFER Intercept reads of it as well, just to mask EFER_SVME, which the guest doesn't need to

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:33:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: improve the handling of MSR_EFER Intercept reads of it as well, just to mask EFER_SVME, which the guest doesn't need to

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:32:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: improve the handling of RFLAGS.RF - When injecting certain exceptions, set RF. For us to have an up-to-date

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:32:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: improve the handling of RFLAGS.RF - When injecting certain exceptions, set RF. For us to have an up-to-date

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:30:50 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: improve the handling of CR4 - Filter out certain features we don't want the guest to enable. This is for general

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:30:50 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: improve the handling of CR4 - Filter out certain features we don't want the guest to enable. This is for general

CVS commit: src/sys/dev/nvmm

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:29:49 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm_ioctl.h Log Message: nvmm: slightly clarify To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/nvmm/nvmm_ioctl.h Please note that diffs

CVS commit: src/sys/dev/nvmm

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:29:49 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm_ioctl.h Log Message: nvmm: slightly clarify To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/nvmm/nvmm_ioctl.h Please note that diffs

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:29:20 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: don't forget to intercept INVD INVD executed in the guest can be dangerous for the host, due to CPU caches being flushed

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

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:29:20 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: don't forget to intercept INVD INVD executed in the guest can be dangerous for the host, due to CPU caches being flushed

CVS commit: src/sys/dev/nvmm

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:28:17 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: misc improvements - use mach->ncpus to get the number of vcpus, now that we have it - don't forget to decrement mach->ncpus when a machine

CVS commit: src/sys/dev/nvmm

2020-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 26 16:28:17 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: misc improvements - use mach->ncpus to get the number of vcpus, now that we have it - don't forget to decrement mach->ncpus when a machine

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 11:01:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: fix detection of the BIOS lock If it's locked, ensure it's locked with VMX enabled. If it's not locked, then lock it

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 11:01:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: fix detection of the BIOS lock If it's locked, ensure it's locked with VMX enabled. If it's not locked, then lock it

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 11:00:01 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: hide more CPUID flags, mostly related to perf monitors To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 11:00:01 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: hide more CPUID flags, mostly related to perf monitors To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 10:59:05 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: dedup code To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/dev/nvmm/x86/nvmm_x86_svm.c Please

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 10:59:05 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: dedup code To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/dev/nvmm/x86/nvmm_x86_svm.c Please

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

2020-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 20 11:09:56 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: improve the CPUID emulation - x86-svm: explicitly handle 0x8007 and

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

2020-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 20 11:09:56 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: improve the CPUID emulation - x86-svm: explicitly handle 0x8007 and

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

2020-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 20 11:07:43 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: advertise the SERIALIZE instruction, available on future CPUs To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13

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

2020-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 20 11:07:43 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: advertise the SERIALIZE instruction, available on future CPUs To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13

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

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:08:05 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: improve the CPUID emulation Limit the hypervisor range, and properly handle each basic leaf until 0xD. To generate a

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

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:08:05 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: improve the CPUID emulation Limit the hypervisor range, and properly handle each basic leaf until 0xD. To generate a

CVS commit: src/sys/dev/nvmm

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:04:38 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: use relaxed atomics to read nmachines To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/nvmm/nvmm.c Please note

CVS commit: src/sys/dev/nvmm

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:04:38 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: use relaxed atomics to read nmachines To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/nvmm/nvmm.c Please note

CVS commit: src/sys/dev/nvmm

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:03:58 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: localify a variable that doesn't need to be global To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/dev/nvmm/nvmm.c

CVS commit: src/sys/dev/nvmm

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:03:58 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: localify a variable that doesn't need to be global To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/dev/nvmm/nvmm.c

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

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:03:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: also flush the guest TLB when CR4.{PCIDE,SMEP} changes To generate a diff of this commit: cvs rdiff -u -r1.67

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

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:03:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: also flush the guest TLB when CR4.{PCIDE,SMEP} changes To generate a diff of this commit: cvs rdiff -u -r1.67

CVS commit: src/sys/net/npf

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 07:53:24 UTC 2020 Modified Files: src/sys/net/npf: npf_os.c Log Message: Add missing cases, to prevent memory corruption. Reported-by: syzbot+f8b8a689a3560dda2...@syzkaller.appspotmail.com To generate a diff of this

CVS commit: src/sys/net/npf

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 07:53:24 UTC 2020 Modified Files: src/sys/net/npf: npf_os.c Log Message: Add missing cases, to prevent memory corruption. Reported-by: syzbot+f8b8a689a3560dda2...@syzkaller.appspotmail.com To generate a diff of this

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:48:42 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svmfunc.S nvmm_x86_vmxfunc.S Log Message: Micro-optimize: use pushq instead of pushw. To avoid LCP stalls and unaligned stack accesses. To generate a

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:48:42 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svmfunc.S nvmm_x86_vmxfunc.S Log Message: Micro-optimize: use pushq instead of pushw. To avoid LCP stalls and unaligned stack accesses. To generate a

CVS commit: src/doc

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:35:17 UTC 2020 Modified Files: src/doc: TODO.nvmm Log Message: sync To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/doc/TODO.nvmm Please note that diffs are not public domain; they are subject to

CVS commit: src/doc

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:35:17 UTC 2020 Modified Files: src/doc: TODO.nvmm Log Message: sync To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/doc/TODO.nvmm Please note that diffs are not public domain; they are subject to

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:31:52 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Improve the CPUID emulation on nvmm-intel: - Limit the highest extended leaf. - Limit 0x0007 to ECX=0, for future-proofness. To

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:31:52 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Improve the CPUID emulation on nvmm-intel: - Limit the highest extended leaf. - Limit 0x0007 to ECX=0, for future-proofness. To

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:27:46 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Improve emulation of MSR_IA32_ARCH_CAPABILITIES: publish only the *_NO bits. Initially they were the only ones there, but Intel then

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:27:46 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Improve emulation of MSR_IA32_ARCH_CAPABILITIES: publish only the *_NO bits. Initially they were the only ones there, but Intel then

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:23:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Hide OSPKE. NFC since the host never uses PKU, but still. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:23:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Hide OSPKE. NFC since the host never uses PKU, but still. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/sys/dev/nvmm

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 16:36:34 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.h Log Message: Add CTASSERT. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/dev/nvmm/nvmm.h Please note that diffs are not public domain;

CVS commit: src/sys/dev/nvmm

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 16:36:34 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.h Log Message: Add CTASSERT. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/dev/nvmm/nvmm.h Please note that diffs are not public domain;

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:40:46 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add new fields here and there. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 src/sys/arch/x86/include/specialreg.h

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:40:46 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add new fields here and there. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 src/sys/arch/x86/include/specialreg.h

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:38:28 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Improve the CPUID emulation: - Hide SGX*, PKU, WAITPKG, and SKINIT, because they are not supported. - Hide HLE and RTM, part of TSX.

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:38:28 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Improve the CPUID emulation: - Hide SGX*, PKU, WAITPKG, and SKINIT, because they are not supported. - Hide HLE and RTM, part of TSX.

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:22:25 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Add new field definitions, and intercept everything, for future-proofness. To generate a diff of this commit: cvs rdiff -u -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:22:25 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Add new field definitions, and intercept everything, for future-proofness. To generate a diff of this commit: cvs rdiff -u -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:20:09 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Add new field definitions. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c Please

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:20:09 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Add new field definitions. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c Please

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:16:51 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Make it easier to understand what's going on, no functional change. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:16:51 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Make it easier to understand what's going on, no functional change. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src/sys/modules/nvmm

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:33:01 UTC 2020 Modified Files: src/sys/modules/nvmm: Makefile Log Message: Upgrade NVMM to WARNS=5. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/modules/nvmm/Makefile Please note that diffs

CVS commit: src/sys/modules/nvmm

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:33:01 UTC 2020 Modified Files: src/sys/modules/nvmm: Makefile Log Message: Upgrade NVMM to WARNS=5. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/modules/nvmm/Makefile Please note that diffs

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:31:37 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Use ULL, to make it clear we are unsigned. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:31:37 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Use ULL, to make it clear we are unsigned. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:20:50 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Simplify, remove unnecessary #ifdef DIAGNOSTIC around KASSERTs. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:20:50 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Simplify, remove unnecessary #ifdef DIAGNOSTIC around KASSERTs. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

CVS commit: src/sys/net

2020-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 2 07:19:39 UTC 2020 Modified Files: src/sys/net: bpf.c Log Message: Use a more informative panic message. To generate a diff of this commit: cvs rdiff -u -r1.237 -r1.238 src/sys/net/bpf.c Please note that diffs are not

CVS commit: src/sys/net

2020-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 2 07:19:39 UTC 2020 Modified Files: src/sys/net: bpf.c Log Message: Use a more informative panic message. To generate a diff of this commit: cvs rdiff -u -r1.237 -r1.238 src/sys/net/bpf.c Please note that diffs are not

  1   2   3   4   5   6   7   8   9   10   >