summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKameron Carr <kameroncarr@linux.microsoft.com>2026-08-11 09:04:45 -0700
committerWei Liu <wei.liu@kernel.org>2026-08-24 00:33:24 +0000
commit8f1da3536b8f8420988fe6e6ae15d58afa2ba2d8 (patch)
treecf5eb85a5a1bdac7b8a6fc6ffe5dd8a704e0facc /include/linux
parentcee0d90bceae1dee3bcc70f8d6b2ceb5b87deb42 (diff)
Drivers: hv: vmbus: add vmbus_establish_gpadl_caller_decrypted()
Add a new vmbus_establish_gpadl_caller_decrypted() for callers that want to decrypt their own buffers. Add a new hv_gpadl_type, HV_GPADL_BUFFER_DECRYPTED, to communicate the decryption status of the buffer. No functional change for existing callers. Signed-off-by: Kameron Carr <kameroncarr@linux.microsoft.com> Reviewed-by: Michael Kelley <mhklinux@outlook.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hyperv.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index a2b484679eb4..08b927fab610 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -70,7 +70,8 @@
*/
enum hv_gpadl_type {
HV_GPADL_BUFFER,
- HV_GPADL_RING
+ HV_GPADL_RING,
+ HV_GPADL_BUFFER_DECRYPTED
};
/* Single-page buffer */
@@ -1205,6 +1206,11 @@ extern int vmbus_establish_gpadl(struct vmbus_channel *channel,
u32 size,
struct vmbus_gpadl *gpadl);
+extern int vmbus_establish_gpadl_caller_decrypted(struct vmbus_channel *channel,
+ void *kbuffer,
+ u32 size,
+ struct vmbus_gpadl *gpadl);
+
extern int vmbus_teardown_gpadl(struct vmbus_channel *channel,
struct vmbus_gpadl *gpadl);