Re: [PATCH kernel] vfio-pci: Mask INTx if a device is not capabable of enabling it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu,  7 Dec 2017 12:56:54 +1100
Alexey Kardashevskiy <aik@xxxxxxxxx> wrote:

> At the moment VFIO rightfully assumes that INTx is supported if
> the interrupt pin is not set to zero in the device config space.
> However if that is not the case (the pin is not zero but pdev->irq is),
> vfio_intx_enable() fails.
> 
> In order to prevent the userspace from trying to enable INTx when we know
> that it cannot work, let's mask the PCI_INTERRUPT_PIN register.
> 
> Signed-off-by: Alexey Kardashevskiy <aik@xxxxxxxxx>
> ---
>  drivers/vfio/pci/vfio_pci.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied to v4.16/vfio.  Thanks,

Alex



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux