Re: [PATCH] virtio-pmem: fix virtio_pmem_resp assign problem

2021-03-17 Thread Pankaj Gupta
> ret in virtio_pmem_resp is a uint32_t variable, which should be assigned > using virtio_stl_p. > > The kernel side driver does not guarantee virtio_pmem_resp to be initialized > to zero in advance, So sometimes the flush operation will fail. > > Signed-off-by: Wang Liang > --- > hw/virtio/virti

Re: [PATCH] virtio-pmem: fix virtio_pmem_resp assign problem

2021-03-17 Thread David Hildenbrand
On 17.03.21 03:41, wanglian...@126.com wrote: From: Wang Liang ret in virtio_pmem_resp is a uint32_t variable, which should be assigned using virtio_stl_p. The kernel side driver does not guarantee virtio_pmem_resp to be initialized to zero in advance, So sometimes the flush operation will fai

Re: [PATCH] virtio-pmem: fix virtio_pmem_resp assign problem

2021-03-17 Thread Stefano Garzarella
On Tue, Mar 16, 2021 at 10:41:45PM -0400, wanglian...@126.com wrote: From: Wang Liang ret in virtio_pmem_resp is a uint32_t variable, which should be assigned using virtio_stl_p. The kernel side driver does not guarantee virtio_pmem_resp to be initialized to zero in advance, So sometimes the f

[PATCH] virtio-pmem: fix virtio_pmem_resp assign problem

2021-03-17 Thread wangliangzz
From: Wang Liang ret in virtio_pmem_resp is a uint32_t variable, which should be assigned using virtio_stl_p. The kernel side driver does not guarantee virtio_pmem_resp to be initialized to zero in advance, So sometimes the flush operation will fail. Signed-off-by: Wang Liang --- hw/virtio/vi