Re: [PATCH v4] PCI: hv: Warn when wait_for_response() waits indefinitely

From: Wei Liu

Date: Mon Sep 21 2026 - 11:58:02 EST


On Mon, Sep 14, 2026 at 03:39:09AM -0700, Sahil Chandna wrote:
> A guest can wait indefinitely in wait_for_response() for the host to
> send either a rescind message or a packet completion. If the
> host does not send either, the guest can remain blocked with no
> diagnostic indicating a reason.
> This was observed during a guest kernel upgrade in which the
> host-side application handling the PCI channel faulted, causing the
> guest to never receive the completion request.
> Add a warning in wait_for_response() when the wait exceeds
> a timeout so that such a hang is visible in the guest's kernel log
> and can be correlated with host-side state.
>
> Suggested-by: Michael Kelley <mhklinux@xxxxxxxxxxx>
> Reviewed-by: Naman Jain <namjain@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Sahil Chandna <sahilchandna@xxxxxxxxxxxxxxxxxxx>

Applied. Thanks.