@@ -786,13 +786,13 @@ impl VhostUserMsgValidator for VhostUserFSSlaveMsg {
786
786
#[ derive( Clone , Copy , Default ) ]
787
787
pub struct DescStateSplit {
788
788
/// Indicate whether this descriptor (only head) is inflight or not.
789
- inflight : u8 ,
789
+ pub inflight : u8 ,
790
790
/// Padding
791
791
padding : [ u8 ; 5 ] ,
792
792
/// List of last batch of used descriptors, only when batching is used for submitting
793
- next : u16 ,
793
+ pub next : u16 ,
794
794
/// Preserve order of fetching available descriptors, only for head descriptor
795
- counter : u64 ,
795
+ pub counter : u64 ,
796
796
}
797
797
798
798
impl DescStateSplit {
@@ -807,17 +807,17 @@ impl DescStateSplit {
807
807
#[ repr( packed) ]
808
808
pub struct QueueRegionSplit {
809
809
/// Features flags of this region
810
- features : u64 ,
810
+ pub features : u64 ,
811
811
/// Version of this region
812
- version : u16 ,
812
+ pub version : u16 ,
813
813
/// Number of DescStateSplit entries
814
- desc_num : u16 ,
814
+ pub desc_num : u16 ,
815
815
/// List to track last batch of used descriptors
816
- last_batch_head : u16 ,
816
+ pub last_batch_head : u16 ,
817
817
/// Idx value of used ring
818
- used_idx : u16 ,
818
+ pub used_idx : u16 ,
819
819
/// Pointer to an array of DescStateSplit entries
820
- desc : u64 ,
820
+ pub desc : u64 ,
821
821
}
822
822
823
823
impl QueueRegionSplit {
@@ -839,25 +839,25 @@ impl QueueRegionSplit {
839
839
#[ derive( Clone , Copy , Default ) ]
840
840
pub struct DescStatePacked {
841
841
/// Indicate whether this descriptor (only head) is inflight or not.
842
- inflight : u8 ,
842
+ pub inflight : u8 ,
843
843
/// Padding
844
844
padding : u8 ,
845
845
/// Link to next free entry
846
- next : u16 ,
846
+ pub next : u16 ,
847
847
/// Link to last entry of descriptor list, only for head
848
- last : u16 ,
848
+ pub last : u16 ,
849
849
/// Length of descriptor list, only for head
850
- num : u16 ,
850
+ pub num : u16 ,
851
851
/// Preserve order of fetching avail descriptors, only for head
852
- counter : u64 ,
852
+ pub counter : u64 ,
853
853
/// Buffer ID
854
- id : u16 ,
854
+ pub id : u16 ,
855
855
/// Descriptor flags
856
- flags : u16 ,
856
+ pub flags : u16 ,
857
857
/// Buffer length
858
- len : u32 ,
858
+ pub len : u32 ,
859
859
/// Buffer address
860
- addr : u64 ,
860
+ pub addr : u64 ,
861
861
}
862
862
863
863
impl DescStatePacked {
@@ -872,27 +872,27 @@ impl DescStatePacked {
872
872
#[ repr( packed) ]
873
873
pub struct QueueRegionPacked {
874
874
/// Features flags of this region
875
- features : u64 ,
875
+ pub features : u64 ,
876
876
/// version of this region
877
- version : u16 ,
877
+ pub version : u16 ,
878
878
/// size of descriptor state array
879
- desc_num : u16 ,
879
+ pub desc_num : u16 ,
880
880
/// head of free DescStatePacked entry list
881
- free_head : u16 ,
881
+ pub free_head : u16 ,
882
882
/// old head of free DescStatePacked entry list
883
- old_free_head : u16 ,
883
+ pub old_free_head : u16 ,
884
884
/// used idx of descriptor ring
885
- used_idx : u16 ,
885
+ pub used_idx : u16 ,
886
886
/// old used idx of descriptor ring
887
- old_used_idx : u16 ,
887
+ pub old_used_idx : u16 ,
888
888
/// device ring wrap counter
889
- used_wrap_counter : u8 ,
889
+ pub used_wrap_counter : u8 ,
890
890
/// old device ring wrap counter
891
- old_used_wrap_counter : u8 ,
891
+ pub old_used_wrap_counter : u8 ,
892
892
/// Padding
893
893
padding : [ u8 ; 7 ] ,
894
894
/// Pointer to array tracking state of each descriptor from descriptor ring
895
- desc : u64 ,
895
+ pub desc : u64 ,
896
896
}
897
897
898
898
impl QueueRegionPacked {
0 commit comments