Skip to contentSkip to conversation

Patch "Documentation: hyperv: Update documentation for sending VMBus packets" has been added to the 6.6-stable tree

DISCUSSION Michael Kelley 1 participant 1 message Nov 7 1 message not in the archive Stable branch

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

From: Sasha Levin <[email protected]> Sent: Friday, November 6, 2026 6:48 PM

Quoted 15 lines

This is a note to let you know that I've just added the patch titled

Documentation: hyperv: Update documentation for sending VMBus packets

to the 6.6-stable tree which can be found at:

http://www.kernel.org/
%2Fgit%2F%3Fp%3Dlinux%2Fkernel%2Fgit%2Fstable%2Fstable- queue.git%3Ba%3Dsummary&data=05%7C02%7C%7C292d5505e46c4917672208df3 c799bce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639296165147375 292%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDA wMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdat a=MYSr381Uq1XgVG15JMUtbK4ZKJ1Qifhv848VAB%2B0Pjc%3D&reserved=0

Quoted 7 lines

The filename of the patch is:
documentation-hyperv-update-documentation-for-sendin.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

This patch should not be backported to earlier than 6.15, as vmbus_sendpacket_pagebuffer() was removed in 6.15.

Michael

Quoted 52 lines

commit 0c34cce79a67e20f1f352458d661675a2e2fa130

Author: Michael Kelley <[email protected]>
Date:   Mon Oct 12 18:43:54 2026 -0700

Documentation: hyperv: Update documentation for sending VMBus packets

[ Upstream commit 6a3d77a0a8cf69cf3d234305e6711729eb5d10c4 ]

The functions for sending VMBus packets have changed. vmbus_sendpacket_mpb_desc() can target multiple ranges, and vmbus_sendpacket_pagebuffer() has been removed. vmbus_sendpacket_getid() has been added. Update the documentation accordingly.

Fixes 45a442fe369e ("Drivers: hv: vmbus: Remove

vmbus_sendpacket_pagebuffer()")

Documentation/virt/hyperv/vmbus.rst +9 -8
index d2012d9022c5e..3326bb103a5ab 100644
@@ -141,14 +141,15 @@ Three functions exist to send VMbus messages:
 
 1. vmbus_sendpacket():  Control-only messages and messages with
    embedded data -- no GPAs
-2. vmbus_sendpacket_pagebuffer(): Message with list of GPAs
-   identifying data to transfer.  An offset and length is
-   associated with each GPA so that multiple discontinuous areas
-   of guest memory can be targeted.
-3. vmbus_sendpacket_mpb_desc(): Message with list of GPAs
-   identifying data to transfer.  A single offset and length is
-   associated with a list of GPAs.  The GPAs must describe a
-   single logical area of guest memory to be targeted.
+2. vmbus_sendpacket_getid(): Similar to vmbus_sendpacket() but returns
+   a transaction ID that is matched against a reply from the Hyper-V
+   host. Useful when the struct completion (or other rendezvous data)
+   must reside on the caller's stack. By invalidating the transaction
+   ID before exiting the function due to a timeout or other error, a
+   late arriving interrupt is assured to not trash the stack.
+3. vmbus_sendpacket_mpb_desc(): Message with one or more data ranges
+   to target. Each range consists of a single offset and length plus
+   a list of GPAs that describe a logical area of guest memory.
 
 Historically, Linux guests have trusted Hyper-V to send well-formed
 and valid messages, and Linux drivers for synthetic devices did not