Skip to content

Commit c489e2b

Browse files
stefano-garzarellajiangliu
authored andcommitted
vhost_kern: add VHOST_IOTLB_BATCH_* constants
These two new VHOST_IOTLB message types are supported by vhost-vdpa. Signed-off-by: Stefano Garzarella <[email protected]>
1 parent 761c144 commit c489e2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vhost_kern/vhost_binding.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pub const VHOST_IOTLB_MISS: raw::c_uchar = 1;
2727
pub const VHOST_IOTLB_UPDATE: raw::c_uchar = 2;
2828
pub const VHOST_IOTLB_INVALIDATE: raw::c_uchar = 3;
2929
pub const VHOST_IOTLB_ACCESS_FAIL: raw::c_uchar = 4;
30+
pub const VHOST_IOTLB_BATCH_BEGIN: raw::c_uchar = 5;
31+
pub const VHOST_IOTLB_BATCH_END: raw::c_uchar = 6;
3032
pub const VHOST_IOTLB_MSG: raw::c_int = 1;
3133
pub const VHOST_PAGE_SIZE: raw::c_uint = 4096;
3234
pub const VHOST_VIRTIO: raw::c_uint = 175;

0 commit comments

Comments
 (0)