aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/mmu.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-04-28 15:20:48 -0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:31 -0400
commit2807696c3791d6dd1dcf20f022eaa2dc7615bc5d (patch)
tree7a5161b93b9f15264b741aede046992594287d2b /drivers/kvm/mmu.c
parent2ab455ccceb07945368709ba852e49f4c3119331 (diff)
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/mmu.c')
-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,
1408 for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) { 1408 for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) {
1409 u64 ent = pt[i]; 1409 u64 ent = pt[i];
1410 1410
1411 if (!ent & PT_PRESENT_MASK) 1411 if (!(ent & PT_PRESENT_MASK))
1412 continue; 1412 continue;
1413 1413
1414 va = canonicalize(va); 1414 va = canonicalize(va);