vhost-user-gpu: use an extandable state enum for commands
commit72e631c6ac72363924f6c7030a99a7900d15451e
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 4 Feb 2021 10:52:15 +0000 (4 14:52 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Feb 2021 14:58:54 +0000 (4 15:58 +0100)
tree0e15e514be6dad1ab8a00ab82245907a33950631
parent1f83ea8dbd9b9698767770746b92ff7a9ccb9636
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>
contrib/vhost-user-gpu/vhost-user-gpu.c
contrib/vhost-user-gpu/virgl.c
contrib/vhost-user-gpu/vugpu.h