mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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>
This commit is contained in:
parent
2ab455ccce
commit
2807696c37
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) {
|
||||||
u64 ent = pt[i];
|
u64 ent = pt[i];
|
||||||
|
|
||||||
if (!ent & PT_PRESENT_MASK)
|
if (!(ent & PT_PRESENT_MASK))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
va = canonicalize(va);
|
va = canonicalize(va);
|
||||||
|
|
Loading…
Add table
Reference in a new issue