projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dc8326
)
KVM: MMU: Fix is_rmap_pte() with io ptes
author
Avi Kivity
<avi@qumranet.com>
Sun, 23 Mar 2008 10:18:19 +0000
(12:18 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Tue, 25 Mar 2008 08:22:16 +0000
(10:22 +0200)
is_rmap_pte() doesn't take into account io ptes, which have the avail bit set.
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index d8172aabc660de7503c43b697fea470d81f7eb9a..e49c4d433c0fd6047538d2d13dc910783dce369f 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-222,8
+222,7
@@
static int is_io_pte(unsigned long pte)
static int is_rmap_pte(u64 pte)
{
- return pte != shadow_trap_nonpresent_pte
- && pte != shadow_notrap_nonpresent_pte;
+ return is_shadow_present_pte(pte);
}
static gfn_t pse36_gfn_delta(u32 gpte)