kernel-fxtec-pro1x/include/xen
Jeremy Fitzhardinge e57778a1e3 xen: implement ptep_modify_prot_start/commit
Xen has a pte update function which will update a pte while preserving
its accessed and dirty bits.  This means that ptep_modify_prot_start() can be
implemented as a simple read of the pte value.  The hardware may
update the pte in the meantime, but ptep_modify_prot_commit() updates it while
preserving any changes that may have happened in the meantime.

The updates in ptep_modify_prot_commit() are batched if we're currently in lazy
mmu mode.

The mmu_update hypercall can take a batch of updates to perform, but
this code doesn't make particular use of that feature, in favour of
using generic multicall batching to get them all into the hypervisor.

The net effect of this is that each mprotect pte update turns from two
expensive trap-and-emulate faults into they hypervisor into a single
hypercall whose cost is amortized in a batched multicall.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-06-25 15:17:23 +02:00
..
interface xen: implement ptep_modify_prot_start/commit 2008-06-25 15:17:23 +02:00
balloon.h xen: add balloon driver 2008-04-24 23:57:33 +02:00
events.h xen: implement save/restore 2008-05-27 10:11:38 +02:00
features.h xen: Core Xen implementation 2007-07-18 08:47:42 -07:00
grant_table.h xen: implement save/restore 2008-05-27 10:11:38 +02:00
hvc-console.h xen: fix "xen: implement save/restore" 2008-05-29 09:31:57 +02:00
page.h xen: make include/xen/page.h portable moving those definitions under asm dir 2008-04-24 23:57:32 +02:00
xen-ops.h xen: maintain clock offset over save/restore 2008-05-27 10:11:38 +02:00
xenbus.h xen blkfront: Delay wait for block devices until after the disk is added 2008-04-24 23:57:33 +02:00
xencomm.h xen: import arch generic part of xencomm 2008-04-24 23:57:32 +02:00