From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>
Subject: Re: [PATCH] docs/hyperv: fix misleading hv-crash shutdown description
Date: Wed, 01 Jul 2026 15:40:39 +0200 [thread overview]
Message-ID: <87pl16hlpk.fsf@redhat.com> (raw)
In-Reply-To: <20260701122135.3168729-1-marcandre.lureau@redhat.com>
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
prev parent reply other threads:[~2026-07-01 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 12:21 [PATCH] docs/hyperv: fix misleading hv-crash shutdown description marcandre.lureau
2026-07-01 13:40 ` Vitaly Kuznetsov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pl16hlpk.fsf@redhat.com \
--to=vkuznets@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.