From: Benjamin Herrenschmidt Date: Wed, 21 May 2014 00:21:59 +0000 Subject: Re: [PATCH 3/4] drivers/vfio: New IOCTL command VFIO_EEH_INFO Message-Id: <1400631719.3986.152.camel@pasglop> List-Id: References: <1400574612-19411-1-git-send-email-gwshan@linux.vnet.ibm.com> <1400574612-19411-4-git-send-email-gwshan@linux.vnet.ibm.com> <537B3AA7.7040106@suse.de> <537B3C68.8080102@suse.de> <20140520114031.GA20397@shangw> <537B4015.7030404@suse.de> <20140520122147.GA26483@shangw> <537B49C9.4000302@suse.de> In-Reply-To: <537B49C9.4000302@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Graf Cc: aik@ozlabs.ru, Gavin Shan , kvm-ppc@vger.kernel.org, alex.williamson@redhat.com, qiudayu@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org On Tue, 2014-05-20 at 14:25 +0200, Alexander Graf wrote: > > - Move eeh-vfio.c to drivers/vfio/pci/ > > - From eeh-vfio.c, dereference arch/powerpc/kernel/eeh.c::eeh_ops, > which > > is arch/powerpc/plaforms/powernv/eeh-powernv.c::powernv_eeh_ops. > Call > > Hrm, I think it'd be nicer to just export individual functions that do > thing you want to do from eeh.c. We already have an eeh_ops backend system with callbacks since we have different backends for RTAS and powernv, so we could do what you suggest but it would probably just boil down to wrappers around the EEH ops. No big opinion either way on my side though. Cheers, Ben.