Commit 0d4654b
vfio-user: make flags more ergonomic
There are two issues with DmaMapFlags:
1. `READ_ONLY` being set doesn't mean that the mapping is read-only.
This is confusing in code that uses these constants (same for
`WRITE_ONLY`).
2. Due to some bitflags update the type doesn't derive standard traits
anymore. Manually annotate those.
Fix both of these issues. While I was here, I also added the necessary
traits to DmaUnmapFlags.
Signed-off-by: Julian Stecklina <[email protected]>1 parent 91f2c7b commit 0d4654b
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments