Paolo Bonzini a13534d667 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>
2021-05-27 07:45:53 -04:00
..
2021-04-26 10:25:03 -07:00
2020-12-07 14:34:55 -07:00
2021-03-08 11:59:16 +01:00
2021-01-29 18:03:33 -08:00
2021-05-02 00:43:35 +09:00
2021-05-06 19:24:11 -07:00
2021-02-22 17:15:30 -08:00
2021-04-29 11:57:23 -07:00