Commit ca5aac1f authored by Avi Kivity's avatar Avi Kivity

KVM: MMU: Remove unnecessary check for pdptr access

We already special case the pdptr access, so no need to check it again.
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 039576c0
...@@ -148,8 +148,7 @@ static int FNAME(walk_addr)(struct guest_walker *walker, ...@@ -148,8 +148,7 @@ static int FNAME(walk_addr)(struct guest_walker *walker,
break; break;
} }
if (walker->level != 3 || is_long_mode(vcpu)) walker->inherited_ar &= walker->table[index];
walker->inherited_ar &= walker->table[index];
table_gfn = (*ptep & PT_BASE_ADDR_MASK) >> PAGE_SHIFT; table_gfn = (*ptep & PT_BASE_ADDR_MASK) >> PAGE_SHIFT;
paddr = safe_gpa_to_hpa(vcpu, *ptep & PT_BASE_ADDR_MASK); paddr = safe_gpa_to_hpa(vcpu, *ptep & PT_BASE_ADDR_MASK);
kunmap_atomic(walker->table, KM_USER0); kunmap_atomic(walker->table, KM_USER0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment