diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2007-05-02 13:27:15 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:15 -0400 |
commit | d4c104771a1c58e3de2a888b73b0ba1b54c0ae76 (patch) | |
tree | 77ca2c6771e946aa926cb21c06702fdc7d230364 /arch/i386/kernel/paravirt.c | |
parent | 63f70270ccd981ce40a8ff58c03a8c2e97e368be (diff) |
[PATCH] i386: PARAVIRT: add flush_tlb_others paravirt_op
This patch adds a pv_op for flush_tlb_others. Linux running on native
hardware uses cross-CPU IPIs to flush the TLB on any CPU which may
have a particular mm's pagetable entries cached in its TLB. This is
inefficient in a paravirtualized environment, since the hypervisor
knows which real CPUs actually contain cached mappings, which may be a
small subset of a guest's VCPUs.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386/kernel/paravirt.c')
-rw-r--r-- | arch/i386/kernel/paravirt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/i386/kernel/paravirt.c b/arch/i386/kernel/paravirt.c index b0ed163e6f7..c7f0cf92925 100644 --- a/arch/i386/kernel/paravirt.c +++ b/arch/i386/kernel/paravirt.c | |||
@@ -300,6 +300,7 @@ struct paravirt_ops paravirt_ops = { | |||
300 | .flush_tlb_user = native_flush_tlb, | 300 | .flush_tlb_user = native_flush_tlb, |
301 | .flush_tlb_kernel = native_flush_tlb_global, | 301 | .flush_tlb_kernel = native_flush_tlb_global, |
302 | .flush_tlb_single = native_flush_tlb_single, | 302 | .flush_tlb_single = native_flush_tlb_single, |
303 | .flush_tlb_others = native_flush_tlb_others, | ||
303 | 304 | ||
304 | .map_pt_hook = paravirt_nop, | 305 | .map_pt_hook = paravirt_nop, |
305 | 306 | ||