diff options
| author | Roman Kagan <rvkagan@yandex-team.ru> | 2020-05-29 01:55:09 +0300 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2020-06-17 14:53:40 +0200 |
| commit | 6abee2608563599f783bf1305a8322ee7b447815 (patch) | |
| tree | 49edca75aba77a08ca5f11757d9e7fa77f4f9d9e /hw/core/qdev-properties.c | |
| parent | d54f36ea8c26af32584511533f8884ac7a50bf4a (diff) | |
| download | focaccia-qemu-6abee2608563599f783bf1305a8322ee7b447815.tar.gz focaccia-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/core/qdev-properties.c')
0 files changed, 0 insertions, 0 deletions