git: nvmm(4): Improve guest TSC handling

Aaron LI aly at crater.dragonflybsd.org
Fri Aug 7 00:23:38 PDT 2026


commit 9e1703d3e1e245c420f3ffcd92e57f0c6ad6b3a3
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Aug 6 12:35:59 2026 +0800

    nvmm(4): Improve guest TSC handling
    
    Don't skip updating TSC if the emulator set a zero value, which can
    happen if the emulator resets the VM.  In this case, we really want this
    to be applied.
    
    Meanwhile, rename 'gtsc_match' to 'gtsc_last'.
    
    Credit: Maxime Villard (m00nbsd)

Summary of changes:
 sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 18 ++++++++----------
 sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 18 ++++++++----------
 2 files changed, 16 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9e1703d3e1e245c420f3ffcd92e57f0c6ad6b3a3


-- 
DragonFly BSD source repository


More information about the Commits mailing list