CVS commit: src/sys/dev/nvmm

2019-02-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 18 12:17:45 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.c src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Ah, finally found you. Fix scheduling bug in NVMM. When processing guest page faults, we

CVS commit: src/lib/libnvmm

2019-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 17 20:25:46 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Fix handling of SIB instructions. We were jumping to the SIB node _before_ fetching the displacement, so the node would always think there was

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

2019-02-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 16 12:58:14 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Ah no, adapt previous, on AMD RAX is in the VMCB. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/dev/nvmm/x86/nv

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

2019-02-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 16 12:40:31 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Improve the FPU detection: hide XSAVES because we're not allowing it, and don't set CPUID2_OSXSAVE if the guest didn't fir

CVS commit: src/sys

2019-02-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 16 12:05:30 UTC 2019 Modified Files: src/sys/arch/x86/include: specialreg.h src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Handle MSR_MISC_ENABLE on NVMM-Intel (Intel-specific). To generate a diff of this commit

CVS commit: src/lib/libnvmm

2019-02-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 15 16:42:27 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Remove the PSE check in the 32bit-PAE MMU. Setting CR4.PAE automatically enables PSE regardless of whether CR4.PSE is set or not, so we should

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

2019-02-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 15 13:17:05 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Initialize the guest TSC to zero at VCPU creation time, and handle guest writes to MSR_TSC at run time. This is imprecise

CVS commit: src

2019-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 14 14:30:20 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Harmonize the handling of the CPL between AMD and Intel. AMD has a sepa

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

2019-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 14 09:37:32 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: On AMD, the segments have a simple "present" bit. On Intel however there is an extra "unusable" bit, which has a twisted meaning. We can'

CVS commit: src/share/man/man4

2019-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 13 16:06:28 UTC 2019 Modified Files: src/share/man/man4: nvmm.4 Log Message: Note Intel support. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/nvmm.4 Please note that diffs are not public

CVS commit: src/sys

2019-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 13 16:03:16 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/modules/nvmm: Makefile Added Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c nvmm_x86_vmxfunc.S Log Message: Add Intel-VMX sup

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

2019-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 13 10:55:13 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Drop support for software interrupts. I had initially added that to cover the three event types available on AMD, but Intel has seven of

CVS commit: src/sys/arch/x86

2019-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 13 08:38:25 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h src/sys/arch/x86/x86: pmap.c Log Message: Add the EPT pmap code, used by Intel-VMX. The idea is that under NVMM, we don't want to implement the h

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

2019-02-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 13 07:04:13 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Micro optimization: the STAR/LSTAR/CSTAR/SFMASK MSRs are static, so rather than saving them on each VMENTRY, save them only once, at VCPU

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

2019-02-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 13 06:32:45 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.h Log Message: Reorder the GPRs to match the CPU encoding, simplifies things on Intel. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys

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

2019-02-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Feb 12 14:54:59 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Optimize: the hardware does not clear the TLB flush command after a VMENTRY, so clear it ourselves, to avoid uselessly flushing the guest

CVS commit: src/lib/libnvmm

2019-02-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Feb 12 14:50:21 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Optimize: fetch only 5 bytes instead of 15, the instruction can have only up to five prefixes. To generate a diff of this commit: cvs rdiff -

CVS commit: src/sys/kern

2019-02-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 11 11:12:58 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Fix previous, pr_size includes the KASAN redzone. Repurpose pr_reqsize and use it for PR_ZERO, it holds the size requested by the user with no paddi

CVS commit: src/sys/dev/nvmm

2019-02-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 11 07:07:37 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm_internal.h Log Message: Increase the max guest ram from 4GB to 128GB. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/dev/nvmm/nvmm_internal.h

CVS commit: src

2019-02-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 7 10:58:45 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: Improvements: - Emulate the instructions by executing them directly on the h

CVS commit: src/tests/lib/libnvmm

2019-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Feb 5 17:03:10 UTC 2019 Modified Files: src/tests/lib/libnvmm: h_io_assist.c Log Message: Ah, I had warnings disabled, fix the build. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libnvmm/h_io_assi

CVS commit: src/lib/libnvmm

2019-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Feb 5 13:56:32 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 Log Message: Sync with reality, and improve. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/lib/libnvmm/libnvmm.3 Please note that diffs ar

CVS commit: src

2019-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Feb 5 13:00:03 UTC 2019 Modified Files: src/distrib/sets/lists/debug: md.amd64 src/distrib/sets/lists/tests: md.amd64 src/tests/lib/libnvmm: Makefile Added Files: src/tests/lib/libnvmm: h_io_assist.c h_io

CVS commit: src/sys/kern

2019-02-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 4 15:13:54 UTC 2019 Modified Files: src/sys/kern: subr_kmem.c Log Message: Clobber the size when freeing a buffer. This way, if the same buffer gets freed twice, the second size check will fire. To generate a diff of this

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

2019-02-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 4 15:07:35 UTC 2019 Modified Files: src/sys/arch/amd64/include: asan.h Log Message: Add more symbols to the unwinder, in case we get a KASAN message inside an exception handler. To generate a diff of this commit: cvs rdif

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

2019-02-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 4 12:11:18 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Improvements: - Guest reads/writes to PAT land in gPAT, so no need to emulate them. - When emulating EFER, don't advance the RIP if a

CVS commit: src/sys/arch/x86

2019-02-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 1 11:35:13 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h src/sys/arch/x86/x86: pmap.c Log Message: Add the remaining pmap callbacks, will be used by NVMM-VMX. To generate a diff of this commit: cvs rdi

CVS commit: src

2019-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 1 06:49:59 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 two issues: * Uh I put the wrong masks in some GPRs, fuck. * When the

CVS commit: src/sys/arch/x86

2019-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 1 05:44:29 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h pmap_pv.h src/sys/arch/x86/x86: pmap.c Log Message: Change the format of the pp_attrs field: instead of using PTE bits directly, use abstracted bi

CVS commit: src/tests/lib/libnvmm

2019-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 1 05:32:09 UTC 2019 Modified Files: src/tests/lib/libnvmm: h_mem_assist.c Log Message: Put correct values in the seg fields. AMD doesn't check for that, but Intel does, so they need to be correct. To generate a diff of th

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

2019-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 31 20:42:31 UTC 2019 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Move some code into a separate function, no functional change. To generate a diff of this commit: cvs rdiff -u -r1.316 -r1.317 src/sys/arch/x86

CVS commit: src/sys/kern

2019-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 31 20:09:05 UTC 2019 Modified Files: src/sys/kern: kern_time.c Log Message: Fix kernel info leaks. To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/sys/kern/kern_time.c Please note that diffs are not pu

CVS commit: src/doc

2019-01-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 27 09:07:24 UTC 2019 Modified Files: src/doc: CHANGES Log Message: satlink removed To generate a diff of this commit: cvs rdiff -u -r1.2493 -r1.2494 src/doc/CHANGES Please note that diffs are not public domain; they are s

CVS commit: src/share/man/man8

2019-01-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 27 08:57:05 UTC 2019 Modified Files: src/share/man/man8: MAKEDEV.8 Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/share/man/man8/MAKEDEV.8 Please note that diffs are not public domain

CVS commit: src

2019-01-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 27 08:53:31 UTC 2019 Modified Files: src/distrib/sets/lists/comp: mi src/etc: MAKEDEV.tmpl src/etc/etc.algor: MAKEDEV.conf src/etc/etc.alpha: MAKEDEV.conf src/etc/etc.amd64: MAKEDEV.conf

CVS commit: src/sys/dev/nvmm

2019-01-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 26 15:25:51 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h Log Message: Optimize: keep a per-VCPU buffer for the state, and copy in and out directly on it. The VCPUs are protected by mutexes, so nothing to

CVS commit: src/sys/dev/nvmm

2019-01-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 26 15:12:20 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Remove nvmm_exit_memory.npc, useless. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/

CVS commit: src/lib/libnvmm

2019-01-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 26 14:44:54 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Ah, fix bug: when the opcode has an immediate, we fill the src with a register storage, but then we overwrite it without zeroing out the highes

CVS commit: src/sys/dev/nvmm

2019-01-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 24 13:05:59 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Optimize: change the behavior of the HLT vmexit, make it a "change in vcpu state" which occurs after the

CVS commit: src/sys

2019-01-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 20 16:55:21 UTC 2019 Modified Files: src/sys/arch/x86/include: fpu.h src/sys/arch/x86/x86: fpu.c src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Improvements in NVMM * Handle the FPU differently, limit th

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

2019-01-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 17 19:26:03 UTC 2019 Modified Files: src/sys/arch/amd64/include: vmparam.h Log Message: Increase VM_PHYSSEG_MAX from 32 to 64. Saw an example on tech-kern@ of a heavily fragmented memory map. To generate a diff of this com

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

2019-01-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 17 14:24:51 UTC 2019 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Simplify pmap_sync_pv: just pass a pa, and build the pte inside. To generate a diff of this commit: cvs rdiff -u -r1.315 -r1.316 src/sys/arch/x

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

2019-01-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 14 18:54:07 UTC 2019 Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Add #ifndef i386, the dbregs are 32bit in this case anyway. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/x8

CVS commit: src/sys/netinet6

2019-01-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 14 18:51:15 UTC 2019 Modified Files: src/sys/netinet6: ip6_input.c Log Message: Fix bug, should be ip6_protox[]. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/sys/netinet6/ip6_input.c Please note tha

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

2019-01-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 13 12:19:09 UTC 2019 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Forgot to commit file along with identcpu.c::rev1.86. To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/sys/arch/x8

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

2019-01-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 13 12:16:58 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: On certain AMD f10h CPUs (like mine), the BIOS does not enable WC+. It means that the guest pages that are WC+ become CD, and this degrades p

CVS commit: src/lib/libnvmm

2019-01-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 13 10:43:23 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Handle more corner cases, clean up a little, and add a set of instructions in Group1. To generate a diff of this commit: cvs rdiff -u -r1.14

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

2019-01-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 13 10:07:50 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Reset DR7 before loading DR0-3, to prevent a fault if the host process has dbregs enabled. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/x86

2019-01-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 13 10:01:07 UTC 2019 Modified Files: src/sys/arch/x86/include: dbregs.h src/sys/arch/x86/x86: dbregs.c Log Message: Error out if the higher 32 bits of DR6 and DR7 are set. MOV DR would fault otherwise. To generate

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

2019-01-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 10 06:58:37 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_svmfunc.S Log Message: Optimize: * Don't save/restore the host CR2, we don't care because we're not in a #PF context (and preemption swi

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

2019-01-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 8 14:43:18 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Optimize: don't keep a full copy of the guest state, rather take only what is needed. This avoids expensive memcpy's. Also flush the V_T

CVS commit: src/lib/libnvmm

2019-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 8 07:34:22 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Handle REPN. FreeBSD has a "repn movs", which is a bit unusual, but doesn't seem illegal as far as I can tell from the AMD SDM. With that, I c

CVS commit: src/sys/dev/nvmm

2019-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 8 07:29:46 UTC 2019 Modified Files: src/sys/dev/nvmm: nvmm_ioctl.h Log Message: _IOWR -> _IOW To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/nvmm/nvmm_ioctl.h Please note that diffs are not publi

CVS commit: src/lib/libnvmm

2019-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 7 18:13:34 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Optimize the legpref node: omit BRN (we don't care and it's the same as OVR_CS), inline the loops, sort the checks from most to least likely pr

CVS commit: src/lib/libnvmm

2019-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 7 16:30:26 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 libnvmm_x86.c nvmm.h Log Message: Optimize: on single memory operand instructions, take the GPA directly from the exit structure provided by the kernel. This sa

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

2019-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 7 14:08:02 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Optimize: cache the guest state entirely in the VMCB-cache, flush it on a state-by-state basis when needed. To generate a diff of this

CVS commit: src/lib/libnvmm

2019-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 7 13:47:33 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Improvements and fixes: * Decode AND/OR/XOR from Group1. * Sign-extend the immediates and displacements in 64bit mode. * Fix the storage

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

2019-01-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 6 18:32:54 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Add more VMCB fields. Also remove debugging code I mistakenly committed in the previous revision. No functional change. To generate a d

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

2019-01-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 6 16:19:12 UTC 2019 Modified Files: src/sys/arch/x86/x86: x86_tlb.c Log Message: Flush the host TLB too when dealing with a guest pmap. The pmap is not active on the host so the pages aren't cached; but the recursive PTE en

CVS commit: src

2019-01-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 6 16:13:51 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c src/usr.sbin/cpuctl/arch: i386.c Log Message: Handle the NVMM signature. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/a

CVS commit: src

2019-01-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 6 16:10:51 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm.3 libnvmm_x86.c nvmm.h src/sys/dev/nvmm: nvmm.c nvmm.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c Log Message: Improvements and fixes in NVMM

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

2019-01-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 5 22:11:07 UTC 2019 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: Apply amd64/kobj_machdep.c::rev1.7 to the prekern too, to fix the relocation with updated binutils. To generate a diff of this commi

CVS commit: src/lib/libnvmm

2019-01-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jan 4 10:25:40 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: In !64bit mode RIP-relative is null+disp32, handle that correctly. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/libnvm

CVS commit: src/sys/kern

2019-01-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 3 10:16:43 UTC 2019 Modified Files: src/sys/kern: kern_descrip.c Log Message: Add KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.241 -r1.242 src/sys/kern/kern_descrip.c Please note that diffs are not public

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

2019-01-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 3 08:02:50 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Fix another gross copy-pasto. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/nvmm/x86/nvmm_x86_svm.c Please n

CVS commit: src

2019-01-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jan 2 12:18:08 UTC 2019 Modified Files: src/lib/libnvmm: libnvmm_x86.c src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: When there's no DecodeAssist in hardware, decode manually in software. This is needed on certain A

CVS commit: src/lib/libnvmm

2018-12-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 29 17:54:54 UTC 2018 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Fix the segmentation check, the limit is relative, not absolute. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libnvmm/

CVS commit: src/doc

2018-12-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 29 11:35:14 UTC 2018 Modified Files: src/doc: CHANGES Log Message: Note mbuf API changes, and removal of compat_ibcs2. To generate a diff of this commit: cvs rdiff -u -r1.2474 -r1.2475 src/doc/CHANGES Please note that dif

CVS commit: src/share/man/man7

2018-12-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 29 11:33:00 UTC 2018 Modified Files: src/share/man/man7: symlink.7 Log Message: Remove reference to compat_darwin (was retired a long time ago). To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/share/man/m

CVS commit: src

2018-12-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 29 11:30:13 UTC 2018 Modified Files: src/distrib/sets/lists/comp: md.vax src/distrib/sets/lists/man: mi src/share/man/man4: options.4 src/share/man/man7: hier.7 symlink.7 src/share/man/man8: Ma

CVS commit: src/sys/arch/vax/conf

2018-12-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 29 09:48:54 UTC 2018 Modified Files: src/sys/arch/vax/conf: GENERIC Log Message: Disable compat_ibcs2, it is being retired. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/sys/arch/vax/conf/GENERIC Ple

CVS commit: src/sys

2018-12-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 16:59:17 UTC 2018 Modified Files: src/sys/netinet: tcp_output.c tcp_subr.c tcp_var.h udp_usrreq.c src/sys/netinet6: udp6_usrreq.c Log Message: Remove unused arguments. To generate a diff of this commit: cvs rdif

CVS commit: src/sys/sys

2018-12-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 14:24:11 UTC 2018 Modified Files: src/sys/sys: mbuf.h Log Message: Style, use __nothing, and remove _M_ (unused, appears to be a typo). No functional change. To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.2

CVS commit: src/sys

2018-12-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 14:03:55 UTC 2018 Modified Files: src/sys/dev/pci: hifn7751.c src/sys/kern: uipc_mbuf.c src/sys/netmpls: mpls_ttl.c src/sys/sys: mbuf.h Log Message: Remove M_COPY_PKTHDR, M_MOVE_PKTHDR, M_ALIGN and

CVS commit: src/sys/compat

2018-12-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 09:57:16 UTC 2018 Modified Files: src/sys/compat/netbsd32: netbsd32_compat_14.c netbsd32_conv.h src/sys/compat/sys: msg.h Log Message: Fix kernel info leaks. + Possible info leak: [len=80, leaked=10]

CVS commit: src/sys/kern

2018-12-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 07:56:43 UTC 2018 Modified Files: src/sys/kern: uipc_domain.c Log Message: Fix apparent race. We're doing a LIST_FOREACH, but unlock filelist_lock in the middle of the loop and drop the reference to fp. We then read fp->

CVS commit: src

2018-12-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 07:22:31 UTC 2018 Modified Files: src/lib/libnvmm: libnvmm.3 libnvmm.c libnvmm_x86.c nvmm.h src/tests/lib/libnvmm: h_mem_assist.c h_mem_assist_asm.S Log Message: Several improvements and fixes: * Change the Assi

CVS commit: src/sys/sys

2018-12-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Dec 24 16:04:14 UTC 2018 Modified Files: src/sys/sys: verified_exec.h Log Message: Remove unused macros. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/sys/verified_exec.h Please note that diffs are not

CVS commit: src/sys/netipsec

2018-12-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Dec 24 15:57:15 UTC 2018 Modified Files: src/sys/netipsec: keysock.c keysock.h Log Message: Remove unused function. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/netipsec/keysock.c cvs rdiff -u -r1.11 -

CVS commit: src

2018-12-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 23 13:35:02 UTC 2018 Modified Files: src/distrib/sets/lists/tests: md.amd64 src/tests/lib: Makefile Added Files: src/tests/lib/libnvmm: Makefile h_mem_assist.c h_mem_assist_asm.S t_mem_assist.sh L

CVS commit: src/etc/etc.amd64

2018-12-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 23 12:18:30 UTC 2018 Modified Files: src/etc/etc.amd64: MAKEDEV.conf Log Message: Add /dev/nvmm. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/etc/etc.amd64/MAKEDEV.conf Please note that diffs are not

CVS commit: src/sys

2018-12-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 23 12:15:01 UTC 2018 Modified Files: src/sys/kern: kern_malloc.c subr_asan.c subr_kmem.c subr_pool.c src/sys/sys: asan.h src/sys/uvm: uvm_glue.c Log Message: Simplify the KASAN API, use only kasan_mark() and

CVS commit: src/sys/kern

2018-12-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 23 11:42:13 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Remove useless debugging code, the area is completely filled but it's not checked afterwards, only pi_magic is. To generate a diff of this commit:

CVS commit: src

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 14:39:47 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi src/share/man/man9: Makefile mbuf.9 Log Message: Update the man page, we don't want M_COPY_PKTHDR, M_MOVE_PKTHDR, MH_ALIGN and M_ALIGN. To genera

CVS commit: src/sys

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 14:28:57 UTC 2018 Modified Files: src/sys/arch/powerpc/booke/dev: pq3etsec.c src/sys/dev: kttcp.c src/sys/dev/pci/cxgb: cxgb_l2t.c cxgb_sge.c src/sys/dist/pf/net: if_pfsync.c src/sys/kern: u

CVS commit: src/sys

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 14:07:54 UTC 2018 Modified Files: src/sys/arch/arm/broadcom: bcm53xx_eth.c src/sys/arch/arm/xscale: ixp425_if_npe.c src/sys/dev/ic: bwi.c rt2560.c rt2661.c src/sys/dev/pci: if_et.c if_ipw.c if_iwi.c

CVS commit: src/sys

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 13:55:56 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c src/sys/net80211: ieee80211_netbsd.c ieee80211_netbsd.h src/sys/sys: mbuf.h Log Message: Move m_align() back into the kernel, and switch M_ALIGN

CVS commit: src/sys

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 13:11:38 UTC 2018 Modified Files: src/sys/arch/arm/imx: if_enet.c src/sys/arch/powerpc/booke/dev: pq3etsec.c src/sys/kern: uipc_mbuf.c src/sys/net: if_l2tp.c if_sl.c if_strip.c src/sys/net80

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

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 10:00:39 UTC 2018 Modified Files: src/sys/arch/x86/x86: spectre.c Log Message: In the end, disable the supposed architectural SpectreV2 mitigation on AMD f12h and f16h. The SDMs of these CPUs haven't been updated since, a

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

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 09:20:30 UTC 2018 Modified Files: src/sys/arch/x86/x86: spectre.c Log Message: Add AMD_SSB_NO, so that we explicitly say than an AMD CPU is not affected when it's not affected. To generate a diff of this commit: cvs rdi

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

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 08:59:45 UTC 2018 Modified Files: src/sys/arch/x86/x86: spectre.c Log Message: If the CPU is not vulnerable to SpectreV4, say it in the sysctl by default. Apply some minor style while here. To generate a diff of this co

CVS commit: src/sys/arch

2018-12-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 22 08:35:04 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_mainbus.c src/sys/arch/i386/i386: i386_mainbus.c src/sys/arch/x86/x86: mainbus.c src/sys/arch/xen/x86: xen_mainbus.c Log Message: S

CVS commit: src/doc

2018-12-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Dec 19 14:07:51 UTC 2018 Modified Files: src/doc: CHANGES Log Message: Note removal of COMPAT_SVR4. To generate a diff of this commit: cvs rdiff -u -r1.2466 -r1.2467 src/doc/CHANGES Please note that diffs are not public domai

CVS commit: src

2018-12-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Dec 19 13:57:53 UTC 2018 Modified Files: src/distrib/sets/lists/base: mi src/distrib/sets/lists/comp: md.sparc md.sparc64 src/distrib/sets/lists/man: mi src/distrib/sets/lists/misc: mi src/etc/mtre

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

2018-12-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Dec 17 07:10:07 UTC 2018 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Remove dead checks, they were already pointless when I fixed them a few years ago, and now they are wrong because the PTE space is randomized.

CVS commit: src/sys/arch/x86

2018-12-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Dec 17 06:58:54 UTC 2018 Modified Files: src/sys/arch/x86/include: pmap.h src/sys/arch/x86/x86: pmap.c Log Message: Add two pmap fields, will be used by NVMM-VMX. Also apply a few cosmetic changes. To generate a diff o

CVS commit: src/sys

2018-12-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 16 21:03:35 UTC 2018 Modified Files: src/sys/kern: subr_pool.c src/sys/sys: pool.h Log Message: Add support for detecting use-after-frees in KASAN. We poison each freed buffer, any subsequent read or write will be de

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

2018-12-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 16 10:42:32 UTC 2018 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Explicitly disable ALTINST on VIA, in case it isn't disabled by default already (the 'VIA cpu backdoor'). To generate a diff of this commit

CVS commit: src

2018-12-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 15 13:39:43 UTC 2018 Modified Files: src/lib/libnvmm: libnvmm.3 libnvmm.c nvmm.h src/sys/dev/nvmm: nvmm.c nvmm_internal.h nvmm_ioctl.h Log Message: Invert the mapping logic. Until now, the "owner" of the memory was

CVS commit: src/lib/libnvmm

2018-12-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 15 13:09:02 UTC 2018 Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Two changes: - Fix the I/O Assist, for INS* it is RDI and not RSI, and the register gets updated regardless of the REP prefix. - Fill in

<    1   2   3   4   5   6   7   8   9   10   >