diff options
| author | David Hildenbrand <david@redhat.com> | 2021-12-17 14:46:06 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-07 05:19:55 -0500 |
| commit | dba506788b0f84a45c69ee1e0100c65034edffaf (patch) | |
| tree | 82c14f40de3c866e925064be207f031beee2454b /python/qemu/machine/console_socket.py | |
| parent | a384bfa32ed8d616d766cb33360011157ae2f5c7 (diff) | |
| download | focaccia-qemu-dba506788b0f84a45c69ee1e0100c65034edffaf.tar.gz focaccia-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 'python/qemu/machine/console_socket.py')
0 files changed, 0 insertions, 0 deletions