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>, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Improve the current FLR logic
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 18 Jul 2008 14:37:30 +0800
Cc:
Delivery-date: Thu, 17 Jul 2008 23:37:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080717175837.1B4F.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: <FE7BBCFBB500984A9A7922EBC95F516E0169A036@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080717175837.1B4F.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acjn8DUNS9n0iQ+kRgiB1/sa/h5fwwArwaHQ
Thread-topic: [Xen-devel] [PATCH] Improve the current FLR logic
Yuji Shimada wrote:
> On Sat, 12 Jul 2008 20:37:34 +0800
> "Cui, Dexuan" <dexuan.cui@xxxxxxxxx> wrote:
> 
>> I'd like to ask for your comments, and test feedbacks. Thank you very
>> much!
> 
> There is a problem with the device reconfiguring logic. xend saves all
> Configuration Register's values before reset. And xend writes the
> values to the registers after reset. This means the resister's values
> which are configured by guest software are restore. Guest software
> setting should be cleared.

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 this may be a good idea. 
I tend to make the least change to the current code. :-)


Thanks,
-- Dexuan

> 
> I think the following Configuration Resister should be reconfigured to
> correct values after reset. And other registers should not be
> reconfigured after reset if there is no reason.
> 
> - It is necessary to write the base address of the resource allocated
>   by the dom0 kernel to the following resister.
>     - Base Address Register
> 
> - When dom0 starts, the values configured by firmware should be saved,
>   and the values should be written to the following resisters after
>   reset. The reason is that firmware configures them to archive system
>   specific functions. Especially, the registers relating error
>   reporting are configured to collect error information. If this
>   configured values is changed, some functions might be lost.
>   Instead of save/restore, it is good way to write the value from _HPX
>   method to registers, I think. _HPX method returns the value to write
>   to registers.
>     - Cache-line size Register
>     - Latency timer Register
>     - Enable SERR Bit/Enable PERR Bit in Device Control Register
>     - 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
> 
> - The following resister should be configured to "0".
>     - PME Enable Bit/PME Status Bit in PCI Power Management
>       Control/Status Register
> 
> I would like to discuss this logic more.
> 
> Thanks.


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

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