rcore-os / virtio-drivers

VirtIO guest drivers in Rust.
MIT License
209 stars 63 forks source link

Block device read not returns #159

Open BDUG opened 3 weeks ago

BDUG commented 3 weeks ago

While reading a block device the my code stuck in

queue.rs

        // Wait until there is at least one element in the used ring.
        while !self.can_pop() {
            spin_loop();
        }

How can I resolve it?

qwandor commented 3 days ago

What VirtIO block device implementation are you using? Is the device actually responding to the read? It works fine in all my tests with QEMU and crosvm, so I'm not going to be able to help here unless you provide details on how to reproduce the issue you're having.