From 493faaf083bb51e265a4920edb765182374fc268 Mon Sep 17 00:00:00 2001 From: German Maglione Date: Tue, 14 Nov 2023 11:40:52 +0100 Subject: [PATCH] vhost_user: Remove commented code 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 --- crates/vhost/src/vhost_user/message.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/crates/vhost/src/vhost_user/message.rs b/crates/vhost/src/vhost_user/message.rs index df7edcde..69d01b92 100644 --- a/crates/vhost/src/vhost_user/message.rs +++ b/crates/vhost/src/vhost_user/message.rs @@ -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)]