Re: [Qemu-devel] [PATCH] vhost: fix invalid downcast

2018-07-16 Thread Юрий Котов
+ qemu-stable@ 13.07.2018, 19:16, "Michael S. Tsirkin" : > On Fri, Jul 13, 2018 at 05:04:05PM +0300, Yury Kotov wrote: >>  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 the

Re: [Qemu-devel] [PATCH] vhost: fix invalid downcast

2018-07-13 Thread Jia He
On 7/14/2018 12:15 AM, Michael S. Tsirkin Wrote: > On Fri, Jul 13, 2018 at 05:04:05PM +0300, Yury Kotov wrote: >> 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 w

Re: [Qemu-devel] [PATCH] vhost: fix invalid downcast

2018-07-13 Thread Michael S. Tsirkin
On Fri, Jul 13, 2018 at 05:04:05PM +0300, Yury Kotov wrote: > 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:

[Qemu-devel] [PATCH] vhost: fix invalid downcast

2018-07-13 Thread Yury Kotov
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 --- hw/virtio/vhost.c | 4 +--- 1 file changed, 1 inserti