summaryrefslogtreecommitdiff
path: root/drivers/kvm
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-04-28 23:20:48 +0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 11:52:31 +0400
commit2807696c3791d6dd1dcf20f022eaa2dc7615bc5d (patch)
tree7a5161b93b9f15264b741aede046992594287d2b /drivers/kvm
parent2ab455ccceb07945368709ba852e49f4c3119331 (diff)
downloadlinux-2807696c3791d6dd1dcf20f022eaa2dc7615bc5d.tar.xz
KVM: fix an if() condition
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>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index 32c64f682081..e8e228118de9 100644
--- 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);