Re: [PATCH] vhost: Not return fail while the device does not support send_iotlb_msg

2022-12-04 Thread Jason Wang
On Sat, Dec 3, 2022 at 3:38 PM Cindy Lu wrote: > > On Thu, 1 Dec 2022 at 16:49, Jason Wang wrote: > > > > On Wed, Nov 30, 2022 at 4:11 PM Cindy Lu wrote: > > > > > > Some device does not support vhost_send_device_iotlb_msg() > > > such as vDPA device, which is as expected. So we should not > >

Re: [PATCH] vhost: Not return fail while the device does not support send_iotlb_msg

2022-12-02 Thread Cindy Lu
On Thu, 1 Dec 2022 at 16:49, Jason Wang wrote: > > On Wed, Nov 30, 2022 at 4:11 PM Cindy Lu wrote: > > > > Some device does not support vhost_send_device_iotlb_msg() > > such as vDPA device, which is as expected. So we should not > > return fail here. > > Please explain in which case you may hit

Re: [PATCH] vhost: Not return fail while the device does not support send_iotlb_msg

2022-12-01 Thread Jason Wang
On Wed, Nov 30, 2022 at 4:11 PM Cindy Lu wrote: > > Some device does not support vhost_send_device_iotlb_msg() > such as vDPA device, which is as expected. So we should not > return fail here. Please explain in which case you may hit the -ENODEV and what's the side effect of this. Thanks > >

[PATCH] vhost: Not return fail while the device does not support send_iotlb_msg

2022-11-30 Thread Cindy Lu
Some device does not support vhost_send_device_iotlb_msg() such as vDPA device, which is as expected. So we should not return fail here. Signed-off-by: Cindy Lu --- hw/virtio/vhost-backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio/vhost-backend.c