diff options
| author | Yury Kotov | 2018-07-13 16:04:05 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-09-07 23:05:18 +0200 |
| commit | fa4ae4be15fb08b37bec35139688ef563311d0b9 (patch) | |
| tree | bc12433395cafcc2371cdc5c6849cf65b5bcca7a /include | |
| parent | pc: make sure that guest isn't able to unplug the first cpu (diff) | |
| download | qemu-fa4ae4be15fb08b37bec35139688ef563311d0b9.tar.gz qemu-fa4ae4be15fb08b37bec35139688ef563311d0b9.tar.xz qemu-fa4ae4be15fb08b37bec35139688ef563311d0b9.zip | |
vhost: fix invalid downcast
virtio_queue_get_desc_addr returns 64-bit hwaddr while int is usually 32-bit.
If returned hwaddr is not equal to 0 but least-significant 32 bits are
equal to 0 then this code will not actually stop running queue.
Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru>
Acked-by: Jia He <hejianet@gmail.com>
Cc: qemu-stable@nongnu.org
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
