diff options
author | Peter Xu <peterx@redhat.com> | 2018-01-22 14:02:43 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-02-07 14:09:24 +0100 |
commit | 369686267a4612d4000a1b67720c7f0aedd27539 (patch) | |
tree | 181484d91e605369559b19d7f241e3500710e199 /hw/virtio | |
parent | 0bbe435410c37c230c6e7bd926931a13810816e2 (diff) | |
download | qemu-369686267a4612d4000a1b67720c7f0aedd27539.zip qemu-369686267a4612d4000a1b67720c7f0aedd27539.tar.gz qemu-369686267a4612d4000a1b67720c7f0aedd27539.tar.bz2 |
vfio: listener unregister before unset container
After next patch, listener unregister will need the container to be
alive. Let's move this unregister phase to be before unset container,
since that operation will free the backend container in kernel,
otherwise we'll get these after next patch:
qemu-system-x86_64: VFIO_UNMAP_DMA: -22
qemu-system-x86_64: vfio_dma_unmap(0x559bf53a4590, 0x0, 0xa0000) = -22 (Invalid argument)
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180122060244.29368-4-peterx@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio')
0 files changed, 0 insertions, 0 deletions