David Hildenbrand dba506788b 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>
2022-01-07 05:19:55 -05:00
..
2021-07-21 13:47:50 +01:00
2020-01-06 18:41:32 +04:00
2021-07-06 08:33:51 +02:00
2021-07-09 18:20:27 +02:00
2020-12-10 17:16:44 +01:00
2021-06-13 17:42:40 -07:00
2021-11-10 13:20:15 +01:00
2021-07-09 18:20:27 +02:00
2021-04-01 15:27:44 +04:00