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] Updated Local APIC Initialization

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Updated Local APIC Initialization
From: "Natasha Jarymowycz" <natasha@xxxxxxxxxx>
Date: Wed, 06 Apr 2005 22:16:23 -0500
Delivery-date: Thu, 07 Apr 2005 03:17:25 +0000
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/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>
Reply-to: natasha@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Opera M2/7.54 (Win32, build 3929)

The attached patch apic.patch updates xen/arch/x86/apic.c so that
it is based on linux 2.6.10 code.  A few changes made to linux
required reworking functions in other files as well so I held off
on those changes.  For example, setup_APIC_timer(void *) changed
to setup_APIC_timer(unsigned int).  The change has no real bearing
on the Xen code -- it's just a question of how close to
linux one wants to be.  However, that change goes with a change to
smp_call_function which would affect quite a few other files/functions
so I left it as is.  Most of the other changes are trivial.
xen/ac_timer.h was included but not needed by apic.c so I removed
it from the list of #includes.

The new apic.c includes two new files: asm/io_ports.h and
asm/mach_apic.h.  Patches to create those files are included as well.

I tested the changes by booting xen on my machine.  "xm dmesg" showed
a trivial change to the cpu speed detected:

< (XEN) Detected 2992.616 MHz processor.
(XEN) Detected 2992.596 MHz processor.

< (XEN) ..... CPU clock speed is 2992.5438 MHz.
(XEN) ..... CPU speed is 2992.5282 MHz.


I also created a second domain where I created a large file with dd
and copied it over the "network" to domain 0.  There were no interrupt
error messages and nothing out of the ordinary occurred.

-Natasha

Signed-off-by: Natasha Jarymowycz <natasha@xxxxxxxxxx>

Attachment: apic.patch
Description: Binary data

Attachment: io_ports.patch
Description: Binary data

Attachment: mach_apic.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Updated Local APIC Initialization, Natasha Jarymowycz <=