From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpqcB-0005tw-56 for qemu-devel@nongnu.org; Fri, 30 Sep 2016 01:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpqc8-0001xB-1F for qemu-devel@nongnu.org; Fri, 30 Sep 2016 01:44:07 -0400 Received: from [59.151.112.132] (port=56662 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpqc7-0001tv-9w for qemu-devel@nongnu.org; Fri, 30 Sep 2016 01:44:03 -0400 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> From: Cao jin Message-ID: <57EDFBC5.8020203@cn.fujitsu.com> Date: Fri, 30 Sep 2016 13:44:37 +0800 MIME-Version: 1.0 In-Reply-To: <874m4y94dx.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit 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: Markus Armbruster Cc: qemu-devel@nongnu.org, Jiri Pirko , "Michael S. Tsirkin" , Jason Wang , Marcel Apfelbaum , Alex Williamson , Hannes Reinecke , Dmitry Fleytman , Paolo Bonzini , Gerd Hoffmann 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. > > 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. > > > . > -- Yours Sincerely, Cao jin