Skip to content

Commit df8cad5

Browse files
committed
chore(bindgen): parse ring features from virtio_ring.h
VIRTIO_RING_F_INDIRECT_DESC is declared in the virtio_ring.h, so modify bindgen to parse all `VIRTIO_RING_` constants. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 1881187 commit df8cad5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/vmm/src/devices/virtio/gen/virtio_ring.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
clippy::tests_outside_test_module
1515
)]
1616

17+
pub const VIRTIO_RING_F_INDIRECT_DESC: u32 = 28;
1718
pub const VIRTIO_RING_F_EVENT_IDX: u32 = 29;

tools/bindgen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fc-bindgen \
6767

6868
info "BINDGEN virtio_ring.h"
6969
fc-bindgen \
70-
--allowlist-var "VIRTIO_RING_F_EVENT_IDX" \
70+
--allowlist-var "VIRTIO_RING_.*" \
7171
"$KERNEL_HEADERS_HOME/include/linux/virtio_ring.h" >src/vmm/src/devices/virtio/gen/virtio_ring.rs
7272

7373
info "BINDGEN virtio_blk.h"

0 commit comments

Comments
 (0)