Revert "vfio: use correct flags to disable interrupts"

This reverts commit 66fde245b3.

The commit broke the VFIO support for MSI. Issue needs to be
investigated but in the meantime, it is safer to fix the codebase.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2019-11-22 17:59:51 -08:00 committed by Samuel Ortiz
parent 8fe5a43d9d
commit 360f0639f4

View File

@ -692,10 +692,10 @@ impl VfioDevice {
let mut irq_set = vec_with_array_field::<vfio_irq_set, u32>(0);
irq_set[0].argsz = mem::size_of::<vfio_irq_set>() as u32;
irq_set[0].flags = VFIO_IRQ_SET_ACTION_TRIGGER | VFIO_IRQ_SET_DATA_NONE;
irq_set[0].flags = VFIO_IRQ_SET_ACTION_MASK;
irq_set[0].index = irq_index;
irq_set[0].start = 0;
irq_set[0].count = 0;
irq_set[0].count = irq.count;
// Safe as we are the owner of self and irq_set which are valid value
let ret = unsafe { ioctl_with_ref(self, VFIO_DEVICE_SET_IRQS(), &irq_set[0]) };