git: nvmm: Clarify state handling

Aaron LI aly at
Tue Jul 20 16:30:28 PDT 2021

commit a5120bfadfad0de9935ab56fe964d81273e72e37
Author: Aaron LI <aly at>
Date:   Sat Jul 3 11:16:33 2021 +0800

    nvmm: Clarify state handling
    * Make a clear distinction between global host state and per-cpu host
      state.  The former gets saved in a global structure, while the latter
      stays in the per-cpu structure.
    * Make the host XCR0 part of the global host state, and stop using
      rdxcr() in each world switch because it's unnecessary.

Summary of changes:
 sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 82 +++++++++++++++++++--------------
 sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 74 +++++++++++++++++------------
 2 files changed, 92 insertions(+), 64 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list