Commit ed4d917
committed
refactor(virtio): converge
Replace different `kick` implementations with a default implementation
in the `VirtioDevice` trait.
Change the `kick` logic to just re-trigger queue events instead of
manually calling different internal queue processing functions.
Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>kick methods to re-trigger queue events1 parent 1d91776 commit ed4d917Copy full SHA for ed4d917
Expand file treeCollapse file tree
6 files changed
+17
-55
lines changedOpen diff view settings
Collapse file
src/vmm/src/devices/virtio/balloon/device.rs
Copy file name to clipboardExpand all lines: src/vmm/src/devices/virtio/balloon/device.rs-10Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
956 | 956 | |
957 | 957 | |
958 | 958 | |
959 | | - |
960 | | - |
961 | | - |
962 | | - |
963 | | - |
964 | | - |
965 | | - |
966 | | - |
967 | | - |
968 | | - |
969 | 959 | |
970 | 960 | |
971 | 961 | |
|
Collapse file
src/vmm/src/devices/virtio/block/device.rs
Copy file name to clipboardExpand all lines: src/vmm/src/devices/virtio/block/device.rs-12Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | | - |
218 | | - |
219 | | - |
220 | | - |
221 | | - |
222 | | - |
223 | | - |
224 | | - |
225 | | - |
226 | | - |
227 | | - |
228 | | - |
229 | 217 | |
230 | 218 | |
231 | 219 | |
|
Collapse file
src/vmm/src/devices/virtio/device.rs
Copy file name to clipboardExpand all lines: src/vmm/src/devices/virtio/device.rs+17-2Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
21 | 21 | |
22 | 22 | |
23 | 23 | |
| ||
189 | 189 | |
190 | 190 | |
191 | 191 | |
192 | | - |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
193 | 208 | |
194 | 209 | |
195 | 210 | |
|
Collapse file
src/vmm/src/devices/virtio/net/device.rs
Copy file name to clipboardExpand all lines: src/vmm/src/devices/virtio/net/device.rs-11Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1056 | 1056 | |
1057 | 1057 | |
1058 | 1058 | |
1059 | | - |
1060 | | - |
1061 | | - |
1062 | | - |
1063 | | - |
1064 | | - |
1065 | | - |
1066 | | - |
1067 | | - |
1068 | | - |
1069 | | - |
1070 | 1059 | |
1071 | 1060 | |
1072 | 1061 | |
|
Collapse file
src/vmm/src/devices/virtio/rng/device.rs
Copy file name to clipboardExpand all lines: src/vmm/src/devices/virtio/rng/device.rs-7Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
312 | 312 | |
313 | 313 | |
314 | 314 | |
315 | | - |
316 | | - |
317 | | - |
318 | | - |
319 | | - |
320 | | - |
321 | | - |
322 | 315 | |
323 | 316 | |
324 | 317 | |
|
Collapse file
src/vmm/src/devices/virtio/vsock/device.rs
Copy file name to clipboardExpand all lines: src/vmm/src/devices/virtio/vsock/device.rs-13Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
376 | 376 | |
377 | 377 | |
378 | 378 | |
379 | | - |
380 | | - |
381 | | - |
382 | | - |
383 | | - |
384 | | - |
385 | | - |
386 | | - |
387 | | - |
388 | | - |
389 | | - |
390 | | - |
391 | | - |
392 | 379 | |
393 | 380 | |
394 | 381 | |
|
0 commit comments