@@ -371,19 +371,6 @@ struct vmtransfer_page_packet_header {
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.
@@ -394,30 +381,6 @@ struct gpa_range {
394
381
u64 pfn_array [];
395
382
};
396
383
397
- /*
398
- * This is the format for an Establish Gpadl packet, which contains a handle by
399
- * which this GPADL will be known and a set of GPA ranges associated with it.
400
- * This can be converted to a MDL by the guest OS. If there are multiple GPA
401
- * ranges, then the resulting MDL will be "chained," representing multiple VA
402
- * ranges.
403
- */
404
- struct vmestablish_gpadl {
405
- struct vmpacket_descriptor d ;
406
- u32 gpadl ;
407
- u32 range_cnt ;
408
- struct gpa_range range [1 ];
409
- } __packed ;
410
-
411
- /*
412
- * This is the format for a Teardown Gpadl packet, which indicates that the
413
- * GPADL handle in the Establish Gpadl packet will never be referenced again.
414
- */
415
- struct vmteardown_gpadl {
416
- struct vmpacket_descriptor d ;
417
- u32 gpadl ;
418
- u32 reserved ; /* for alignment to a 8-byte boundary */
419
- } __packed ;
420
-
421
384
/*
422
385
* This is the format for a GPA-Direct packet, which contains a set of GPA
423
386
* ranges, in addition to commands and/or data.
@@ -429,25 +392,6 @@ struct vmdata_gpa_direct {
429
392
struct gpa_range range [1 ];
430
393
} __packed ;
431
394
432
- /* This is the format for a Additional Data Packet. */
433
- struct vmadditional_data {
434
- struct vmpacket_descriptor d ;
435
- u64 total_bytes ;
436
- u32 offset ;
437
- u32 byte_cnt ;
438
- unsigned char data [1 ];
439
- } __packed ;
440
-
441
- union vmpacket_largest_possible_header {
442
- struct vmpacket_descriptor simple_hdr ;
443
- struct vmtransfer_page_packet_header xfer_page_hdr ;
444
- struct vmgpadl_packet_header gpadl_hdr ;
445
- struct vmadd_remove_transfer_page_set add_rm_xfer_page_hdr ;
446
- struct vmestablish_gpadl establish_gpadl_hdr ;
447
- struct vmteardown_gpadl teardown_gpadl_hdr ;
448
- struct vmdata_gpa_direct data_gpa_direct_hdr ;
449
- };
450
-
451
395
#define VMPACKET_DATA_START_ADDRESS (__packet ) \
452
396
(void *)(((unsigned char *)__packet) + \
453
397
((struct vmpacket_descriptor)__packet)->offset8 * 8)
0 commit comments