diff options
| author | Sean Christopherson <[email protected]> | 2022-02-26 00:15:44 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-03-08 15:59:10 +0000 |
| commit | a4187c9bd16341b17d54cb3f87b8164945fa81ce (patch) | |
| tree | a6e397bd53daa3e0837bae0ca3f01bd6a8f9e018 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | KVM: selftests: Move raw KVM_SET_USER_MEMORY_REGION helper to utils (diff) | |
| download | kernel-a4187c9bd16341b17d54cb3f87b8164945fa81ce.tar.gz kernel-a4187c9bd16341b17d54cb3f87b8164945fa81ce.zip | |
KVM: selftests: Split out helper to allocate guest mem via memfd
Extract the code for allocating guest memory via memfd out of
vm_userspace_mem_region_add() and into a new helper, kvm_memfd_alloc().
A future selftest to populate a guest with the maximum amount of guest
memory will abuse KVM's memslots to alias guest memory regions to a
single memfd-backed host region, i.e. needs to back a guest with memfd
memory without a 1:1 association between a memslot and a memfd instance.
No functional change intended.
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
