projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
316b952
)
KVM: MMU: Don't calculate quadrant if tdp_enabled
author
Gui Jianfeng
<
[email protected]
>
Mon, 31 May 2010 09:11:39 +0000
(17:11 +0800)
committer
Avi Kivity
<
[email protected]
>
Sun, 1 Aug 2010 07:39:24 +0000
(10:39 +0300)
There's no need to calculate quadrant if tdp is enabled.
Signed-off-by: Gui Jianfeng <
[email protected]
>
Signed-off-by: Marcelo Tosatti <
[email protected]
>
arch/x86/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index 69d40a6e1e68fa39d6b4dcfe0a014690fbbba6a4..d3cd102aee262e5405c3a1ec3bd8b1b3f053eac5 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-1378,7
+1378,7
@@
static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu,
if (role.direct)
role.cr4_pae = 0;
role.access = access;
- if (vcpu->arch.mmu.root_level <= PT32_ROOT_LEVEL) {
+ if (
!tdp_enabled &&
vcpu->arch.mmu.root_level <= PT32_ROOT_LEVEL) {
quadrant = gaddr >> (PAGE_SHIFT + (PT64_PT_BITS * level));
quadrant &= (1 << ((PT32_PT_BITS - PT64_PT_BITS) * level)) - 1;
role.quadrant = quadrant;