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/
Home Products Support Community News


[Xen-devel] [PATCH][qemu]Fix older kernel assigned device resume failure

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>, "Zhao, Yu" <yu.zhao@xxxxxxxxx>
Subject: [Xen-devel] [PATCH][qemu]Fix older kernel assigned device resume failure Problem
From: "Ke, Liping" <liping.ke@xxxxxxxxx>
Date: Mon, 20 Apr 2009 09:26:28 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 19 Apr 2009 18:28:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnBVwbNbuOKAuMcTvammc6uVfROgQ==
Thread-topic: [PATCH][qemu]Fix older kernel assigned device resume failure Problem
Hi, Keir&Shimada

We found when do S3 resume, some older kernel(such as rh5.1)
cmd register might be restored before BAR registers, Since
pt_bar_mapping is done when writing cmd register, it will cause
mapping incorrect address. 
It's the root_cause of when doing RH5.1 HVM S3, assigned e1000e 
network card fails to resume back. (set pci_power_mgmt=1 in guest
config file, let PM support device enter D3 hot state during guest S3)

we should call pt_bar_mapping in pt_bar_reg_write to avoid this problem
for supporting older kernels.

I have tested with latest Qemu-remote.

Thanks& Regards,

Attachment: bar_map.patch
Description: bar_map.patch

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>