[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47d130f2-7d86-4d08-98f9-186d38ecbdbd@intel.com>
Date: Tue, 6 Feb 2024 13:44:44 -0800
From: Reinette Chatre <reinette.chatre@...el.com>
To: Alex Williamson <alex.williamson@...hat.com>
CC: <jgg@...dia.com>, <yishaih@...dia.com>,
<shameerali.kolothum.thodi@...wei.com>, <kevin.tian@...el.com>,
<kvm@...r.kernel.org>, <dave.jiang@...el.com>, <ashok.raj@...el.com>,
<linux-kernel@...r.kernel.org>, <patches@...ts.linux.dev>
Subject: Re: [PATCH 06/17] vfio/pci: Remove interrupt index interpretation
from wrappers
Hi Alex,
On 2/5/2024 2:35 PM, Alex Williamson wrote:
> On Thu, 1 Feb 2024 20:57:00 -0800
> Reinette Chatre <reinette.chatre@...el.com> wrote:
>> @@ -413,8 +415,10 @@ static int vfio_msi_alloc_irq(struct vfio_pci_core_device *vdev,
>> }
>>
>> static int vfio_msi_set_vector_signal(struct vfio_pci_core_device *vdev,
>> - unsigned int vector, int fd, bool msix)
>> + unsigned int vector, int fd,
>> + unsigned int index)
>> {
>> + bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX) ? true : false;
>
> Cleanup the unnecessary ternary while here, this can just be:
>
> bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX);
>
Will do. Thank you.
Reinette
Powered by blists - more mailing lists