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] [PATCH 0/4] dom0 linux: Reserve device for guest with de

To: "Yuji Shimada" <shimada-yxb@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/4] dom0 linux: Reserve device for guest with device path
From: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Date: Fri, 26 Dec 2008 17:33:20 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Dec 2008 09:33:54 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LvrjKrf9s+FFiVKiikwGKriKQA8WKs9Pcnu1/50SkHU=; b=RCeQSDLptUBh846k+JtRZC0v0qoH4Njd1h8vTUsIzAC0n5AIJoQnQwroLPjlXFZQm6 I+ZSd9DYvbmeyw0cc7t/MnvuiWryaaEbRf7r4xSx8JCPiEASKOiZxvLobtvOE1C3oqB6 uNlifBB1HdXTZDudyb+JKuhrOoMTrBPvSYlWE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MlIx3NPjft5vHAMS5JRXfnR1TzUR4VJ5fuAv37UYluTX13erdRQSkvMi/8yekfq/u9 r8HzKIkihJMEpZTtih0JVd0idqTj771oznlfxF5H8mGYmqBIWOy2J7gVxDP8AaST56rF RJs1EW7d8KozTMDWElwB0ruxjyD+vHJuYuWsM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081226131611.5C10.SHIMADA-YXB@xxxxxxxxxxxxxxx>
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: <20081225160004.8599.SHIMADA-YXB@xxxxxxxxxxxxxxx> <20081226131611.5C10.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Dec 26, 2008 at 4:28 AM, Yuji Shimada
<shimada-yxb@xxxxxxxxxxxxxxx> wrote:
> Please find attached a example script to convert SBDF to device path.
>
> The script can be executed as follows.
>
> # chmod 755 device_path.py
> # device_path.py 07:00.0
> PNP0A03:100-1c.1-00.0

When I run this script it fails because /sys/firmware/acpi/namespace/
is missing, I have checked kernel options and I cannot see why it is
not here, do you have any suggestion as to what I need to enable?

I am using 2.6.27.

andy

>
> I will take a vacation from 27 Dec. to 4 Jan. I will not be able to
> respond to a mail.
>
> Thanks,
> --
> Yuji Shimada
>
> On Thu, 25 Dec 2008 16:08:01 +0900
> Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx> wrote:
>
>> This series of patches add the function to dom0 linux to reserve PCI
>> device for guest domain with device path. Following is example of device
>> path.
>>
>>         PNP0A03:100-1c.1-00.0
>>
>>
>> Currently if we assign PCI device to guest domain, we have to specify
>> PCI device with "pciback.hide=" boot parameter. If PCI device has small
>> memory resource and BIOS does not assign page-aligned memory resource,
>> we have to specify PCI device with "reassigndev=" boot parameter also.
>>
>> "pciback.hide=" and "reassigndev=" use SBDF(Segment#, Bus#, Device#,
>> Function#). Segment# and Bus# can be changed at boot time. So they are
>> not suitable for specifying PCI device at boot time.
>>
>>
>> My patches integrate "pciback.hide=" and "reassigndev=" into one
>> "guestdev=" boot parameter. So we have to specify only one boot
>> parameter. The format of device path is following.
>>
>>         <hid>[:<uid>]-<dev>.<func>[-<dev>.<func>[...]]
>>
>> Device path is not changed at boot time. So it is suitable for
>> specifying PCI device at boot time.
>>
>>
>> My patches add "reassign_resources" boot parameter too. If reassignment
>> is needed, please set it.
>>
>>
>> Following is example of dom0 linux's boot parameter.
>>
>>         reassign_resources guestdev=PNP0A03:100-1c.1-00.0,PNP0A03:100-1d.7
>>
>>
>> The series consists of following patches.
>>
>> 1. Expose HID,UID,SEG,BBN of PCI root bridge via sysfs.
>> 2. Add "guestdev=" boot parameter.
>> 3. Bind PCI back driver to PCI device specified by "guestdev=".
>> 4. Cleanup function name relating resource reassignment.
>>
>>
>> I will take a vacation from 27 Dec. to 4 Jan. I will not be able to
>> respond to a mail.
>>
>> Thanks,
>> --
>> Yuji Shimada.
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>

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

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