]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vdpasim: allow to enable a vq repeatedly
authorEugenio Pérez <eperezma@redhat.com>
Thu, 19 May 2022 14:59:19 +0000 (16:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:30 +0000 (10:26 +0200)
commit6b37451f8ba1bd03065a2fe246bc87bb1b1e9d90
tree1af541a65c0efde490a8008629dd3d3a0a09618f
parent2f18c239594df29b8423230f40d71417cbbdf27a
vdpasim: allow to enable a vq repeatedly

commit 242436973831aa97e8ce19533c6c912ea8def31b upstream.

Code must be resilient to enable a queue many times.

At the moment the queue is resetting so it's definitely not the expected
behavior.

v2: set vq->ready = 0 at disable.

Fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator")
Cc: stable@vger.kernel.org
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220519145919.772896-1-eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vdpa/vdpa_sim/vdpa_sim.c