diff options
| author | David Hildenbrand <david@redhat.com> | 2021-12-17 14:46:04 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-07 05:19:55 -0500 |
| commit | 6c427ab926fd79e05ff650884babee962cdeaeb9 (patch) | |
| tree | c5bdf8081c003568106e736ae7d67cd4cf01b22c /python/qemu/utils/accel.py | |
| parent | 0a963af3e3c12074ed93babe0b908a1bce79f84f (diff) | |
| download | focaccia-qemu-6c427ab926fd79e05ff650884babee962cdeaeb9.tar.gz focaccia-qemu-6c427ab926fd79e05ff650884babee962cdeaeb9.zip | |
util/oslib-posix: Let touch_all_pages() return an error
Let's prepare touch_all_pages() for returning differing errors. Return
an error from the thread and report the last processed error.
Translate SIGBUS to -EFAULT, as a SIGBUS can mean all different kind of
things (memory error, read error, out of memory). When allocating memory
fails via the current SIGBUS-based mechanism, we'll get:
os_mem_prealloc: preallocating memory failed: Bad address
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-2-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/utils/accel.py')
0 files changed, 0 insertions, 0 deletions