Patch "Documentation: hyperv: Update documentation for sending VMBus packets" has been added to the 6.12-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
From: Sasha Levin <[email protected]> Sent: Friday, November 6, 2026 6:29 PM
Quoted 21 lines
To: [email protected]; [email protected]
Cc: Haiyang Zhang <[email protected]>; Wei Liu <[email protected]>; Dexuan Cui <[email protected]>; Jonathan Corbet <[email protected]>; Shuah Khan <[email protected]>; Randy Dunlap <[email protected]>
Subject: Patch "Documentation: hyperv: Update documentation for sending VMBus packets" has been added to the 6.12-stable treeThis 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.12-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%7C63b6148b45d244e7595b08df 3c76d448%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63929615319498 0658%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMD AwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sd ata=JAjkSZKxRGOy7x1gtCMHiJQ7gPQl6NwynwtEJTqr1Oo%3D&reserved=0
Quoted 6 lines
The filename of the patch is:
documentation-hyperv-update-documentation-for-sendin.patch
and it can be found in the queue-6.12 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 53 lines
commit
0f601aa7a87ab29b179f735be1e31b6833222a7eAuthor: Michael Kelley <[email protected]> Date: Mon Oct 12 18:43:54 2026 -0700Documentation: 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, andvmbus_sendpacket_pagebuffer()has been removed.vmbus_sendpacket_getid()has been added. Update the documentation accordingly.Fixes 45a442fe369e ("Drivers: hv: vmbus: Remove
vmbus_sendpacket_pagebuffer()")Signed-off-by Michael Kelley <[email protected]>Reviewed-by Naman Jain <[email protected]>Signed-off-by Wei Liu <[email protected]>Signed-off-by Sasha Levin <[email protected]>Documentation/virt/hyperv/vmbus.rst +9
-8@@ -141,14 +141,15 @@ Three functions exist to send VMBus channel 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
Sasha Levin
maintainerQuoted 2 lines
This patch should not be backported to earlier than 6.15, as
vmbus_sendpacket_pagebuffer()was removed in 6.15.
Thanks. The removal of vmbus_sendpacket_pagebuffer() (upstream 45a442fe369e) was itself backported to stable: 6.12.100 (899e014e6847d), 6.6.100 (6d2d375205455) and 6.1.140 (763db1b8b0036). Those trees no longer have the function, so the documentation update matches them and I'm keeping the patch in 6.12, 6.6 and 6.1.
Your note covered all three trees. Could you confirm that keeping it there is fine?
Signature · 2 lines
Thanks, Sasha