projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab455c
)
KVM: fix an if() condition
author
Adrian Bunk
<bunk@stusta.de>
Sat, 28 Apr 2007 19:20:48 +0000
(21:20 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Thu, 3 May 2007 07:52:31 +0000
(10:52 +0300)
It might have worked in this case since PT_PRESENT_MASK is 1, but let's
express this correctly.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/drivers/kvm/mmu.c
b/drivers/kvm/mmu.c
index 32c64f6820810e2bd023598f612b39a0aa7d92f4..e8e228118de9be496660ac8fa9ece297a39c1b57 100644
(file)
--- a/
drivers/kvm/mmu.c
+++ b/
drivers/kvm/mmu.c
@@
-1408,7
+1408,7
@@
static void audit_mappings_page(struct kvm_vcpu *vcpu, u64 page_pte,
for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) {
u64 ent = pt[i];
- if (!
ent & PT_PRESENT_MASK
)
+ if (!
(ent & PT_PRESENT_MASK)
)
continue;
va = canonicalize(va);