Re: [PATCH v4 12/18] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-12-16 Thread Jason Wang
On 2020/12/15 下午10:42, 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

[PATCH v4 12/18] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-12-15 Thread Stefano Garzarella
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 vdpasim_net_get_config() callback. This is safe since