sample/mdev/mbochs: add mbochs_kunmap_dmabuf
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 25 Jun 2018 06:44:52 +0000 (08:44 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 26 Jun 2018 06:27:23 +0000 (00:27 -0600)
commit7733e05b34f5d855c5590d816b41ddfee972d188
tree392a39c4b933378a88435fd39691a64ead80ca7a
parent2203d8a76ea3b962559acfe3bb80eddfdfbc9cee
sample/mdev/mbochs: add mbochs_kunmap_dmabuf

There is no default implementation for dma_buf_ops->unmap.
So add a function unmapping the page, otherwise we'll leak them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mbochs.c