NetBSD/sys/dev/nvmm
riastradh 8f18579d5d x86: Split most of pmap.h into pmap_private.h or vmparam.h.
This way pmap.h only contains the MD definition of the MI pmap(9)
API, which loads of things in the kernel rely on, so changing x86
pmap internals no longer requires recompiling the entire kernel every
time.

Callers needing these internals must now use machine/pmap_private.h.
Note: This is not x86/pmap_private.h because it contains three parts:

1. CPU-specific (different for i386/amd64) definitions used by...

2. common definitions, including Xenisms like xpmap_ptetomach,
   further used by...

3. more CPU-specific inlines for pmap_pte_* operations

So {amd64,i386}/pmap_private.h defines 1, includes x86/pmap_private.h
for 2, and then defines 3.  Maybe we should split that out into a new
pmap_pte.h to reduce this trouble.

No functional change intended, other than that some .c files must
include machine/pmap_private.h when previously uvm/uvm_pmap.h
polluted the namespace with pmap internals.

Note: This migrates part of i386/pmap.h into i386/vmparam.h --
specifically the parts that are needed for several constants defined
in vmparam.h:

VM_MAXUSER_ADDRESS
VM_MAX_ADDRESS
VM_MAX_KERNEL_ADDRESS
VM_MIN_KERNEL_ADDRESS

Since i386 needs PDP_SIZE in vmparam.h, I added it there on amd64
too, just to keep things parallel.
2022-08-20 23:48:50 +00:00
..
x86 x86: Split most of pmap.h into pmap_private.h or vmparam.h. 2022-08-20 23:48:50 +00:00
Makefile
files.nvmm
nvmm.c Only detach the cfdriver if we just attached it. 2022-07-07 23:50:33 +00:00
nvmm.h Implement nvmm_vcpu::stop, a race-free exit from nvmm_vcpu_run() without 2021-03-26 15:59:53 +00:00
nvmm_internal.h Implement nvmm_vcpu::stop, a race-free exit from nvmm_vcpu_run() without 2021-03-26 15:59:53 +00:00
nvmm_ioctl.h