Skip to content

Commit

Permalink
vhost_user: Remove commented code
Browse files Browse the repository at this point in the history
Let's remove commented vhost-user message definitions, some of the
message definition are not supported and the other is duplicated
(i.e., VhostUserLog is already defined).

Signed-off-by: German Maglione <[email protected]>
  • Loading branch information
germag committed Nov 14, 2023
1 parent 6b1cec2 commit 493faaf
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions crates/vhost/src/vhost_user/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,32 +904,6 @@ impl VhostUserMsgValidator for VhostUserLog {
}
}

/*
* TODO: support dirty log, live migration and IOTLB operations.
#[repr(packed)]
pub struct VhostUserVringArea {
pub index: u32,
pub flags: u32,
pub size: u64,
pub offset: u64,
}
#[repr(packed)]
pub struct VhostUserLog {
pub size: u64,
pub offset: u64,
}
#[repr(packed)]
pub struct VhostUserIotlb {
pub iova: u64,
pub size: u64,
pub user_addr: u64,
pub permission: u8,
pub optype: u8,
}
*/

// Bit mask for flags in virtio-fs backend messages
bitflags! {
#[derive(Copy, Clone, Debug, Eq, PartialEq, Default)]
Expand Down

0 comments on commit 493faaf

Please sign in to comment.