OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ffd92c
)
KVM: MMU: Fix is_dirty_pte()
author
Avi Kivity
<avi@redhat.com>
Wed, 10 Jun 2009 09:56:54 +0000
(12:56 +0300)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 05:32:50 +0000
(08:32 +0300)
is_dirty_pte() is used on guest ptes, not shadow ptes, so it needs to avoid
shadow_dirty_mask and use PT_DIRTY_MASK instead.
Misdetecting dirty pages could lead to unnecessarily setting the dirty bit
under EPT.
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index
8ee67e3
..
8f2cb29
100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-242,7
+242,7
@@
static int is_writeble_pte(unsigned long pte)
static int is_dirty_pte(unsigned long pte)
{
- return pte &
shadow_dirty_mask
;
+ return pte &
PT_DIRTY_MASK
;
}
static int is_rmap_pte(u64 pte)