virtio-devices: block: Handle descriptor address translation

Since we're trying to move away from the translation happening in the
virtio-queue crate, the device itself is performing the address
translation when needed.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-01-26 17:08:11 +01:00
committed by Rob Bradford
parent 75b9e70ec8
commit 3e1ce98d1a
3 changed files with 46 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ impl VhostUserBlkThread {
while let Some(mut desc_chain) = vring.mut_queue().iter().unwrap().next() {
debug!("got an element in the queue");
let len;
match Request::parse(&mut desc_chain) {
match Request::parse(&mut desc_chain, None) {
Ok(mut request) => {
debug!("element is a valid request");
request.set_writeback(self.writeback.load(Ordering::Acquire));