diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-11 12:32:30 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:52:51 +0200 |
commit | e3c5e7ec9efe0ebd47fa812cc86f01c51905edf6 (patch) | |
tree | b049d19c4a1a417977a286781d98301b39bea4f2 /drivers/kvm/mmu.c | |
parent | 4a4c99248713e878e1e2880015d01049aec805f3 (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.c | 5 |
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) return pte & PT_WRITABLE_MASK; } +static int is_dirty_pte(unsigned long pte) +{ + return pte & PT_DIRTY_MASK; +} + static int is_io_pte(unsigned long pte) { return pte & PT_SHADOW_IO_MARK; |