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

[Xen-devel][PATCH]Fix the read error from IRR,ISR and TMR

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel][PATCH]Fix the read error from IRR,ISR and TMR
From: "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>
Date: Thu, 31 Aug 2006 15:47:50 +0800
Delivery-date: Thu, 31 Aug 2006 00:49:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbM0cC4LzpDP1xsScihn3p0rzSgGA==
Thread-topic: [Xen-devel][PATCH]Fix the read error from IRR,ISR and TMR

This patch fixes the error when read from APIC registers like IRR, ISR and TMR, guest cannot get correct value.

Since from SDM3 spec, for APIC registers, all 32-bit registers should be accessed using 128-bit aligned 32bit loads or stores.

And wider registers (64-bit or 256-bit) must be accessed using multiple 32-bit loads or stores.

 

In old APIC virtualization code, we use IRR, ISR and TMR which are 256-bit registers as contiguous bit maps other than multiple 32-bit.

So guest always fetch error values.

 

Signed-off-by: Xiaohui Xin <xiaohui.xin@xxxxxxxxx>

Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>

Signed-off-by: Eddie Dong <eddie.dong@xxxxxxxxx>

Attachment: apic_1.diff
Description: apic_1.diff

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>