[PATCH 3/4] Don't set pagetable_setup_{start,done} hooks on x86_64

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: <akpm@...>, <glommer@...>, <tglx@...>, <mingo@...>, <ehabkost@...>, <jeremy@...>, <avi@...>, <anthony@...>, <virtualization@...>, <rusty@...>, <ak@...>, <chrisw@...>, <rostedt@...>, <hpa@...>, <zach@...>, <roland@...>, <mtosatti@...>
Date: Monday, January 21, 2008 - 5:48 pm

paravirt_pagetable_setup_{start,done}() are not used (yet) under x86_64,
and native_pagetable_setup_{start,done}() don't exist on x86_64. So they
don't need to be set.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 arch/x86/kernel/paravirt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index c67d331..37f38b7 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -367,8 +367,10 @@ struct pv_apic_ops pv_apic_ops = {
 };
 
 struct pv_mmu_ops pv_mmu_ops = {
+#ifndef CONFIG_X86_64
 	.pagetable_setup_start = native_pagetable_setup_start,
 	.pagetable_setup_done = native_pagetable_setup_done,
+#endif
 
 	.read_cr2 = native_read_cr2,
 	.write_cr2 = native_write_cr2,
-- 
1.5.3.4

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] paravirt_ops-64 compile fixes, Eduardo Habkost, (Mon Jan 21, 5:48 pm)
Re: [PATCH 0/4] paravirt_ops-64 compile fixes, Ingo Molnar, (Tue Jan 22, 8:02 am)
Re: [PATCH 0/4] paravirt_ops-64 compile fixes, Eduardo Pereira Habkost, (Tue Jan 22, 8:34 am)
Re: [PATCH 0/4] paravirt_ops-64 compile fixes, Jeremy Fitzhardinge, (Tue Jan 22, 1:55 pm)
Re: [PATCH 0/4] paravirt_ops-64 compile fixes, Ingo Molnar, (Tue Jan 22, 3:47 pm)
Re: [PATCH 0/4] paravirt_ops-64 compile fixes, Jeremy Fitzhardinge, (Tue Jan 22, 4:05 pm)
[PATCH 1/2] Allow enabling PARAVIRT without any guest implem..., Eduardo Pereira Habkost, (Tue Jan 22, 2:50 pm)
[PATCH 2/2] Remove depends on X86_32 from PARAVIRT &amp; PAR..., Eduardo Pereira Habkost, (Tue Jan 22, 2:52 pm)
[PATCH 3/4] Don't set pagetable_setup_{start,done} hooks on ..., Eduardo Habkost, (Mon Jan 21, 5:48 pm)
[PATCH 1/4] Add missing semicolon to SWAPGS macro, Eduardo Habkost, (Mon Jan 21, 5:48 pm)