Skip to content
Commit 1280c27f authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost-net: flush outstanding DMAs on memory change



When memory map changes, we need to flush outstanding
DMAs as they might in theory reference old memory addresses.
To do this simply stop initiating new DMAs
and wait for ubufs ref count to drop to 0.
Afterwards reset the count back to 1.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 935cdee7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment