aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2025-01-08 15:49:50 +0000
committerPaolo Bonzini <[email protected]>2025-01-12 09:53:00 +0000
commit55f4db79c4d94d4bb757f7a31a7f14de22fe517d (patch)
treedfe7198be8b44ce7c9cdd909ae60a70c284bb678 /drivers/platform/x86/intel/pmt/class.c
parentKVM: e500: map readonly host pages for read (diff)
downloadkernel-55f4db79c4d94d4bb757f7a31a7f14de22fe517d.tar.gz
kernel-55f4db79c4d94d4bb757f7a31a7f14de22fe517d.zip
KVM: e500: perform hugepage check after looking up the PFN
e500 KVM tries to bypass __kvm_faultin_pfn() in order to map VM_PFNMAP VMAs as huge pages. This is a Bad Idea because VM_PFNMAP VMAs could become noncontiguous as a result of callsto remap_pfn_range(). Instead, use the already existing host PTE lookup to retrieve a valid host-side mapping level after __kvm_faultin_pfn() has returned. Then find the largest size that will satisfy the guest's request while staying within a single host PTE. Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions