Re: [PATCH 2/2] vhost-vdpa: improve error reporting

2020-09-09 Thread Laurent Vivier
On 09/09/2020 03:53, Jason Wang wrote: > > On 2020/9/4 上午2:53, Laurent Vivier wrote: >> Use Error framework to report the id of the device and the details of >> the error (vhostdev name and errno). >> >> For instance: >> >>   qemu-system-x86_64 ... -netdev vhost-vdpa,id=hostnet1 ... >>   hostnet1:

Re: [PATCH 2/2] vhost-vdpa: improve error reporting

2020-09-08 Thread Jason Wang
On 2020/9/4 上午2:53, Laurent Vivier wrote: Use Error framework to report the id of the device and the details of the error (vhostdev name and errno). For instance: qemu-system-x86_64 ... -netdev vhost-vdpa,id=hostnet1 ... hostnet1: Cannot open '/dev/vhost-vdpa-0': No such file or directory

Re: [PATCH 2/2] vhost-vdpa: improve error reporting

2020-09-04 Thread Philippe Mathieu-Daudé
On 9/3/20 8:53 PM, Laurent Vivier wrote: > Use Error framework to report the id of the device and the details of > the error (vhostdev name and errno). > > For instance: > > qemu-system-x86_64 ... -netdev vhost-vdpa,id=hostnet1 ... > hostnet1: Cannot open '/dev/vhost-vdpa-0': No such file or di

[PATCH 2/2] vhost-vdpa: improve error reporting

2020-09-03 Thread Laurent Vivier
Use Error framework to report the id of the device and the details of the error (vhostdev name and errno). For instance: qemu-system-x86_64 ... -netdev vhost-vdpa,id=hostnet1 ... hostnet1: Cannot open '/dev/vhost-vdpa-0': No such file or directory Signed-off-by: Laurent Vivier --- net/vhost-