* [PATCH] docs/hyperv: fix misleading hv-crash shutdown description
@ 2026-07-01 12:21 marcandre.lureau
2026-07-01 13:40 ` Vitaly Kuznetsov
0 siblings, 1 reply; 2+ messages in thread
From: marcandre.lureau @ 2026-07-01 12:21 UTC (permalink / raw)
To: qemu-devel
Cc: vkuznets, Marc-André Lureau, Paolo Bonzini, Zhao Liu,
Pierrick Bouvier
From: Marc-André Lureau <marcandre.lureau@redhat.com>
The documentation stated that writing to HV_X64_MSR_CRASH_CTL
unconditionally causes the guest to shutdown. In reality, it triggers
qemu_system_guest_panicked() via KVM_SYSTEM_EVENT_CRASH and the
resulting action depends on the generic panic action policy
(-action panic=...), which defaults to shutdown.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
docs/system/i386/hyperv.rst | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/docs/system/i386/hyperv.rst b/docs/system/i386/hyperv.rst
index 1c1de77feb6..e1babffb0f9 100644
--- a/docs/system/i386/hyperv.rst
+++ b/docs/system/i386/hyperv.rst
@@ -71,8 +71,11 @@ Existing enlightenments
by the guest when it crashes, HV_X64_MSR_CRASH_P0..HV_X64_MSR_CRASH_P5 MSRs
contain additional crash information. This information is outputted in QEMU log
and through QAPI.
- Note: unlike under genuine Hyper-V, write to HV_X64_MSR_CRASH_CTL causes guest
- to shutdown. This effectively blocks crash dump generation by Windows.
+ Note: unlike under genuine Hyper-V, write to HV_X64_MSR_CRASH_CTL triggers
+ ``qemu_system_guest_panicked()`` via ``KVM_SYSTEM_EVENT_CRASH`` and the
+ resulting action depends on the ``-action panic=...`` policy (default:
+ ``shutdown``). With the default action, this effectively blocks crash dump
+ generation by Windows.
``hv-time``
Enables two Hyper-V-specific clocksources available to the guest: MSR-based
@@ -304,8 +307,9 @@ currently implemented Hyper-V enlightenments with the following exceptions:
``hv-version-id-snumber`` can be left unchanged, guests are not supposed to
behave differently when different Hyper-V version is presented to them.
- ``hv-crash`` must only be enabled if the crash information is consumed via
- QAPI by higher levels of the virtualization stack. Enabling this feature
- effectively prevents Windows from creating dumps upon crashes.
+ QAPI by higher levels of the virtualization stack. With the default
+ ``-action panic=shutdown`` policy, enabling this feature effectively
+ prevents Windows from creating dumps upon crashes.
- ``hv-reenlightenment`` can only be used on hardware which supports TSC
scaling or when guest migration is not needed.
- ``hv-spinlocks`` should be set to e.g. 0xfff when host CPUs are overcommited
--
2.54.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] docs/hyperv: fix misleading hv-crash shutdown description
2026-07-01 12:21 [PATCH] docs/hyperv: fix misleading hv-crash shutdown description marcandre.lureau
@ 2026-07-01 13:40 ` Vitaly Kuznetsov
0 siblings, 0 replies; 2+ messages in thread
From: Vitaly Kuznetsov @ 2026-07-01 13:40 UTC (permalink / raw)
To: marcandre.lureau, qemu-devel
Cc: Marc-André Lureau, Paolo Bonzini, Zhao Liu, Pierrick Bouvier
marcandre.lureau@redhat.com writes:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> The documentation stated that writing to HV_X64_MSR_CRASH_CTL
> unconditionally causes the guest to shutdown. In reality, it triggers
> qemu_system_guest_panicked() via KVM_SYSTEM_EVENT_CRASH and the
> resulting action depends on the generic panic action policy
> (-action panic=...), which defaults to shutdown.
Indeed,
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> docs/system/i386/hyperv.rst | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/docs/system/i386/hyperv.rst b/docs/system/i386/hyperv.rst
> index 1c1de77feb6..e1babffb0f9 100644
> --- a/docs/system/i386/hyperv.rst
> +++ b/docs/system/i386/hyperv.rst
> @@ -71,8 +71,11 @@ Existing enlightenments
> by the guest when it crashes, HV_X64_MSR_CRASH_P0..HV_X64_MSR_CRASH_P5 MSRs
> contain additional crash information. This information is outputted in QEMU log
> and through QAPI.
> - Note: unlike under genuine Hyper-V, write to HV_X64_MSR_CRASH_CTL causes guest
> - to shutdown. This effectively blocks crash dump generation by Windows.
> + Note: unlike under genuine Hyper-V, write to HV_X64_MSR_CRASH_CTL triggers
> + ``qemu_system_guest_panicked()`` via ``KVM_SYSTEM_EVENT_CRASH`` and the
> + resulting action depends on the ``-action panic=...`` policy (default:
> + ``shutdown``). With the default action, this effectively blocks crash dump
> + generation by Windows.
>
> ``hv-time``
> Enables two Hyper-V-specific clocksources available to the guest: MSR-based
> @@ -304,8 +307,9 @@ currently implemented Hyper-V enlightenments with the following exceptions:
> ``hv-version-id-snumber`` can be left unchanged, guests are not supposed to
> behave differently when different Hyper-V version is presented to them.
> - ``hv-crash`` must only be enabled if the crash information is consumed via
> - QAPI by higher levels of the virtualization stack. Enabling this feature
> - effectively prevents Windows from creating dumps upon crashes.
> + QAPI by higher levels of the virtualization stack. With the default
> + ``-action panic=shutdown`` policy, enabling this feature effectively
> + prevents Windows from creating dumps upon crashes.
> - ``hv-reenlightenment`` can only be used on hardware which supports TSC
> scaling or when guest migration is not needed.
> - ``hv-spinlocks`` should be set to e.g. 0xfff when host CPUs are overcommited
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Thanks!
--
Vitaly
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-01 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 12:21 [PATCH] docs/hyperv: fix misleading hv-crash shutdown description marcandre.lureau
2026-07-01 13:40 ` Vitaly Kuznetsov
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.