@samitouri / QOSamiQemu / commits / 521500bd80

docs/hyperv: fix misleading hv-crash shutdown description

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. Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260701122135.3168729-1-marcandre.lureau@redhat.com>

Marc-André Lureau committed Jul 1, 2026 at 16:21 UTC 521500bd803b3c2c619e52ce423ed039e91310f7
1 file changed +8 -4
docs/system/i386/hyperv.rst
+8 -4
@@ -71,8 +71,11 @@ Existing enlightenments
71 by the guest when it crashes, HV_X64_MSR_CRASH_P0..HV_X64_MSR_CRASH_P5 MSRs
72 contain additional crash information. This information is outputted in QEMU log
73 and through QAPI.
74 - Note: unlike under genuine Hyper-V, write to HV_X64_MSR_CRASH_CTL causes guest
75 - to shutdown. This effectively blocks crash dump generation by Windows.
74 + Note: unlike under genuine Hyper-V, write to HV_X64_MSR_CRASH_CTL triggers
75 + ``qemu_system_guest_panicked()`` via ``KVM_SYSTEM_EVENT_CRASH`` and the
76 + resulting action depends on the ``-action panic=...`` policy (default:
77 + ``shutdown``). With the default action, this effectively blocks crash dump
78 + generation by Windows.
79
80 ``hv-time``
81 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:
307 ``hv-version-id-snumber`` can be left unchanged, guests are not supposed to
308 behave differently when different Hyper-V version is presented to them.
309 - ``hv-crash`` must only be enabled if the crash information is consumed via
307 - QAPI by higher levels of the virtualization stack. Enabling this feature
308 - effectively prevents Windows from creating dumps upon crashes.
310 + QAPI by higher levels of the virtualization stack. With the default
311 + ``-action panic=shutdown`` policy, enabling this feature effectively
312 + prevents Windows from creating dumps upon crashes.
313 - ``hv-reenlightenment`` can only be used on hardware which supports TSC
314 scaling or when guest migration is not needed.
315 - ``hv-spinlocks`` should be set to e.g. 0xfff when host CPUs are overcommited