diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-08 18:49:50 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-12 12:53:00 +0300 |
commit | 55f4db79c4d94d4bb757f7a31a7f14de22fe517d (patch) | |
tree | dfe7198be8b44ce7c9cdd909ae60a70c284bb678 /scripts/extract-fwblobs | |
parent | 03b755b2aa48d242440cbfbd365e153b4b20fe54 (diff) | |
download | linux-55f4db79c4d94d4bb757f7a31a7f14de22fe517d.tar.xz |
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 <pbonzini@redhat.com>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions