Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hyperv: Remove unused union and structs

The union vmpacket_largest_possible_header and several structs have not
been used for a long time afaict - remove them.

Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250311091634.494888-2-thorsten.blum@linux.dev
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250311091634.494888-2-thorsten.blum@linux.dev>

authored by

Thorsten Blum and committed by
Wei Liu
fe142626 461fbbd0

-56
-56
include/linux/hyperv.h
··· 371 371 struct vmtransfer_page_range ranges[]; 372 372 } __packed; 373 373 374 - struct vmgpadl_packet_header { 375 - struct vmpacket_descriptor d; 376 - u32 gpadl; 377 - u32 reserved; 378 - } __packed; 379 - 380 - struct vmadd_remove_transfer_page_set { 381 - struct vmpacket_descriptor d; 382 - u32 gpadl; 383 - u16 xfer_pageset_id; 384 - u16 reserved; 385 - } __packed; 386 - 387 374 /* 388 375 * This structure defines a range in guest physical space that can be made to 389 376 * look virtually contiguous. ··· 382 395 }; 383 396 384 397 /* 385 - * This is the format for an Establish Gpadl packet, which contains a handle by 386 - * which this GPADL will be known and a set of GPA ranges associated with it. 387 - * This can be converted to a MDL by the guest OS. If there are multiple GPA 388 - * ranges, then the resulting MDL will be "chained," representing multiple VA 389 - * ranges. 390 - */ 391 - struct vmestablish_gpadl { 392 - struct vmpacket_descriptor d; 393 - u32 gpadl; 394 - u32 range_cnt; 395 - struct gpa_range range[1]; 396 - } __packed; 397 - 398 - /* 399 - * This is the format for a Teardown Gpadl packet, which indicates that the 400 - * GPADL handle in the Establish Gpadl packet will never be referenced again. 401 - */ 402 - struct vmteardown_gpadl { 403 - struct vmpacket_descriptor d; 404 - u32 gpadl; 405 - u32 reserved; /* for alignment to a 8-byte boundary */ 406 - } __packed; 407 - 408 - /* 409 398 * This is the format for a GPA-Direct packet, which contains a set of GPA 410 399 * ranges, in addition to commands and/or data. 411 400 */ ··· 391 428 u32 range_cnt; 392 429 struct gpa_range range[1]; 393 430 } __packed; 394 - 395 - /* This is the format for a Additional Data Packet. */ 396 - struct vmadditional_data { 397 - struct vmpacket_descriptor d; 398 - u64 total_bytes; 399 - u32 offset; 400 - u32 byte_cnt; 401 - unsigned char data[1]; 402 - } __packed; 403 - 404 - union vmpacket_largest_possible_header { 405 - struct vmpacket_descriptor simple_hdr; 406 - struct vmtransfer_page_packet_header xfer_page_hdr; 407 - struct vmgpadl_packet_header gpadl_hdr; 408 - struct vmadd_remove_transfer_page_set add_rm_xfer_page_hdr; 409 - struct vmestablish_gpadl establish_gpadl_hdr; 410 - struct vmteardown_gpadl teardown_gpadl_hdr; 411 - struct vmdata_gpa_direct data_gpa_direct_hdr; 412 - }; 413 431 414 432 #define VMPACKET_DATA_START_ADDRESS(__packet) \ 415 433 (void *)(((unsigned char *)__packet) + \