aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lguest
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-07-14 12:49:14 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-18 13:06:13 -0400
commit511d9d34183662aada3890883e860b151d707e22 (patch)
tree3f35fea1dea6022a775b1dcb846cf56f2707717f /arch/x86/lguest
parent9a8f0e6b5dfe3b4f330fc82b16a4000f5688fce8 (diff)
x86: apic_ops for lguest
apic_ops for lguest. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Acked-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/lguest')
-rw-r--r--arch/x86/lguest/boot.c35
1 files changed, 32 insertions, 3 deletions
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c
index 0c45df20e2b3..675ee7a6475e 100644
--- a/arch/x86/lguest/boot.c
+++ b/arch/x86/lguest/boot.c
@@ -791,6 +791,37 @@ static u32 lguest_apic_read(u32 reg)
791{ 791{
792 return 0; 792 return 0;
793} 793}
794
795static u64 lguest_apic_icr_read(void)
796{
797 return 0;
798}
799
800static void lguest_apic_icr_write(u32 low, u32 id)
801{
802 /* Warn to see if there's any stray references */
803 WARN_ON(1);
804}
805
806static void lguest_apic_wait_icr_idle(void)
807{
808 return;
809}
810
811static u32 lguest_apic_safe_wait_icr_idle(void)
812{
813 return 0;
814}
815
816static struct apic_ops lguest_basic_apic_ops = {
817 .read = lguest_apic_read,
818 .write = lguest_apic_write,
819 .write_atomic = lguest_apic_write,
820 .icr_read = lguest_apic_icr_read,
821 .icr_write = lguest_apic_icr_write,
822 .wait_icr_idle = lguest_apic_wait_icr_idle,
823 .safe_wait_icr_idle = lguest_apic_safe_wait_icr_idle,
824};
794#endif 825#endif
795 826
796/* STOP! Until an interrupt comes in. */ 827/* STOP! Until an interrupt comes in. */
@@ -990,9 +1021,7 @@ __init void lguest_init(void)
990 1021
991#ifdef CONFIG_X86_LOCAL_APIC 1022#ifdef CONFIG_X86_LOCAL_APIC
992 /* apic read/write intercepts */ 1023 /* apic read/write intercepts */
993 pv_apic_ops.apic_write = lguest_apic_write; 1024 apic_ops = &lguest_basic_apic_ops;
994 pv_apic_ops.apic_write_atomic = lguest_apic_write;
995 pv_apic_ops.apic_read = lguest_apic_read;
996#endif 1025#endif
997 1026
998 /* time operations */ 1027 /* time operations */