From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bprpH-0005cA-96 for qemu-devel@nongnu.org; Fri, 30 Sep 2016 03:01:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bprpC-0004bA-AM for qemu-devel@nongnu.org; Fri, 30 Sep 2016 03:01:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bprpC-0004b6-4o for qemu-devel@nongnu.org; Fri, 30 Sep 2016 03:01:38 -0400 From: Markus Armbruster References: <1473839464-8670-1-git-send-email-caoj.fnst@cn.fujitsu.com> <1473839464-8670-4-git-send-email-caoj.fnst@cn.fujitsu.com> <874m4y94dx.fsf@dusky.pond.sub.org> <57EDFBC5.8020203@cn.fujitsu.com> Date: Fri, 30 Sep 2016 09:01:34 +0200 In-Reply-To: <57EDFBC5.8020203@cn.fujitsu.com> (Cao jin's message of "Fri, 30 Sep 2016 13:44:37 +0800") Message-ID: <87r381vpkh.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 3/8] pci: Convert msix_init() to Error and fix callers to check it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cao jin Cc: Jiri Pirko , "Michael S. Tsirkin" , Jason Wang , qemu-devel@nongnu.org, Dmitry Fleytman , Alex Williamson , Hannes Reinecke , Marcel Apfelbaum , Paolo Bonzini , Gerd Hoffmann Cao jin writes: > On 09/29/2016 10:17 PM, Markus Armbruster wrote: >> Cao jin writes: >> > >>> >>> -/* Initialize the MSI-X structures */ >>> +/* Make PCI device @dev MSI-X capable >>> + * @nentries is the max number of MSI-X vectors that the device support. >>> + * @table_bar is the MemoryRegion that MSI-X table structure resides. >>> + * @table_bar_nr is number of base address register corresponding to @table_bar. >>> + * @table_offset indicates the offset that the MSI-X table structure starts with >>> + * in @table_bar. >>> + * @pba_bar is the MemoryRegion that the Pending Bit Array structure resides. >>> + * @pba_bar_nr is number of base address register corresponding to @pba_bar. >>> + * @pba_offset indicates the offset that the Pending Bit Array structure >>> + * starts with in @pba_bar. >>> + * Non-zero @cap_pos puts capability MSI-X at that offset in PCI config space. >>> + * >>> + * Return 0 on success; return -errno on error: >> >> Previous version had: >> >> + * @errp is for returning errors. >> + * >> + * Return 0 on success; set @errp and return -errno on error. >> >> Intentional change? I like the old one better. >> > > Oh...it was lost by me. I was planning move these comments into a > separate patch, but later feel that it is not worth the trouble, so I > undo the movement, it is lost during the process. Let's restore it then. >> Might conflict with Eric Auger's "Convert VFIO-PCI to realize" series, >> but resolving that shouldn't be hard. >> >> [...] >> >> The conversion looks good to me now.