Re: [PATCH v10 10/17] virtio: Handle device reset failure in register_virtio_device()

From
Yongji Xie <hidden>
Date
2021-08-03 09:39:02
Also in
kvm, linux-fsdevel, linux-iommu, lkml
Reply to
Jason Wang, 2021-08-03
On Tue, Aug 3, 2021 at 4:09 PM Jason Wang [off-list ref] wrote:

在 2021/7/29 下午3:34, Xie Yongji 写道:
quoted
The device reset may fail in virtio-vdpa case now, so add checks to
its return value and fail the register_virtio_device().

So the reset() would be called by the driver during remove as well, or
is it sufficient to deal only with the reset during probe?
Actually there is no way to handle failure during removal. And it
should be safe with the protection of software IOTLB even if the
reset() fails.

Thanks,
Yongji
Thread (55 messages) 55 messages, 4 authors, last reply 2021-08-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help