Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-11 Thread Chavdar Ivanov
BTW, on a just-built 9.99.36, qemu-nvmm now works. However, it seems at least three times slower than before. Chavdar On Sat, 11 Jan 2020 at 20:59, Andrew Doran wrote: > > On Fri, Jan 10, 2020 at 06:56:29PM +, Andrew Doran wrote: > > > On Thu, Jan 09, 2020 at 05:46:13PM +0100, Maxime Villard

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-11 Thread Andrew Doran
On Fri, Jan 10, 2020 at 06:56:29PM +, Andrew Doran wrote: > On Thu, Jan 09, 2020 at 05:46:13PM +0100, Maxime Villard wrote: > > > This FPU issue should be fixed in the latest nvmm_x86_vmx.c, we still have > > STTS/CLTS (not needed but for debugging) as part of context switches, and > > when o

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-10 Thread Andrew Doran
On Thu, Jan 09, 2020 at 05:46:13PM +0100, Maxime Villard wrote: > This FPU issue should be fixed in the latest nvmm_x86_vmx.c, we still have > STTS/CLTS (not needed but for debugging) as part of context switches, and > when overhauling the FPU code I overlooked that VMX needs special CR0_TS > care

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-09 Thread Maxime Villard
Le 08/01/2020 à 22:50, Andrew Doran a écrit : On Tue, Jan 07, 2020 at 09:39:22AM +0100, Maxime Villard wrote: Module Name:src Committed By: ad Date: Sat Jan 4 22:49:20 UTC 2020 Modified Files: src/sys/arch/x86/include: pmap.h pmap_pv.h src/sys/arch/x86/x86: p

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-08 Thread Andrew Doran
On Tue, Jan 07, 2020 at 09:39:22AM +0100, Maxime Villard wrote: > > Module Name:src > > Committed By: ad > > Date: Sat Jan 4 22:49:20 UTC 2020 > > > > Modified Files: > > src/sys/arch/x86/include: pmap.h pmap_pv.h > > src/sys/arch/x86/x86: pmap.c > > src/s

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-07 Thread Andrew Doran
On Tue, Jan 07, 2020 at 09:39:22AM +0100, Maxime Villard wrote: > You can test with this on an Intel CPU: > > # modload nvmm > # /usr/tests/lib/libnvmm/./h_mem_assist > > This currently gives random crashes. I'll dig into it. There were also reports of NVMM failures on the lists bu

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-07 Thread Andrew Doran
On Tue, Jan 07, 2020 at 09:50:42AM +0100, Maxime Villard wrote: > Also unrelated remark: > > + kmutex_t pm_lock/* locks for pm_objs */ > + __aligned(64); /* give lock own cache line */ > > x86 CPUs will soon have 128-byte cache lines, and to ease the upgr

Re: [x86 pmap changes] CVS commit: src/sys/arch

2020-01-07 Thread Maxime Villard
Le 07/01/2020 à 09:39, Maxime Villard a écrit : Module Name:    src Committed By:   ad Date:   Sat Jan  4 22:49:20 UTC 2020 Modified Files:     src/sys/arch/x86/include: pmap.h pmap_pv.h     src/sys/arch/x86/x86: pmap.c     src/sys/arch/xen/x86: xen_pmap.c Log Message: x86 p

[x86 pmap changes] CVS commit: src/sys/arch

2020-01-07 Thread Maxime Villard
Module Name:src Committed By: ad Date: Sat Jan 4 22:49:20 UTC 2020 Modified Files: src/sys/arch/x86/include: pmap.h pmap_pv.h src/sys/arch/x86/x86: pmap.c src/sys/arch/xen/x86: xen_pmap.c Log Message: x86 pmap improvements, reducing system time during a b