aboutsummaryrefslogtreecommitdiff
path: root/contrib/vhost-user-gpu/virgl.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-02-04 14:52:15 +0400
committerGerd Hoffmann <kraxel@redhat.com>2021-02-04 15:58:54 +0100
commit72e631c6ac72363924f6c7030a99a7900d15451e (patch)
tree0e15e514be6dad1ab8a00ab82245907a33950631 /contrib/vhost-user-gpu/virgl.c
parent1f83ea8dbd9b9698767770746b92ff7a9ccb9636 (diff)
downloadqemu-72e631c6ac72363924f6c7030a99a7900d15451e.zip
qemu-72e631c6ac72363924f6c7030a99a7900d15451e.tar.gz
qemu-72e631c6ac72363924f6c7030a99a7900d15451e.tar.bz2
vhost-user-gpu: use an extandable state enum for commands
Introduce a pending state for commands which aren't finished yet, but are being handled. See following patch. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210204105232.834642-4-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'contrib/vhost-user-gpu/virgl.c')
-rw-r--r--contrib/vhost-user-gpu/virgl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vhost-user-gpu/virgl.c b/contrib/vhost-user-gpu/virgl.c
index e647278..8bb3c56 100644
--- a/contrib/vhost-user-gpu/virgl.c
+++ b/contrib/vhost-user-gpu/virgl.c
@@ -482,7 +482,7 @@ void vg_virgl_process_cmd(VuGpu *g, struct virtio_gpu_ctrl_command *cmd)
break;
}
- if (cmd->finished) {
+ if (cmd->state != VG_CMD_STATE_NEW) {
return;
}