diff options
author | Jeremy Fitzhardinge <jeremy@xensource.com> | 2007-07-17 21:37:06 -0400 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2007-07-18 11:47:44 -0400 |
commit | d66bf8fcf3fce058a1cd164a7c8ee6093fdf039c (patch) | |
tree | d09a2a4a8d0e81b8f19a4844c18690fe521bf513 /arch/i386/xen/multicalls.c | |
parent | f120f13ea0dbb0b0d6675683d5f6faea71277e65 (diff) |
xen: lazy-mmu operations
This patch uses the lazy-mmu hooks to batch mmu operations where
possible. This is primarily useful for batching operations applied to
active pagetables, which happens during mprotect, munmap, mremap and
the like (mmap does not do bulk pagetable operations, so it isn't
helped).
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'arch/i386/xen/multicalls.c')
-rw-r--r-- | arch/i386/xen/multicalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/xen/multicalls.c b/arch/i386/xen/multicalls.c index d4015a9ed46c..c837e8e463db 100644 --- a/arch/i386/xen/multicalls.c +++ b/arch/i386/xen/multicalls.c | |||
@@ -26,8 +26,8 @@ | |||
26 | 26 | ||
27 | #include "multicalls.h" | 27 | #include "multicalls.h" |
28 | 28 | ||
29 | #define MC_BATCH 8 | 29 | #define MC_BATCH 32 |
30 | #define MC_ARGS (MC_BATCH * 32 / sizeof(u64)) | 30 | #define MC_ARGS (MC_BATCH * 16 / sizeof(u64)) |
31 | 31 | ||
32 | struct mc_buffer { | 32 | struct mc_buffer { |
33 | struct multicall_entry entries[MC_BATCH]; | 33 | struct multicall_entry entries[MC_BATCH]; |