git: kernel - Workaround qemu bug w/ MSR_IA32_ARCH_CAPABILITIES
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Aug 9 10:52:34 PDT 2021
commit 72953f3ec0211e11cc9081b06ce9f37e57681440
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Aug 9 10:45:53 2021 -0700
kernel - Workaround qemu bug w/ MSR_IA32_ARCH_CAPABILITIES
* qemu allows cpuid report that MSR_IA32_ARCH_CAPABILITIES exists, but
then fails to implement the MSR. This causes the kernel to panic
in early boot.
* Use rdmsr_safe() and report the non-working msr instead of panicing.
* Fixes qemu + DFly on some recent Intel cpus.
refs #3292
Summary of changes:
sys/platform/pc64/x86_64/identcpu.c | 24 ++++++++++++++++++------
sys/platform/pc64/x86_64/vm_machdep.c | 11 ++++++++++-
2 files changed, 28 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/72953f3ec0211e11cc9081b06ce9f37e57681440
--
DragonFly BSD source repository
More information about the Commits
mailing list