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

2023-11-06 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Nov 6 17:02:17 UTC 2023 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm_x86_vmx: vmx_vmptrst: Sprinkle __diagused to fix clang !DIAGNOSTIC build To generate a diff of this commit: cvs rdiff -u -r1.85

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

2023-11-06 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Nov 6 17:02:17 UTC 2023 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm_x86_vmx: vmx_vmptrst: Sprinkle __diagused to fix clang !DIAGNOSTIC build To generate a diff of this commit: cvs rdiff -u -r1.85

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

2023-02-22 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Feb 23 02:54:02 UTC 2023 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm: Filter CR4 bits on x86 SVM (AMD). In particular, prohibit PKE, Protection Key Enable, which requires some additional

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

2023-02-22 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Feb 23 02:54:02 UTC 2023 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm: Filter CR4 bits on x86 SVM (AMD). In particular, prohibit PKE, Protection Key Enable, which requires some additional

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

2022-09-15 Thread Reinoud Zandijk
Hi Taylor, Thanks for updating NVMM! Would it be a good idea to sync our code with DragonBSDs? AFAICS they kept the code compiling for NetBSD too. To have a common code base? With regards, Reinoud On Tue, Sep 13, 2022 at 08:10:04PM +, Taylor R Campbell wrote: > Module Name: src > Committed

CVS commit: src/sys/dev/nvmm

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 20:10:04 UTC 2022 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm(4): Add suspend/resume support. New MD nvmm_impl callbacks: -

CVS commit: src/sys/dev/nvmm

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 20:10:04 UTC 2022 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm(4): Add suspend/resume support. New MD nvmm_impl callbacks: -

CVS commit: src/sys/dev/nvmm

2022-07-07 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Thu Jul 7 23:50:34 UTC 2022 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: Only detach the cfdriver if we just attached it. Report errno in message when fail to attach cdevsw To generate a diff of this commit: cvs

CVS commit: src/sys/dev/nvmm

2022-07-07 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Thu Jul 7 23:50:34 UTC 2022 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: Only detach the cfdriver if we just attached it. Report errno in message when fail to attach cdevsw To generate a diff of this commit: cvs

CVS commit: src/sys/dev/nvmm

2022-07-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 6 13:10:49 UTC 2022 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm(4): Fix typo in previous. Didn't trip over this in my test build because nvmm is a module, oops. To generate a diff of this commit: cvs

CVS commit: src/sys/dev/nvmm

2022-07-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 6 13:10:49 UTC 2022 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm(4): Fix typo in previous. Didn't trip over this in my test build because nvmm is a module, oops. To generate a diff of this commit: cvs

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

2022-05-13 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Fri May 13 19:34:47 UTC 2022 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm_x86_vmx.c: remove an #ifdef DIAGNOSTIC, it is wrong since r1.66 To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83

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

2022-05-13 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Fri May 13 19:34:47 UTC 2022 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm_x86_vmx.c: remove an #ifdef DIAGNOSTIC, it is wrong since r1.66 To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83

CVS commit: src/sys/dev/nvmm

2021-04-12 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Apr 12 09:22:58 UTC 2021 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: be sure to only access vcpu if it was initialised. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/nvmm/nvmm.c Please

CVS commit: src/sys/dev/nvmm

2021-04-12 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Apr 12 09:22:58 UTC 2021 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: be sure to only access vcpu if it was initialised. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/nvmm/nvmm.c Please

CVS commit: src/sys/dev/nvmm

2021-03-26 Thread Reinoud Zandijk
Module Name:src Committed By: reinoud Date: Fri Mar 26 15:59:53 UTC 2021 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Implement nvmm_vcpu::stop, a race-free exit from

CVS commit: src/sys/dev/nvmm

2021-03-26 Thread Reinoud Zandijk
Module Name:src Committed By: reinoud Date: Fri Mar 26 15:59:53 UTC 2021 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Implement nvmm_vcpu::stop, a race-free exit from

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/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
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
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
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/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/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/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/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/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/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/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/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/dev/nvmm

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 08:18:37 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h Log Message: Put the few x86-specific structures under #ifdef __x86_64__, for clarity. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/nvmm

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 08:18:37 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h Log Message: Put the few x86-specific structures under #ifdef __x86_64__, for clarity. To generate a diff of this commit: cvs rdiff -u

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 06:56:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Switch to fpu_kern_enter/leave, to prevent clobbering, now that the kernel itself uses the fpu. To generate a diff of

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 06:56:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Switch to fpu_kern_enter/leave, to prevent clobbering, now that the kernel itself uses the fpu. To generate a diff of

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 06:36:38 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_svmfunc.S nvmm_x86_vmx.c nvmm_x86_vmxfunc.S Log Message: The TLB flush IPIs do not respect the IPL, so enforcing IPL_HIGH has no

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 06:36:38 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_svmfunc.S nvmm_x86_vmx.c nvmm_x86_vmxfunc.S Log Message: The TLB flush IPIs do not respect the IPL, so enforcing IPL_HIGH has no

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

2020-07-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 18 20:56:53 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Now that the IDT is per-CPU, it must be saved/restored on each CPU independently. To generate a diff of this commit: cvs rdiff -u

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

2020-07-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 18 20:56:53 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Now that the IDT is per-CPU, it must be saved/restored on each CPU independently. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/nvmm

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:09:55 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Print the backend name when attaching. To generate a diff of this

CVS commit: src/sys/dev/nvmm

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:09:55 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Print the backend name when attaching. To generate a diff of this

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

2020-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 18 16:31:15 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c Please note that diffs are

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

2020-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 18 16:31:15 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c Please note that diffs are

CVS commit: src/sys/dev/nvmm

2020-05-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun May 24 08:08:49 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Gather the conditions to return from the VCPU loops in

CVS commit: src/sys/dev/nvmm

2020-05-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun May 24 08:08:49 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Gather the conditions to return from the VCPU loops in

CVS commit: src/sys/dev/nvmm

2020-05-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 21 07:43:23 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: Complete rev1.26: reset nvmm_impl to NULL in nvmm_fini(). To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/nvmm/nvmm.c

  1   2   3   >