From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liang, Cunming" Subject: Re: [PATCH v7 06/10] eal/linux: add interrupt vectors handling on VFIO Date: Thu, 07 May 2015 14:29:54 +0800 Message-ID: <554B0662.6060409@intel.com> References: <1425012976-10173-1-git-send-email-cunming.liang@intel.com> <1430804386-28949-1-git-send-email-cunming.liang@intel.com> <1430804386-28949-7-git-send-email-cunming.liang@intel.com> <20150505113842.586ec802@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Stephen Hemminger Return-path: In-Reply-To: <20150505113842.586ec802@urahara> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On 5/6/2015 2:38 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:42 +0800 > Cunming Liang wrote: > >> diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c >> index aea1fb1..387f54c 100644 >> --- a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c >> +++ b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c >> @@ -308,6 +308,18 @@ pci_vfio_setup_interrupts(struct rte_pci_device *dev, int vfio_dev_fd) >> case VFIO_PCI_MSIX_IRQ_INDEX: >> internal_config.vfio_intr_mode = RTE_INTR_MODE_MSIX; >> dev->intr_handle.type = RTE_INTR_HANDLE_VFIO_MSIX; >> + for (i = 0; i < RTE_MAX_RXTX_INTR_VEC_ID; i++) { >> + fd = eventfd(0, 0); >> + if (fd < 0) { >> + > You should pass EFD_NONBLOCK and EFD_CLOEXEC as flags to any eventfd's created > internally. [LCM] Agree, make sense.