[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <45E37617.6050107@codemonkey.ws>
Date: Mon, 26 Feb 2007 18:06:47 -0600
From: Anthony Liguori <anthony@...emonkey.ws>
To: Zachary Amsden <zach@...are.com>
CC: linux-kernel@...r.kernel.org
Subject: [RFC] Use para_fill instead of vmi_get_function for APIC ops
Hi Zach,
It seems to me that the APIC paravirt_ops should be filled by
para_fill() instead of vmi_get_function(). vmi_get_function() returns a
nop when the relocation type is NONE. para_fill() leaves the native
code in place.
The native version of the apic write ops is more or less *(APIC_BASE +
reg) = value. APIC_BASE is unknown to the ROM so it's impossible to
simulate this in the ROM.
This means that a ROM has no choice but to do APIC emulation (or jump
through seriously hairy loops to get the APIC mapped in it's address
space). Was this the intention?
N.B. attached patch is just to illustrate the point. Has not even been
compile tested.
Regards,
Anthony Liguori
View attachment "vmi-apic-ops.diff" of type "text/x-patch" (553 bytes)
Powered by blists - more mailing lists