From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ZRm-00073y-S7 for qemu-devel@nongnu.org; Tue, 27 Sep 2011 11:19:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8ZRe-0004qm-CO for qemu-devel@nongnu.org; Tue, 27 Sep 2011 11:19:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ZRe-0004qd-0S for qemu-devel@nongnu.org; Tue, 27 Sep 2011 11:19:42 -0400 Date: Tue, 27 Sep 2011 18:20:43 +0300 From: "Michael S. Tsirkin" Message-ID: <20110927152041.GB13889@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Try to integrate the Xen PCI Passthrough code into linux: have pci_regs conflict with libpci. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony PERARD Cc: Xen Devel , Konrad Rzeszutek Wilk , Stefano Stabellini , Alexander Graf , QEMU-devel , Alex Williamson On Tue, Sep 27, 2011 at 04:02:23PM +0100, Anthony PERARD wrote: > Hi, > > I'm trying to integrate the Xen PCI Passthrough code into Qemu. But we > use libpci, and it's not friendly with pci_regs.h. > > So can I replace pci_regs by the libpci one? I prefer sticking to pci_regs in linux. > Should I avoid to include both? (by having a "hook" the libpci functions) > Or do you have any other suggestions? > > Thanks, > Regards, Can you avoid libpci? It was very useful before sysfs, but on modern systems there isn't much that it does. -- MST