git: nvmm(4): Optimize the WCR8 intercept on SVM
Aaron LI
aly at crater.dragonflybsd.org
Tue Sep 1 06:09:01 PDT 2026
commit f809bb0e5f9a9519193dc8b1b3f61f4485ed0228
Author: Aaron LI <aly at aaronly.me>
Date: Sun Aug 30 14:09:13 2026 +0800
nvmm(4): Optimize the WCR8 intercept on SVM
Establish it only on demand, not by default. This saves one branch
in svm_exit_wcr8(), which is a bit of a hot path on Windows guests.
Add a unit test for it.
Obtained-from: NVMM Reference Implementation
Summary of changes:
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 42 +--
test/testcases/libnvmm/Makefile | 2 +-
test/testcases/libnvmm/dfregress.run | 1 +
test/testcases/libnvmm/{h_io_assist.c => h_misc.c} | 291 +++++++++------------
.../libnvmm/{h_io_assist => h_misc}/Makefile | 4 +-
.../common.h => testcases/libnvmm/h_misc_asm.S} | 29 +-
6 files changed, 163 insertions(+), 206 deletions(-)
copy test/testcases/libnvmm/{h_io_assist.c => h_misc.c} (61%)
copy test/testcases/libnvmm/{h_io_assist => h_misc}/Makefile (61%)
copy test/{nvmm/demo/toyvirt/common.h => testcases/libnvmm/h_misc_asm.S} (73%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f809bb0e5f9a9519193dc8b1b3f61f4485ed0228
--
DragonFly BSD source repository
More information about the Commits
mailing list