diff options
| author | David Hildenbrand | 2021-12-17 14:46:06 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2022-01-07 11:19:55 +0100 |
| commit | dba506788b0f84a45c69ee1e0100c65034edffaf (patch) | |
| tree | 82c14f40de3c866e925064be207f031beee2454b /include | |
| parent | util/oslib-posix: Support MADV_POPULATE_WRITE for os_mem_prealloc() (diff) | |
| download | qemu-dba506788b0f84a45c69ee1e0100c65034edffaf.tar.gz qemu-dba506788b0f84a45c69ee1e0100c65034edffaf.tar.xz qemu-dba506788b0f84a45c69ee1e0100c65034edffaf.zip | |
util/oslib-posix: Introduce and use MemsetContext for touch_all_pages()
Let's minimize the number of global variables to prepare for
os_mem_prealloc() getting called concurrently and make the code a bit
easier to read.
The only consumer that really needs a global variable is the sigbus
handler, which will require protection via a mutex in the future either way
as we cannot concurrently mess with the SIGBUS handler.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20211217134611.31172-4-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
