@samitouri / QOSamiQemu / commits / 77a5deba0d

whpx: i386: trace unsupported MSR accesses

Not actionable information for users, so stop having it displayed unconditionally. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Link: https://lore.kernel.org/r/20260327011152.4126-4-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Mohamed Mediouni committed Mar 27, 2026 at 02:11 UTC 77a5deba0d5ae7202c5b17cff278317538d28276
4 files changed +7 -2
meson.build
+1
@@ -3687,6 +3687,7 @@ if have_system or have_user
3687 'target/hppa',
3688 'target/i386',
3689 'target/i386/kvm',
3690 + 'target/i386/whpx',
3691 'target/loongarch',
3692 'target/mips/tcg',
3693 'target/ppc',
target/i386/whpx/trace-events new
+1
@@ -0,0 +1 @@
1 +whpx_unsupported_msr_access(uint32_t msr, int is_write) "WHPX: Unsupported MSR access (0x%x), IsWrite=%i"
target/i386/whpx/trace.h new
+2
@@ -0,0 +1,2 @@
1 +/* SPDX-License-Identifier: GPL-2.0-or-later */
2 +#include "trace/trace-target_i386_whpx.h"
target/i386/whpx/whpx-all.c
+3 -2
@@ -41,6 +41,7 @@
41 #include "emulate/x86_emu.h"
42 #include "emulate/x86_flags.h"
43 #include "emulate/x86_mmu.h"
44 +#include "trace.h"
45
46 #include <winhvplatform.h>
47
@@ -1921,8 +1922,8 @@ int whpx_vcpu_run(CPUState *cpu)
1922 1 : 3;
1923
1924 if (!is_known_msr) {
1924 - warn_report("WHPX: Unsupported MSR access (0x%x), IsWrite=%i",
1925 - vcpu->exit_ctx.MsrAccess.MsrNumber, vcpu->exit_ctx.MsrAccess.AccessInfo.IsWrite);
1925 + trace_whpx_unsupported_msr_access(vcpu->exit_ctx.MsrAccess.MsrNumber,
1926 + vcpu->exit_ctx.MsrAccess.AccessInfo.IsWrite);
1927 }
1928
1929 hr = whp_dispatch.WHvSetVirtualProcessorRegisters(