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] Improve the current FLR logic

To: "Yuji Shimada" <shimada-yxb@xxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Improve the current FLR logic
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Wed, 23 Jul 2008 11:16:31 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 22 Jul 2008 20:18:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080722190438.2DB1.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: <20080718183028.9842.SHIMADA-YXB@xxxxxxxxxxxxxxx> <FE7BBCFBB500984A9A7922EBC95F516E01711390@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080722190438.2DB1.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acjr5BPowGQnLBSfQreSibV9NDjLUwAiC/HQ
Thread-topic: [Xen-devel] [PATCH] Improve the current FLR logic
Yuji Shimada wrote:
> On Fri, 18 Jul 2008 18:43:49 +0800
> "Cui, Dexuan" <dexuan.cui@xxxxxxxxx> wrote:
>> Hi Yuji,
>> Thanks for your advice!
>> To restore the values of the PCIe registers to the original values
>> the firmware (and Dom0?) configues, we need to store the original
>> values somewhere. Maybe we can restore the info into xenstore?
> 
> Hi Cui,
> Xenstore is OK, but pciback is better place, I think.
> Because device driver should configure devices.
I think xenstore seems to be a little ugly place to remember the proper
values of all or part of registers of all the devices in the system.
I agree pciback is a good place.

> If we do it in pciback, the coding might be difficult. But the
> whole architecture will be simple.
Yes. Now I realize pciback seems to be the best place to do most of the
FLR logic.
But this needs modify pciback and add interfaces for Control Panel.
I'm not sure the changes can be small enought to be in 3.3.

> 
> I think the following saving/restoring timing is good.
>   - saving    : after pciback bind device
>   - restoring : after xend writes SBDF into xenstore
>                 before pciback removes backend device
> 
>>> What do you think about following method?
>>> 
>>>      1. create the table, and fill offset, size, etc. of registers
>>>         to save/restore into the table.
>>> 
>>>      2. save/restore registers based on the table.
>> This sounds nice.
>> Where should we store the table?
> 
> I don't think device specific tables are required.
> So we only have to create one table.
> xend (or pciback if you implement saving/restoring in pciback) is good
> place, I think.
> 

Thanks,
-- Dexuan

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