diff options
| author | Stefan Hajnoczi | 2013-01-11 16:41:29 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2013-01-14 10:06:57 +0100 |
| commit | de0161c0d553f2aaf6118ca87f978a5e6b4a9732 (patch) | |
| tree | f596da5ee25049899eeeeebab9aff28ca54bf06e /include | |
| parent | dataplane: extract virtio-blk read/write processing into do_rdwr_cmd() (diff) | |
| download | qemu-de0161c0d553f2aaf6118ca87f978a5e6b4a9732.tar.gz qemu-de0161c0d553f2aaf6118ca87f978a5e6b4a9732.tar.xz qemu-de0161c0d553f2aaf6118ca87f978a5e6b4a9732.zip | |
dataplane: handle misaligned virtio-blk requests
O_DIRECT on Linux has alignment requirements on I/O buffers and
misaligned requests result in -EINVAL. The Linux virtio_blk guest
driver usually submits aligned requests so I forgot to handle misaligned
requests.
It turns out that virtio-win guest drivers submit misaligned requests.
Handle them using a bounce buffer that meets alignment requirements.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
