diff options
author | Roman Kagan | 2020-05-29 00:55:09 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-06-17 14:53:40 +0200 |
commit | 6abee2608563599f783bf1305a8322ee7b447815 (patch) | |
tree | 49edca75aba77a08ca5f11757d9e7fa77f4f9d9e /hw/ide | |
parent | .gitignore: Ignore storage-daemon files (diff) | |
download | qemu-6abee2608563599f783bf1305a8322ee7b447815.tar.gz qemu-6abee2608563599f783bf1305a8322ee7b447815.tar.xz qemu-6abee2608563599f783bf1305a8322ee7b447815.zip |
virtio-blk: store opt_io_size with correct size
The width of opt_io_size in virtio_blk_config is 32bit. However, it's
written with virtio_stw_p; this may result in value truncation, and on
big-endian systems with legacy virtio in completely bogus readings in
the guest.
Use the appropriate accessor to store it.
Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200528225516.1676602-2-rvkagan@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide')
0 files changed, 0 insertions, 0 deletions