mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 00:11:16 +00:00
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:
parent
8fe5a43d9d
commit
360f0639f4
@ -692,10 +692,10 @@ impl VfioDevice {
|
|||||||
|
|
||||||
let mut irq_set = vec_with_array_field::<vfio_irq_set, u32>(0);
|
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].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].index = irq_index;
|
||||||
irq_set[0].start = 0;
|
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
|
// 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]) };
|
let ret = unsafe { ioctl_with_ref(self, VFIO_DEVICE_SET_IRQS(), &irq_set[0]) };
|
||||||
|
Loading…
Reference in New Issue
Block a user