pmap: Implement pmap_npt_transform() for NVMM
authorAaron LI <aly@aaronly.me>
Sun, 6 Jun 2021 12:06:59 +0000 (20:06 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 20 Jul 2021 23:28:22 +0000 (07:28 +0800)
commitbb11cce638499f3152a08842a30640ee016c7b61
treeab3797cbae9dc58dff3c4f1cacd9bc3ab61d7b7a
parentacf17d808e15bcfc7c5691ad2af9ff367e875aa8
pmap: Implement pmap_npt_transform() for NVMM

This function will transform an initialized pmap structure for use by
NVMM's AMD SVM backend.

AMD's NPT (nested page table), aka RVI (rapid virtualization indexing)
implementation is more complete than Intel's EPT; it supports A/D bits
and uses the same bits positions as native x86 page tables.  So this
function is a simplified version of pmap_ept_transform().
sys/platform/pc64/include/pmap.h
sys/platform/pc64/x86_64/pmap.c
sys/vm/pmap.h