diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-20 13:29:06 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 09:52:25 +0200 |
commit | ca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9 (patch) | |
tree | f313cbd517fd2d0deb5f92175f924303582b976c /drivers | |
parent | KVM: Avoid guest virtual addresses in string pio userspace interface (diff) | |
download | linux-ca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9.tar.xz linux-ca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9.zip |
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: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index f3bcee904651..17bd4400c92b 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h @@ -148,8 +148,7 @@ static int FNAME(walk_addr)(struct guest_walker *walker, 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; paddr = safe_gpa_to_hpa(vcpu, *ptep & PT_BASE_ADDR_MASK); kunmap_atomic(walker->table, KM_USER0); |