aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorStefano Garzarella <[email protected]>2023-03-29 18:03:21 +0200
committerMichael S. Tsirkin <[email protected]>2023-04-04 14:22:12 -0400
commit9da667e50c7e62266f3c2f8ad57b32fca40716b1 (patch)
tree7933e3ab1503d703ea62ac10c47ffc778548b97f /tools/perf/scripts/python/exported-sql-viewer.py
parentf0417e72add5aed5997092b6eb76298290d866c9 (diff)
vdpa_sim_net: complete the initialization before register the device
Initialization must be completed before calling _vdpa_register_device() since it can connect the device to the vDPA bus, so requests can arrive after that call. So for example vdpasim_net_work(), which uses the net->*_stats variables, can be scheduled before they are initialized. Let's move _vdpa_register_device() to the end of vdpasim_net_dev_add() and add a comment to avoid future issues. Fixes: 0899774cb360 ("vdpa_sim_net: vendor satistics") Signed-off-by: Stefano Garzarella <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions