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: Fri, 18 Jul 2008 18:43:49 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Fri, 18 Jul 2008 03:45:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080718183028.9842.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: <20080717175837.1B4F.SHIMADA-YXB@xxxxxxxxxxxxxxx> <FE7BBCFBB500984A9A7922EBC95F516E017111DF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080718183028.9842.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjoujER3eAmZm3mRDWMKWDa8ee0OwAB6SMg
Thread-topic: [Xen-devel] [PATCH] Improve the current FLR logic
Yuji Shimada wrote:
> On Fri, 18 Jul 2008 14:37:30 +0800
> "Cui, Dexuan" <dexuan.cui@xxxxxxxxx> wrote:
> 
>> Now xend saves and restores all the 256-byte space -- this is not
>> suitable as you pointed. How about only saving/restoring the header
>> (the first 64-byte)? 
> 
> I think following registers in PCI Express Capability Structure
> should be restored. The reason is that host firmware might configure
> them. 
> 
>      - Uncorrectable Error Mask Register
>      - Uncorrectable Error Severity Register
>      - Correctable Error Mask Register
>      - Advanced Error Capabilities and Control Register
>      - Device Control Register
>      - Link Control Register
>      - Secondary Uncorrectable Error Severity Register
>      - Secondary Uncorrectable Error Mask Register
>      - Device Control 2 Register
>      - Link Control 2 Register

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?

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

Thanks,
-- Dexuan

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