projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
039576c
)
KVM: MMU: Remove unnecessary check for pdptr access
author
Avi Kivity
<avi@qumranet.com>
Tue, 20 Mar 2007 12:29:06 +0000
(14:29 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Thu, 3 May 2007 07:52:25 +0000
(10:52 +0300)
We already special case the pdptr access, so no need to check it again.
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/paging_tmpl.h
patch
|
blob
|
history
diff --git
a/drivers/kvm/paging_tmpl.h
b/drivers/kvm/paging_tmpl.h
index f3bcee90465141b2ba767248e6c52d8b8af8f916..17bd4400c92ba8ad8988b24fee3516a3bfe7205b 100644
(file)
--- 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);