git: kernel - Do not use rdtsc() in the spinlock loop when virtualized

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 11 12:00:55 PDT 2020


commit 4badc135851928257a548aff8370d83c1bcde44d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 11 11:55:57 2020 -0700

    kernel - Do not use rdtsc() in the spinlock loop when virtualized
    
    * When running as a guest, do not use rdtsc() in the spinlock loop
      as numerous HVM subsystems will trap-out on the instruction.
    
    Reported-by: mjg

Summary of changes:
 sys/kern/kern_spinlock.c | 30 ++++++++++++++++++++++++++----
 sys/sys/indefinite.h     |  2 ++
 sys/sys/indefinite2.h    | 45 +++++++++++++++++++++++++++++++++++----------
 3 files changed, 63 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4badc135851928257a548aff8370d83c1bcde44d


-- 
DragonFly BSD source repository


More information about the Commits mailing list