diff options
author | Axel Rasmussen <axelrasmussen@google.com> | 2021-05-19 23:03:35 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-05-27 14:45:56 +0300 |
commit | b3784bc28ccc0d9b44d265a1d947c8766295ba00 (patch) | |
tree | 4334ae1c822c3021f0187fbe60df3fa9cddd78a8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0368c2c1b422c94968b5286f289aed7fe6af93c2 (diff) | |
download | linux-b3784bc28ccc0d9b44d265a1d947c8766295ba00.tar.xz |
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 <axelrasmussen@google.com>
Message-Id: <20210519200339.829146-7-axelrasmussen@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions