diff options
| author | 2021-05-24 14:27:38 +0200 | |
|---|---|---|
| committer | 2021-05-27 07:45:53 -0400 | |
| commit | a13534d6676d2f2a9aa286e27e482b4896ff90e3 (patch) | |
| tree | ae57b2c57ad0d9f12d64478189df726d84e68ba6 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | selftests: kvm: make allocation of extra memory take effect (diff) | |
| download | linux-dev-a13534d6676d2f2a9aa286e27e482b4896ff90e3.tar.xz linux-dev-a13534d6676d2f2a9aa286e27e482b4896ff90e3.zip | |
selftests: kvm: fix potential issue with ELF loading
vm_vaddr_alloc() sets up GVA to GPA mapping page by page; therefore, GPAs
may not be continuous if same memslot is used for data and page table allocation.
kvm_vm_elf_load() however expects a continuous range of HVAs (and thus GPAs)
because it does not try to read file data page by page. Fix this mismatch
by allocating memory in one step.
Reported-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
