diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-06 15:37:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 15:37:09 +0100 |
commit | 0b722b79212dfd4a5fb6f7b9137c27f27bd46105 (patch) | |
tree | b4e367e5e6351f123ed26aad7fe37bc6e247efb9 /lib/irq.h | |
parent | f7f0ea6c4beedbb3cd2c010e84feecb76db3f46f (diff) | |
download | libvfio-user-0b722b79212dfd4a5fb6f7b9137c27f27bd46105.zip libvfio-user-0b722b79212dfd4a5fb6f7b9137c27f27bd46105.tar.gz libvfio-user-0b722b79212dfd4a5fb6f7b9137c27f27bd46105.tar.bz2 |
vfu_reset_ctx(): tear down DMA and IRQs (#418)
When we lose the client connection, the IRQ and DMA region state is no longer
valid; clean them up.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/irq.h')
-rw-r--r-- | lib/irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -35,6 +35,9 @@ #include "private.h" +void +irqs_reset(vfu_ctx_t *vfu_ctx); + int handle_device_get_irq_info(vfu_ctx_t *vfu_ctx, uint32_t size, struct vfio_irq_info *irq_info_in, |