summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-01-08 23:24:35 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-27 22:00:00 +0300
commit22b1d57b032cea4d612746473ed28cb20665d876 (patch)
treeacff46f2725a93e869fcdac9bc1c40e5be46fca7 /virt/kvm
parentdc9ce71e66b84497c375c529d818d8e8d0d793a9 (diff)
downloadlinux-22b1d57b032cea4d612746473ed28cb20665d876.tar.xz
KVM: x86/mmu: Enforce max_level on HugeTLB mappings
Limit KVM's mapping level for HugeTLB based on its calculated max_level. The max_level check prior to invoking host_mapping_level() only filters out the case where KVM cannot create a 2mb mapping, it doesn't handle the scenario where KVM can create a 2mb but not 1gb mapping, and the host is using a 1gb HugeTLB mapping. Fixes: 2f57b7051fe8 ("KVM: x86/mmu: Persist gfn_lpage_is_disallowed() to max_level") Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions