git: nnvm - Move *_fpu_enter/leave inside the cli/sti
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:23 PDT 2021
commit 3042e1c3c65207e98573ac087d9f00cf8008f9eb
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Jun 28 23:04:31 2021 -0700
nnvm - Move *_fpu_enter/leave inside the cli/sti
* Move the host-to-guest and guest-to-host FP code inside the
hard interrupt disablement. The main reason this needs to
be done is that DragonFly's normal interrupt mechanism is
allowed to use the FP unit (using npxpush/npxpop).
In addition, interrupts will allow the 'interrupt thread' to
preempt the current kernel thread outside of a critical section.
And inside a critical section the interrupt still fires, but
just sets a flag.
* I don't want the host kernel dealing with guest FP state at all,
under any circumstances.
Summary of changes:
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 6 +++---
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3042e1c3c65207e98573ac087d9f00cf8008f9eb
--
DragonFly BSD source repository
More information about the Commits
mailing list