summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Hildenbrand2021-12-17 14:46:06 +0100
committerMichael S. Tsirkin2022-01-07 11:19:55 +0100
commitdba506788b0f84a45c69ee1e0100c65034edffaf (patch)
tree82c14f40de3c866e925064be207f031beee2454b /include
parentutil/oslib-posix: Support MADV_POPULATE_WRITE for os_mem_prealloc() (diff)
downloadqemu-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