commit | 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Tue Dec 04 00:17:14 2012 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Thu Dec 06 17:09:18 2012 +0200 |
tree | 6b488908fab086a906656894801544210bd64335 | |
parent | 935cdee7ee159569b0aaa10bd9244660f6672b08 [diff] |
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: Michael S. Tsirkin <mst@redhat.com>