diff options
| author | David Hildenbrand | 2021-12-17 14:46:04 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2022-01-07 11:19:55 +0100 |
| commit | 6c427ab926fd79e05ff650884babee962cdeaeb9 (patch) | |
| tree | c5bdf8081c003568106e736ae7d67cd4cf01b22c /include | |
| parent | hw/vhost-user-blk: turn on VIRTIO_BLK_F_SIZE_MAX feature for virtio blk device (diff) | |
| download | qemu-6c427ab926fd79e05ff650884babee962cdeaeb9.tar.gz qemu-6c427ab926fd79e05ff650884babee962cdeaeb9.tar.xz 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 'include')
0 files changed, 0 insertions, 0 deletions
