diff options
author | Axel Rasmussen <[email protected]> | 2021-05-19 13:03:35 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-05-27 07:45:56 -0400 |
commit | b3784bc28ccc0d9b44d265a1d947c8766295ba00 (patch) | |
tree | 4334ae1c822c3021f0187fbe60df3fa9cddd78a8 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 0368c2c1b422c94968b5286f289aed7fe6af93c2 (diff) |
KVM: selftests: refactor vm_mem_backing_src_type flags
Each struct vm_mem_backing_src_alias has a flags field, which denotes
the flags used to mmap() an area of that type. Previously, this field
never included MAP_PRIVATE | MAP_ANONYMOUS, because
vm_userspace_mem_region_add assumed that *all* types would always use
those flags, and so it hardcoded them.
In a follow-up commit, we'll add a new type: shmem. Areas of this type
must not have MAP_PRIVATE | MAP_ANONYMOUS, and instead they must have
MAP_SHARED.
So, refactor things. Make it so that the flags field of
struct vm_mem_backing_src_alias really is a complete set of flags, and
don't add in any extras in vm_userspace_mem_region_add. This will let us
easily tack on shmem.
Signed-off-by: Axel Rasmussen <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions