diff options
author | John Levon <john.levon@nutanix.com> | 2021-03-10 10:37:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 10:37:59 +0000 |
commit | 052d709d0cfd77c36f5b31402c3cc1c3d868d618 (patch) | |
tree | 29f6fbba5fa94e80e7c53bbc2fdde474ae16a1b0 /README.md | |
parent | 997536eee6609827b5053afef497f94bc6f6dbf4 (diff) | |
download | libvfio-user-052d709d0cfd77c36f5b31402c3cc1c3d868d618.zip libvfio-user-052d709d0cfd77c36f5b31402c3cc1c3d868d618.tar.gz libvfio-user-052d709d0cfd77c36f5b31402c3cc1c3d868d618.tar.bz2 |
fix IRQ disable path (#386)
Properly fix IRQ disabling:
Allow count == 0 to mean "disable all IRQS of the given type". On our side,
disabling an IRQ means forgetting about the eventfd that was previously passed
over the socket.
Allow individual IRQs to be disabled, by means of a VFIO_IRQ_SET_DATA_EVENTFD
message with no file descriptors passed. In vfio, this is done via setting "-1"
in the fd slots; which isn't possible via auxiliary data. Thus, only one IRQ can
be disabled a a time in vfio-user.
Clean up "->type": this is never set, so wasn't having any effect. Follow up
changes will likely re-introduce this in some form.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions