virtio-queue: Remove queue addresses translation

Now that the virtio-devices crate can take care of the queue addresses
when placed behind a vIOMMU, we can remove the corresponding code.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-01-26 11:46:14 +01:00
committed by Rob Bradford
parent ce6446501d
commit f29f3085ed
2 changed files with 0 additions and 28 deletions

View File

@@ -271,12 +271,6 @@ impl<M: GuestAddressSpace> Queue<M, QueueState> {
pub fn iter(&mut self) -> Result<AvailIter<'_, M::T>, Error> {
self.state.iter(self.mem.memory())
}
/// Set the queue to "ready", and update desc_table, avail_ring and
/// used_ring addresses based on the AccessPlatform handler.
pub fn enable(&mut self, set: bool) {
self.state.enable(set)
}
}
#[cfg(test)]