From d544dd2fe8bb94d3b007bdec12dceebf2b7bb9ac Mon Sep 17 00:00:00 2001 From: Andrew Daugherity Date: Thu, 5 Dec 2019 17:17:21 -0600 Subject: [PATCH] emulate Intel Silicon Debug MSR OpenBSD since 6.1 reads this register and attempts to disable the debug interface if enabled. Ref: https://github.com/openbsd/src/commit/61bf105 Returning 0 will satifsy OpenBSD guests that this feature is disabled and allow running xhyve without '-w'. --- include/xhyve/support/specialreg.h | 1 + src/xmsr.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/xhyve/support/specialreg.h b/include/xhyve/support/specialreg.h index 70a6b44..54c1436 100644 --- a/include/xhyve/support/specialreg.h +++ b/include/xhyve/support/specialreg.h @@ -451,6 +451,7 @@ #define MSR_DRAM_ENERGY_STATUS 0x619 #define MSR_PP0_ENERGY_STATUS 0x639 #define MSR_PP1_ENERGY_STATUS 0x641 +#define MSR_IA32_DEBUG_INTERFACE 0xc80 /* * VMX MSRs diff --git a/src/xmsr.c b/src/xmsr.c index 79424e1..b1e48c9 100644 --- a/src/xmsr.c +++ b/src/xmsr.c @@ -66,6 +66,7 @@ emulate_rdmsr(UNUSED int vcpu, uint32_t num, uint64_t *val) case MSR_PP0_ENERGY_STATUS: case MSR_PP1_ENERGY_STATUS: case MSR_DRAM_ENERGY_STATUS: + case MSR_IA32_DEBUG_INTERFACE: *val = 0; break; case MSR_RAPL_POWER_UNIT: