git: nvmm: Port to DragonFly #19: IPI cross-cpu calls
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:19 PDT 2021
commit 9b670daefdb6235ca78ddab98a9a01ca430ab29f
Author: Aaron LI <aly at aaronly.me>
Date: Sat May 22 16:28:48 2021 +0800
nvmm: Port to DragonFly #19: IPI cross-cpu calls
Replace NetBSD xcall(9) API by our lwkt_send_ipiq() and
lwkt_send_ipiq_mask() to unicast/broadcast a function call to one/all
CPUs.
In DragonFly, a normal kernel thread won't migrate to another CPU,
so no need to implement NetBSD's curlwp_bind() and curlwp_bindx().
Summary of changes:
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 18 ++++++++++++++----
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 31 ++++++++++++++++++++++++++-----
2 files changed, 40 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9b670daefdb6235ca78ddab98a9a01ca430ab29f
--
DragonFly BSD source repository
More information about the Commits
mailing list