Re: [PATCH v2 12/17] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-12-01 Thread Stefano Garzarella
On Tue, Dec 01, 2020 at 11:44:19AM +0800, Jason Wang wrote: On 2020/11/30 下午10:14, Stefano Garzarella wrote: On Mon, Nov 30, 2020 at 11:25:31AM +0800, Jason Wang wrote: On 2020/11/26 下午10:49, Stefano Garzarella wrote: The get_config callback can be used by the device to fill the config struc

Re: [PATCH v2 12/17] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-11-30 Thread Jason Wang
On 2020/11/30 下午10:14, Stefano Garzarella wrote: On Mon, Nov 30, 2020 at 11:25:31AM +0800, Jason Wang wrote: On 2020/11/26 下午10:49, Stefano Garzarella wrote: The get_config callback can be used by the device to fill the config structure. The callback will be invoked in vdpasim_get_config() b

Re: [PATCH v2 12/17] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-11-30 Thread Stefano Garzarella
On Mon, Nov 30, 2020 at 11:25:31AM +0800, Jason Wang wrote: On 2020/11/26 下午10:49, Stefano Garzarella wrote: The get_config callback can be used by the device to fill the config structure. The callback will be invoked in vdpasim_get_config() before copying bytes into caller buffer. Move vDPA-n

Re: [PATCH v2 12/17] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-11-29 Thread Jason Wang
On 2020/11/26 下午10:49, Stefano Garzarella wrote: The get_config callback can be used by the device to fill the config structure. The callback will be invoked in vdpasim_get_config() before copying bytes into caller buffer. Move vDPA-net config updates from vdpasim_set_features() in the new vdp