aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/mmu.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-10-11 06:32:30 -0400
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:52:51 -0500
commite3c5e7ec9efe0ebd47fa812cc86f01c51905edf6 (patch)
treeb049d19c4a1a417977a286781d98301b39bea4f2 /drivers/kvm/mmu.c
parent4a4c99248713e878e1e2880015d01049aec805f3 (diff)
KVM: Move guest pte dirty bit management to the guest pagetable walker
This is more consistent with the accessed bit management, and makes the dirty bit available earlier for other purposes. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/mmu.c')
-rw-r--r--drivers/kvm/mmu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index d046ba807763..e6616a6c9cef 100644
--- a/drivers/kvm/mmu.c
+++ b/drivers/kvm/mmu.c
@@ -199,6 +199,11 @@ static int is_writeble_pte(unsigned long pte)
199 return pte & PT_WRITABLE_MASK; 199 return pte & PT_WRITABLE_MASK;
200} 200}
201 201
202static int is_dirty_pte(unsigned long pte)
203{
204 return pte & PT_DIRTY_MASK;
205}
206
202static int is_io_pte(unsigned long pte) 207static int is_io_pte(unsigned long pte)
203{ 208{
204 return pte & PT_SHADOW_IO_MARK; 209 return pte & PT_SHADOW_IO_MARK;