aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorStefano Garzarella <[email protected]>2022-11-10 15:13:35 +0100
committerMichael S. Tsirkin <[email protected]>2022-12-28 05:28:10 -0500
commit794ec498c9fa79e6bfd71b931410d5897a9c00d4 (patch)
treeeab30069c5a557471f22d9bc4cb023fd9833d112 /scripts/gdb/linux/tasks.py
parentf4e468f708386ce5fa6878a7ef43a9818ceeaecf (diff)
vdpa_sim: fix vringh initialization in vdpasim_queue_ready()
When we initialize vringh, we should pass the features and the number of elements in the virtqueue negotiated with the driver, otherwise operations with vringh may fail. This was discovered in a case where the driver sets a number of elements in the virtqueue different from the value returned by .get_vq_num_max(). In vdpasim_vq_reset() is safe to initialize the vringh with default values, since the virtqueue will not be used until vdpasim_queue_ready() is called again. Fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator") 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]> Acked-by: Eugenio PĂ©rez <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions