diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-20 14:29:06 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 10:52:25 +0300 |
commit | ca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9 (patch) | |
tree | f313cbd517fd2d0deb5f92175f924303582b976c /drivers/kvm/paging_tmpl.h | |
parent | 039576c03c35e2f990ad9bb9c39e1bad3cd60d34 (diff) | |
download | linux-ca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9.tar.bz2 |
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/kvm/paging_tmpl.h')
-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); |