vlapic_read() takes address instead of offset as an index into APIC
page. The following patch fixes a typo when calling vlapic_read()
function. Not tested yet. But this typo is so obvious...
diff -r 8af26fef898c xen/arch/x86/hvm/vlapic.c
--- a/xen/arch/x86/hvm/vlapic.c Fri Jul 24 12:08:54 2009 +0100
+++ b/xen/arch/x86/hvm/vlapic.c Sun Aug 09 02:58:32 2009 -0500
@@ -605,7 +605,7 @@ static int vlapic_write(struct vcpu *v,
gdprintk(XENLOG_INFO, "Notice: Local APIC write with len
%lx\n",len);
alignment = offset & 0x3;
- (void)vlapic_read(v, offset & ~0x3, 4, &tmp);
+ (void)vlapic_read(v, address & ~0x3, 4, &tmp);
switch ( len )
{
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel