Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982AbaJ0TQk (ORCPT ); Mon, 27 Oct 2014 15:16:40 -0400 Received: from mail-qc0-f177.google.com ([209.85.216.177]:64458 "EHLO mail-qc0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753015AbaJ0TQh (ORCPT ); Mon, 27 Oct 2014 15:16:37 -0400 MIME-Version: 1.0 In-Reply-To: <1414433284-31719-15-git-send-email-a.motakis@virtualopensystems.com> References: <1414433284-31719-1-git-send-email-a.motakis@virtualopensystems.com> <1414433284-31719-15-git-send-email-a.motakis@virtualopensystems.com> From: Bjorn Helgaas Date: Mon, 27 Oct 2014 13:16:15 -0600 Message-ID: Subject: Re: [PATCH v9 14/19] vfio: move eventfd support code for VFIO_PCI to a separate file To: Antonios Motakis Cc: kvmarm@lists.cs.columbia.edu, "open list:INTEL IOMMU (VT-d)" , "alex.williamson@redhat.com" , Will Deacon , tech@virtualopensystems.com, Christoffer Dall , eric.auger@linaro.org, kim.phillips@freescale.com, Marc Zyngier , Alexander Gordeev , open list , "open list:VFIO DRIVER" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Antonios, On Mon, Oct 27, 2014 at 12:07 PM, Antonios Motakis wrote: > The virqfd functionality that is used by VFIO_PCI to implement interrupt > masking and unmasking via an eventfd, is generic enough and can be reused > by another driver. Move it to a separate file in order to allow the code > to be shared. > > Also properly export virqfd_enable and virqfd_disable in the process. Alex will handle this, not me, but my personal preference is to avoid doing things "in the process" because the small changes get lost in the big patch. I'd rather see a strict move that changes no code at all (except things like necessary Makefile changes), followed by a smaller patch that does the additional stuff. Does "properly export" mean that those functions were previously *improperly* exported and the way they used to be exported caused a problem? Or does it just mean "export"? Bjorn > Signed-off-by: Antonios Motakis > --- > drivers/vfio/Makefile | 4 +- > drivers/vfio/pci/vfio_pci_intrs.c | 213 ----------------------------------- > drivers/vfio/pci/vfio_pci_private.h | 3 - > drivers/vfio/virqfd.c | 214 ++++++++++++++++++++++++++++++++++++ > include/linux/vfio.h | 28 +++++ > 5 files changed, 245 insertions(+), 217 deletions(-) > create mode 100644 drivers/vfio/virqfd.c -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/