@samitouri / QOSamiQemu / commits / 3f7e6348b0

whpx: i386: warn on unsupported MSR access instead of failing silently

Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260228214704.19048-5-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Mohamed Mediouni committed Feb 28, 2026 at 22:47 UTC 3f7e6348b071c6384e00f45462d75b7a74ee9c05
1 file changed +3
target/i386/whpx/whpx-all.c
+3
@@ -1819,6 +1819,9 @@ int whpx_vcpu_run(CPUState *cpu)
1819 reg_count = vcpu->exit_ctx.MsrAccess.AccessInfo.IsWrite ?
1820 1 : 3;
1821
1822 + warn_report("WHPX: Unsupported MSR access (0x%x), IsWrite=%i",
1823 + vcpu->exit_ctx.MsrAccess.MsrNumber, vcpu->exit_ctx.MsrAccess.AccessInfo.IsWrite);
1824 +
1825 hr = whp_dispatch.WHvSetVirtualProcessorRegisters(
1826 whpx->partition,
1827 cpu->cpu_index,