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

2021-05-23 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun May 23 08:59:08 UTC 2021 Modified Files: src/sys/arch/amd64/amd64: db_disasm.c Log Message: ddb/amd64: Don't go out of the way to detect invalid addresses. db_disasm had logic to detect invalid addresses before trying to d

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

2021-01-24 Thread Simon Burge
Module Name:src Committed By: simonb Date: Sun Jan 24 14:17:11 UTC 2021 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Fix a tyop in a comment. To generate a diff of this commit: cvs rdiff -u -r1.357 -r1.358 src/sys/arch/amd64/amd64/machdep.c Please no

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

2020-11-20 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Fri Nov 20 17:44:56 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/sys/arch/amd64/amd64/netbsd32_machd

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

2020-09-06 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Sep 7 00:47:27 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: adjust some fallback code to be slightly less ugly and avoid upsetting GCC 9. To generate a diff of this commit: cvs rdiff -u -r1.356 -r1

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 src/sys/arch/amd64/amd64/spl

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

2020-06-21 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Sun Jun 21 16:57:18 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S Log Message: On amd64, Xen PV calls syscalls and traps with events enabled. Disable events on entry to be safe. It should have been mostl

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

2020-06-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 6 07:03:21 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: db_machdep.c Log Message: If the frame is not aligned, leave right away. This place probably needs to be revisited, because %rbp could easily contain garbage. R

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

2020-05-27 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed May 27 20:48:43 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S Log Message: - mismatched END pointed out by maxv@ - ditch the frame, tracer should be able to deal without it in leaf on x86_64 To generate a diff of

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

2020-05-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 20 18:52:48 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S Log Message: this is kmsan To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/arch/amd64/amd64/cpufunc.S Please note that diffs a

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

2020-05-20 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed May 20 18:39:25 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S Log Message: Deal with KMSAN fussiness. Pointed out by msaitoh@. To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/arch/amd64/amd6

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

2020-05-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Tue May 19 21:54:10 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S Log Message: xen needs the TSC funcs too To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/arch/amd64/amd64/cpufunc.S Please note

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

2020-05-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun May 17 12:11:11 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: comments To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sys/arch/amd64/amd64/spl.S Please note that diffs are not public d

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

2020-05-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 14 16:57:53 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: db_machdep.c Log Message: Don't even try to go past a syscall. Fixes severe panic recursions in KUBSAN. To generate a diff of this commit: cvs rdiff -u -r1.6 -

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

2020-05-08 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri May 8 21:58:03 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S Log Message: cpu_counter: only need to clear %eax (zero extends). To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/arch/amd64/amd6

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

2020-05-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 5 06:32:43 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Fix KASAN, init_xen_early must be called after kasan_early_init. To generate a diff of this commit: cvs rdiff -u -r1.207 -r1.208 src/sys/

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

2020-05-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat May 2 19:01:08 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Fix build without XEN To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/sys/arch/amd64/amd64/locore.S Please note

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

2020-05-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat May 2 11:12:50 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: Remove unused. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/arch/amd64/amd64/spl.S Please note that diffs are not

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

2020-05-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 1 07:03:02 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Explicitly align to 8 bytes, found by kUBSan. Reported-by: syzbot+f1e1561ed739db869...@syzkaller.appspotmail.com To generate a diff of t

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

2020-04-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Apr 30 17:21:12 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: The labels are already global, drop unused. To generate a diff of this commit: cvs rdiff -u -r1.203 -r1.204 src/sys/arch/amd64/amd64/loco

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

2020-04-27 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Mon Apr 27 16:55:50 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Limit the amount of code in TEXT_USER_BEGIN/TEXT_USER_END for hypervisor_pvhvm_callback, for the benefit of SVS. Suggested by maxv@ To

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

2020-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Apr 26 14:07:43 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Put the template functions in the rodata section; they get hotpatched into other places, but never execute directly. To generate a diff o

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

2020-04-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Apr 23 16:16:15 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: use shortcut variables for readability. To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.134 src/sys/arch/amd64/

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

2020-02-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Feb 29 15:00:28 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: db_interface.c Log Message: Fix boot -c or -d by avoiding ipi handling before the vector is initialized. To generate a diff of this commit: cvs rdiff -u -r

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

2020-01-13 Thread Andrew Doran
Module Name:src Committed By: ad Date: Mon Jan 13 11:40:15 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: It looks like Xen cpu_hatch() calls cpu_switchto() with prevlwp=NULL, instead of calling idle_loop() directly. I can't test a change to cpu_

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

2019-12-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Dec 15 02:58:22 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Fix typo that caused two instructions to be commented out Oddly, that did not break booting. To generate a diff of this commit: cvs rdi

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

2019-12-13 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Dec 13 20:14:25 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Break the global uvm_pageqlock into a per-page identity lock and a private lock for use of the pagedaemon policy code. Discussed on tech-ke

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

2019-12-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 7 10:19:35 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Panic instead of printf, same as syscall. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/arch/amd64/amd64/amd6

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

2019-03-07 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Thu Mar 7 10:16:07 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Use IDTVEC instead of NENTRY for handle_hyperv_hypercall. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/sys/arch/am

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

2018-12-24 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Dec 24 21:48:53 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: kobj_machdep.c Log Message: Treat R_X86_64_PLT32 relocation as R_X86_64_PC32 for binutils-2.31 See: https://lore.kernel.org/patchwork/patch/892629/ To gene

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

2018-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 11 10:58:40 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Fix stack info leak. There is a big padding in struct sigframe_siginfo. [ 224.006287] kleak: Possible leak in copyout: [len=920, leaked=

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

2018-10-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 27 06:35:54 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c Log Message: Rename kasan_shadow_fill, remove one check in it, and inline it. Remove the use-after-scope code for now, because our GCC does not support th

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

2018-10-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 27 06:06:31 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c Log Message: Remove functions that aren't supposed to be used. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/amd64/asan

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

2018-09-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Sep 24 05:47:33 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c Log Message: Don't go beyond start(). To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/amd64/amd64/asan.c Please note that diff

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

2018-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 8 12:40:17 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: db_disasm.c Log Message: Work around dumb KASSERT in vtopte(), the PTE area can now be above the MAIN area. I guess the KASSERT should be removed because it does

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

2018-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 23 11:56:10 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c Log Message: Improve the detection on global variables, no need to round up. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/am

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

2018-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 22 17:25:02 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c Log Message: Unwind the stack on error, to get the full path that led to the illegal access. Example of output: kASan: Unauthorized Access In 0x8

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

2018-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 22 17:04:36 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c spl.S Log Message: Explicitly unpoison the stack when entering a softint. Softints are the only place where we "discard" a part of the stack: we may have

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

2018-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 22 09:11:47 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: asan.c Log Message: Fix the computation in kasan_shadow_map, we may need one more page because of the rounddown. To generate a diff of this commit: cvs rdiff -

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

2018-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 12 06:11:47 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S genassym.cf Log Message: Eliminate the only ASM reference to VM_MIN_KERNEL_ADDRESS. Rename the value to VM_SPACE_SEP_HIGH32, it is now the highest 3

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

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:58:00 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: prekern.c Log Message: Don't forget to call init_slotspace when we're booted via the prekern. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/s

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

2018-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 9 18:52:04 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Don't push/pop %rdx, we don't care about preserving its value. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/sys/ar

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

2018-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 9 18:43:05 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Small optimization: don't execute the Meltdown/SpectreV2 cswitch code if we're leaving a softint. We were executing the softint with the LW

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

2018-06-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 20 11:45:25 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Put these arrays in .rodata, they aren't supposed to be executable. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys

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

2018-05-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 25 15:33:56 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: When the previous contrext is in kernel mode we are not guaranteed to have a 16-byte-aligned stack pointer, so align it. That's what th

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

2018-04-23 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Mon Apr 23 22:53:04 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Adjust Xsyscall_svs to not use movq for 64bit immediates either. To generate a diff of this commit: cvs rdiff -u -r1.164 -r1.165 src/sys

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

2018-04-21 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Sat Apr 21 23:25:01 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Do not use movq for loading arbitrary 64bit immediates. The ISA restricts it to 32bit immediates. To generate a diff of this commit: cvs

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

2018-04-02 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Mon Apr 2 22:29:33 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: typo To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/arch/amd64/amd64/spl.S Please note that diffs are not public

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

2018-04-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Apr 2 20:54:47 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: use the right end macro: IDTVEC_END(name) instead of END(Xname) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/ar

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

2018-03-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Mar 30 10:01:36 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: genassym.cf Log Message: Fix warning when compiling Xen; FLAT_RING3_CS64 is defined in a child of xen.h, which is already included in genassym.cf. So don't redef

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

2018-03-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Mar 30 09:53:08 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Add #ifndef XEN, xen doesn't have speculation_barrier. To generate a diff of this commit: cvs rdiff -u -r1.162 -r1.163 src/sys/arch/amd64

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

2018-03-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Mar 28 19:56:40 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: The call to svs_lwp_switch can clobber %rdi/%rsi, so restore them before calling speculation_barrier. To generate a diff of this commit:

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

2018-03-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 20 18:27:58 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S Log Message: (Re)Fix handling of segment register faults. My previous attempt did fix faults occuring when reloading %es/%ds/%fs/%gs, but i

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

2018-03-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 20 14:26:49 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S Log Message: Remove the sysretq fault handler. It is broken with SVS, and not really needed anyway. Initially I had added it so that if suc

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

2018-03-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Mar 17 17:12:39 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Add missing opt_svs.h. To generate a diff of this commit: cvs rdiff -u -r1.301 -r1.302 src/sys/arch/amd64/amd64/machdep.c Please note t

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

2018-03-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Mar 16 08:48:34 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: db_machdep.c vector.S Log Message: Rename "handle_" -> "Xhandle_", and add the function names (introduced by SVS) in db_machdep.c. Should fix the DDB part of PR

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

2018-02-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 25 13:09:34 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Mmh. We shouldn't read %cr2 here. %cr2 is initialized by the CPU only during page faults (T_PAGEFLT), so here we're reading a value that come

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

2018-02-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 25 12:37:16 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S trap.c Log Message: Fix handling of segment register faults when running with SVS. The behavior is changed also in the non-SVS case. I've

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

2018-02-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 25 11:57:44 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Ah. Don't use NENTRY() to declare check_swapgs, use LABEL() instead. NENTRY puts the code in the .text section, so the effect of TEXT_U

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

2018-02-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 25 08:28:55 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Replace %rax -> %rdi, so that check_swapgs clobbers only one register. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35

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

2018-02-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 25 08:09:07 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: There are two places where we reload %gs: * In setusergs. Here we can't fault. So we don't need to handle this case. * In intrfa

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

2018-02-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 24 17:12:10 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Use %rax instead of %r15 in the non-SVS case, to reduce the diff against SVS. In SVS we use %rax instead of %r15 because the following inst

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

2018-02-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 22 14:57:11 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Adapt previous; put #ifdef SVS around the declaration directly. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/sys/a

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

2018-02-22 Thread Martin Husemann
Module Name:src Committed By: martin Date: Thu Feb 22 14:08:48 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Protect the SVS part of SYSCALL_ENTRY by #ifdef SVS to make non-SVS kernels compile again. To generate a diff of this commit: cvs rdiff

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

2018-02-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 22 10:26:32 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Mmh, add #ifdef SVS around svs_init(). To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300 src/sys/arch/amd64/amd64/machdep.

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

2018-02-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 22 08:36:31 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Revert all my latest changes, and restore this file back to how it was in rev1.24. I wanted to replace the functions dynamically for SV

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

2018-02-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 18 14:32:31 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Pass the name of the function as argument in SWAPGS_HANDLER. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/ar

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 21:05:58 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Declare check_swapgs in an ASM macro. No real functional change. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sy

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 20:59:14 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Use ASM macros for the rest of the entry points. No real functional change. Now the format of the entry points is: .macro TRA

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 20:47:04 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Declare and use TRAP_ENTRY_POINT_DNA. This time we don't give an is_ztrap argument, because the macro is tied to the entry point, and i

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 20:41:57 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Now that [Z]TRAP and [Z]TRAP_NJ are identical, put back the INTRENTRY jmp .Lalltraps_noentry instructions for Xen

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 20:33:28 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Declare and use TRAP_ENTRY_POINT_SPUR. No real functional change. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/s

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 20:28:18 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Declare and use TRAP_ENTRY_POINT_FPU. No real functional change. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sy

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 20:22:05 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Start using ASM macros to define the trap entry points. No real functional change. To generate a diff of this commit: cvs rdiff -u -r

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

2018-02-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 17 19:26:20 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Define legacy_stubs in a macro. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/arch/amd64/amd64/vector.S Please n

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

2018-02-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Feb 10 03:55:59 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: db_interface.c Log Message: make it compile without MULTIPROCESSOR (xen?) To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/amd64/

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

2018-02-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 9 08:54:12 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Don't restore segment registers when leaving NMIs. In nmitrap (and the functions it later calls), we are not allowing the trap frame to

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

2018-02-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 9 08:42:26 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Define INTRSTUB_ARRAY, simplifies a lot. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/arch/amd64/amd64/vector.S

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

2018-02-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 4 17:03:21 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Add a TODO list for SVS. To generate a diff of this commit: cvs rdiff -u -r1.296 -r1.297 src/sys/arch/amd64/amd64/machdep.c Please note

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

2018-01-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 27 17:54:13 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Use testb, faster. To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150 src/sys/arch/amd64/amd64/locore.S Please note that di

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

2018-01-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jan 26 14:38:46 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Zero out the scratch value in the UTLS page during context switches. We temporarily put %rax there when processing syscalls, and we wouldn

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

2018-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 22 08:14:09 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Ah, remove duplicate SVS_LEAVE. Fixes 32bit binaries. While here remove duplicate 'cli', but that's harmless. To generate a diff of this

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

2018-01-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 21 16:51:15 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: db_disasm.c Log Message: CID-1364351: Fix uninitialized warnings. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/arch/amd64/amd64/db

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

2018-01-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 21 08:20:31 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Make it possible for SVS to map in the user page tables a 4K kernel page contained in a 2MB large page. Will be used soon. To generate a

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

2018-01-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 14:08:08 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Start with .text not to inherit the last section of amd64_trap.S, and remove outdated #define. To generate a diff of this commit: cvs rdi

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

2018-01-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 13:45:15 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Eliminate a '.text'. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/amd64/amd64_trap.S Please note

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

2018-01-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 13:42:07 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S machdep.c Log Message: Don't declare exceptions[] with IDTVEC, it's an array, not a function. Rename it to x86_exceptions[], and move it to .rodata.

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

2018-01-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 08:30:53 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S trap.c Log Message: Fix the double-fault handler. We're executing on ist1 and must not jump out of it, so don't enable interrupts. And use the SVS_*

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

2018-01-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 07:43:28 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Improve two comments and a KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.291 -r1.292 src/sys/arch/amd64/amd64/machdep.c

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

2018-01-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jan 12 09:12:02 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Split svs_page_add in two, one half will be used for other purposes, and update a comment. To generate a diff of this commit: cvs rdiff

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

2018-01-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jan 10 20:51:11 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Restrict the check: SMAP faults are always protection violations, as the SDM points out, so make sure we have PGEX_P. This way NULL dereferen

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

2018-01-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 7 16:47:22 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: genassym.cf Log Message: make this compile again To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/arch/amd64/amd64/genassym.cf Please

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

2018-01-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 6 08:44:01 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Mmh, I made a mistake in r1.10 - I forgot to update this function call. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

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

2018-01-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 2 18:54:26 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Stop sharing the double-fault stack. It is embedded in .data, and we won't want that in the future. This has always been wrong anyway, eve

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

2018-01-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 2 18:41:14 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Use decimal numbering - hex is just misleading -, use ZTRAP_NJ for NMIs, and declare intrspurious independently. To generate a diff o

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

2017-12-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 9 00:52:41 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: adjust for new hexdump signature To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/sys/arch/amd64/amd64/trap.c Pleas

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

2017-12-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Dec 8 21:52:21 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: make the TRAP_SIGDEBUG code less intrusive. To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108 src/sys/arch/amd64/amd64/tr

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

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 23:13:17 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Put back the old syscall glue for netbsd32 binaries, and also TRAP_SIGDEBUG while I am at it. To generate a diff of this commit: cvs rd

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

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 16:22:22 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Keep fs/gs the same for the signal context; otherwise calling things like __lwp_getprivate_fast() from a signal handler (that

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

2017-12-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Dec 7 03:25:51 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Attempt to clarify panic messages for null pointer access/execute. To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src

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

2017-12-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 2 15:36:24 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Remove a piece of COMPAT_13, that I mistakenly didn't commit three hours ago (in my change to drop COMPAT_13 on amd64). To gene

  1   2   3   >