summary refs log tree commit diff stats
path: root/include/hw/qdev-properties.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2015-03-05 15:38:17 -0600
committerKevin Wolf <kwolf@redhat.com>2015-03-10 14:02:24 +0100
commit22d182e82b4ba2fb78b2cc22bcec4e6a440b0ad6 (patch)
treee7ee073dd85357041aa7d9d21169e20e09853dd9 /include/hw/qdev-properties.h
parentc095348b914b740d8364a2ccf748e4284de3b68b (diff)
downloadfocaccia-qemu-22d182e82b4ba2fb78b2cc22bcec4e6a440b0ad6.tar.gz
focaccia-qemu-22d182e82b4ba2fb78b2cc22bcec4e6a440b0ad6.zip
block/raw-posix: fix launching with failed disks
Since commit c25f53b06eba1575d5d0e92a0132455c97825b83 ("raw: Probe
required direct I/O alignment") QEMU has failed to launch if image files
produce I/O errors.

Previously, QEMU would launch successfully and the guest would see the
errors when attempting I/O.

This is a regression and may prevent multipath I/O inside the guest,
where QEMU must launch and let the guest figure out by itself which
disks are online.

Tweak the alignment probing code in raw-posix.c to explicitly look for
EINVAL on Linux instead of bailing.  The kernel refuses misaligned
requests with this error code and other error codes can be ignored.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/hw/qdev-properties.h')
0 files changed, 0 insertions, 0 deletions