aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2007-05-02 13:27:15 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:15 -0400
commit4cdd9c8931767e1c56a51a1078d33a8c340f4405 (patch)
treebf8b49009011bb2dffe9683dffdcbfe3b90375f9 /arch/i386
parent1a45b7aaa5051489b46afbc48509bd91f8b4a1ba (diff)
[PATCH] i386: PARAVIRT: drop unused ptep_get_and_clear
In shadow mode hypervisors, ptep_get_and_clear achieves the desired purpose of keeping the shadows in sync by issuing a native_get_and_clear, followed by a call to pte_update, which indicates the PTE has been modified. Direct mode hypervisors (Xen) have no need for this anyway, and will trap the update using writable pagetables. This means no hypervisor makes use of ptep_get_and_clear; there is no reason to have it in the paravirt-ops structure. Change confusing terminology about raw vs. native functions into consistent use of native_pte_xxx for operations which do not invoke paravirt-ops. Signed-off-by: Zachary Amsden <zach@vmware.com> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/kernel/paravirt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/i386/kernel/paravirt.c b/arch/i386/kernel/paravirt.c
index 596f382c641c..c4850ddd6a9d 100644
--- a/arch/i386/kernel/paravirt.c
+++ b/arch/i386/kernel/paravirt.c
@@ -315,8 +315,6 @@ struct paravirt_ops paravirt_ops = {
315 .pte_update = paravirt_nop, 315 .pte_update = paravirt_nop,
316 .pte_update_defer = paravirt_nop, 316 .pte_update_defer = paravirt_nop,
317 317
318 .ptep_get_and_clear = native_ptep_get_and_clear,
319
320#ifdef CONFIG_HIGHPTE 318#ifdef CONFIG_HIGHPTE
321 .kmap_atomic_pte = kmap_atomic, 319 .kmap_atomic_pte = kmap_atomic,
322#endif 320#endif