mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: vhost_user: Support inflight I/O tracking
Vhost user INFLIGHT_SHMFD protocol feature supports inflight I/O tracking, this commit implement the vhost-user device (master) support of the feature. Till this commit, specific vhost-user devices (blk, fs, or net) have not enable this feature. Signed-off-by: Jiachen Zhang <zhangjiachen.jaycee@bytedance.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
f060ecd705
commit
bfd4aa2fed
@@ -959,6 +959,24 @@ impl<S: VhostUserBackend> VhostUserSlaveReqHandlerMut for VhostUserHandler<S> {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn get_inflight_fd(
|
||||
&mut self,
|
||||
_: &vhost::vhost_user::message::VhostUserInflight,
|
||||
) -> std::result::Result<
|
||||
(vhost::vhost_user::message::VhostUserInflight, i32),
|
||||
vhost::vhost_user::Error,
|
||||
> {
|
||||
std::unimplemented!()
|
||||
}
|
||||
|
||||
fn set_inflight_fd(
|
||||
&mut self,
|
||||
_: &vhost::vhost_user::message::VhostUserInflight,
|
||||
_: std::fs::File,
|
||||
) -> std::result::Result<(), vhost::vhost_user::Error> {
|
||||
std::unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: VhostUserBackend> Drop for VhostUserHandler<S> {
|
||||
|
||||
Reference in New Issue
Block a user