projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KVM: MMU: Fix regression with ept memory types merged into non-ept page tables
[cascardo/linux.git]
/
arch
/
x86
/
kvm
/
mmu.c
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index
6e248d8
..
3ce56bf
100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-1980,7
+1980,7
@@
static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep,
spte |= shadow_user_mask;
if (level > PT_PAGE_TABLE_LEVEL)
spte |= PT_PAGE_SIZE_MASK;
- if (
vcpu->arch.mmu.direct_map
)
+ if (
tdp_enabled
)
spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn,
kvm_is_mmio_pfn(pfn));