Commit 475e13a
virtio-queue: enforce VirtIO queue data structure alignment constraints
The VirtIO Spec 1.0, sec 2.4 defines the alignment constraints for
VirtIO queue's descriptor table, available ring and used ring.
So enforce the alignment constraints in Queue::is_valid().
Signed-off-by: Liu Jiang <[email protected]>1 parent 186f87f commit 475e13a
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
309 | 318 | | |
310 | 319 | | |
311 | 320 | | |
| |||
712 | 721 | | |
713 | 722 | | |
714 | 723 | | |
| 724 | + | |
| 725 | + | |
715 | 726 | | |
716 | 727 | | |
717 | 728 | | |
718 | 729 | | |
| 730 | + | |
| 731 | + | |
719 | 732 | | |
720 | 733 | | |
721 | 734 | | |
722 | 735 | | |
| 736 | + | |
| 737 | + | |
723 | 738 | | |
724 | 739 | | |
725 | 740 | | |
| |||
0 commit comments