git: nvmm(4): Fix the outer VCPU loop
Aaron LI
aly at crater.dragonflybsd.org
Tue Sep 1 06:09:03 PDT 2026
commit a76742a2bcf565efe054e5ab5881bac9f84bd977
Author: Aaron LI <aly at aaronly.me>
Date: Sun Aug 30 23:17:18 2026 +0800
nvmm(4): Fix the outer VCPU loop
The outer VCPU loop can return to userland without entering the
inner VMX/SVM loop. The problem is, this leaves the exitstate
structure empty, which can cause Qemu to intermittently observe
an incorrect guest interrupt state.
Fix this by evaluating os_return_needed() after the inner loop
is guaranteed to have been entered.
Obtained-from: NVMM Reference Implementation
Summary of changes:
sys/dev/virtual/nvmm/nvmm.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a76742a2bcf565efe054e5ab5881bac9f84bd977
--
DragonFly BSD source repository
More information about the Commits
mailing list