git: pmap: Add some API routines to help NVMM manage guest memory
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:23 PDT 2021
commit f9fa4782687346939b3ab65f7c6cbba9e6da5d56
Author: Aaron LI <aly at aaronly.me>
Date: Fri Jun 25 18:30:26 2021 +0800
pmap: Add some API routines to help NVMM manage guest memory
Add the following three routines for NVMM to use. NVMM can use these
routines to manipulate the cpumask for the pmap backing guest physical
memory.
* pmap_add_cpu()
* pmap_del_cpu()
* pmap_del_all_cpus()
NOTE: The scheduler might somtimes overload multiple vCPUs on the same
physical cpu, so operating is not quite as simple as calling
add_cpu/del_cpu in the core vmrun routines.
Credit to Matt Dillon
Summary of changes:
sys/platform/pc64/x86_64/pmap.c | 30 ++++++++++++++++++++++++++++++
sys/vm/pmap.h | 4 ++++
2 files changed, 34 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f9fa4782687346939b3ab65f7c6cbba9e6da5d56
--
DragonFly BSD source repository
More information about the Commits
mailing list