[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.