1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#![allow(missing_docs)]
use bitflags::bitflags;
use vm_memory::ByteValued;
bitflags! {
pub struct SetupmappingFlags: u64 {
const WRITE = 0x1;
const READ = 0x2;
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct SetupmappingIn {
pub fh: u64,
pub foffset: u64,
pub len: u64,
pub flags: u64,
pub moffset: u64,
}
unsafe impl ByteValued for SetupmappingIn {}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct RemovemappingIn {
pub count: u32,
}
unsafe impl ByteValued for RemovemappingIn {}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct RemovemappingOne {
pub moffset: u64,
pub len: u64,
}
unsafe impl ByteValued for RemovemappingOne {}