WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: Try to integrate the Xen PCI Passthrough code into l

To: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Try to integrate the Xen PCI Passthrough code into linux: have pci_regs conflict with libpci.
From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Date: Tue, 27 Sep 2011 17:14:42 +0100
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, QEMU-devel <qemu-devel@xxxxxxxxxx>, Alexander Graf <agraf@xxxxxxx>, Alex Williamson <alex.williamson@xxxxxxxxxx>, Anthony Liguori <anthony@xxxxxxxxxxxxx>
Delivery-date: Tue, 27 Sep 2011 09:16:07 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=iupPC9MVJWpYyGb14fVDRPYGYZRXhGsrQ10VQjKib9Q=; b=Hq1bF3Yjm7lvXnFP2xwIZVRQjn9sFg9vwwUI4SXpujrQOsNX0wmLmtAt0ZYTW6Dx+j xty/BJkuoBXHPd3vTzzSHag6jeyfj5DFA/Y/hXpoUaDLJitNOnJaGdP+YQ4NEV2WjbbW 90GIMc/8WSagl2V2rO4sG8XOXftonhVoQTtqY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110927152041.GB13889@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAJJyHjK3ySHcHRC6eB2cPS=-=1JnqsWV4tXG0xDJgxpS2jG4=w@xxxxxxxxxxxxxx> <20110927152041.GB13889@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Sep 27, 2011 at 16:20, Michael S. Tsirkin <mst@xxxxxxxxxx> wrote:
> 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.

Fair enough.

>> 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.

I was thinking to keep any compatibility with a *BSD system, but since
there is one function that assume the existance of the sysfs, I will
just "rewrote" the needed functions and remove the usage of libpci.

Thanks,

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>