git: nvmm: Optimize DB regs save & restore
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:35 PDT 2021
commit b3f7271ce8a6736910e3e66d2fff5ddf4bd2c570
Author: Aaron LI <aly at aaronly.me>
Date: Sun Jul 18 16:32:04 2021 +0800
nvmm: Optimize DB regs save & restore
Check PCB_DBREGS flag before save/restore DB regs. If the current
thread doesn't use DB regs, then no need to save & restore them.
Meanwhile, revert to use x86_dbregs_save() and x86_dbregs_restore()
for the NetBSD code.
This is a partial revert of commit:
"nvmm: Save host DB regs in per-cpu structure"
Summary of changes:
sys/dev/virtual/nvmm/x86/nvmm_x86.h | 64 ++++++++++++++++++++++++-------------
1 file changed, 42 insertions(+), 22 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b3f7271ce8a6736910e3e66d2fff5ddf4bd2c570
--
DragonFly BSD source repository
More information about the Commits
mailing list