vdpa_sim: use kthread worker
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 4 Apr 2023 13:17:25 +0000 (15:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:33 +0000 (03:02 -0400)
commit76acfa7bc54f1e3b9dde396e0a3534493419fd6f
tree12520572a5f7427e560d85d5979799e2a5715422
parente2a4f808a78646badefcd13a6e995d369898f443
vdpa_sim: use kthread worker

Let's use our own kthread to run device jobs.
This allows us more flexibility, especially we can attach the kthread
to the user address space when vDPA uses user's VA.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20230404131725.45908-1-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c
drivers/vdpa/vdpa_sim/vdpa_sim.h