summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/paging_tmpl.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-20 14:29:06 +0200
committerAvi Kivity <avi@qumranet.com>2007-05-03 10:52:25 +0300
commitca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9 (patch)
treef313cbd517fd2d0deb5f92175f924303582b976c /drivers/kvm/paging_tmpl.h
parent039576c03c35e2f990ad9bb9c39e1bad3cd60d34 (diff)
downloadblackbird-op-linux-ca5aac1f96c18b5e4dcfea253d7ab607b5dcd5c9.tar.gz
blackbird-op-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/kvm/paging_tmpl.h')
-rw-r--r--drivers/kvm/paging_tmpl.h3
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);
OpenPOWER on IntegriCloud