File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/vmm/src/devices/virtio Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ pub enum QueueError {
38
38
39
39
/// A virtio descriptor constraints with C representative.
40
40
#[ repr( C ) ]
41
- #[ derive( Default , Clone , Copy ) ]
42
- struct Descriptor {
43
- addr : u64 ,
44
- len : u32 ,
45
- flags : u16 ,
46
- next : u16 ,
41
+ #[ derive( Debug , Default , Clone , Copy ) ]
42
+ pub struct Descriptor {
43
+ pub addr : u64 ,
44
+ pub len : u32 ,
45
+ pub flags : u16 ,
46
+ pub next : u16 ,
47
47
}
48
48
49
49
// SAFETY: `Descriptor` is a POD and contains no padding.
@@ -482,7 +482,7 @@ impl Queue {
482
482
}
483
483
484
484
/// Helper method that writes `val` to the `avail_event` field of the used ring.
485
- fn set_avail_event < M : GuestMemory > ( & mut self , val : u16 , mem : & M ) {
485
+ pub fn set_avail_event < M : GuestMemory > ( & mut self , val : u16 , mem : & M ) {
486
486
debug_assert ! ( self . is_layout_valid( mem) ) ;
487
487
488
488
let avail_event_addr = self
You can’t perform that action at this time.
0 commit comments