* [PATCH] target/i386: report hyper-v crash info for KVM guests
@ 2026-12-01 14:01 marcandre.lureau
2026-12-01 14:13 ` Daniel P. Berrangé
0 siblings, 1 reply; 2+ messages in thread
From: marcandre.lureau @ 2026-12-01 14:01 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, Marc-André Lureau, Zhao Liu
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Commit 56d89db2cfd8 made the hyper-v block part of the else branch of
the SEV check. It is therfore only reached when KVM is disabled, so KVM
guests always report GUEST_PANICKED without the crash MSR details.
Fixes: 56d89db2cfd8 ("target/i386: convert SEV-ES termination requests to guest panic events")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
target/i386/cpu-system.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu-system.c b/target/i386/cpu-system.c
index c03cece7bd89..216734bbb3a5 100644
--- a/target/i386/cpu-system.c
+++ b/target/i386/cpu-system.c
@@ -292,10 +292,10 @@ GuestPanicInformation *x86_cpu_get_crash_info(CPUState *cs)
warn_report("Hypervisor did not provide any data for SEV-ES termination");
}
}
- } else
+ }
#endif
- if (hyperv_feat_enabled(cpu, HYPERV_FEAT_CRASH)) {
+ if (!panic_info && hyperv_feat_enabled(cpu, HYPERV_FEAT_CRASH)) {
panic_info = g_new0(GuestPanicInformation, 1);
panic_info->type = GUEST_PANIC_INFORMATION_TYPE_HYPER_V;
--
2.56.1.663.g77904e546de3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] target/i386: report hyper-v crash info for KVM guests
2026-12-01 14:01 [PATCH] target/i386: report hyper-v crash info for KVM guests marcandre.lureau
@ 2026-12-01 14:13 ` Daniel P. Berrangé
0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2026-12-01 14:13 UTC (permalink / raw)
To: marcandre.lureau; +Cc: qemu-devel, pbonzini, Zhao Liu
On Tue, Dec 01, 2026 at 06:01:56PM +0400, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Commit 56d89db2cfd8 made the hyper-v block part of the else branch of
> the SEV check. It is therfore only reached when KVM is disabled, so KVM
> guests always report GUEST_PANICKED without the crash MSR details.
>
> Fixes: 56d89db2cfd8 ("target/i386: convert SEV-ES termination requests to guest panic events")
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> target/i386/cpu-system.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 14:01 [PATCH] target/i386: report hyper-v crash info for KVM guests marcandre.lureau
2026-12-01 14:13 ` Daniel P. Berrangé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.