aboutsummaryrefslogtreecommitdiff
path: root/contrib/vhost-user-gpu/vugpu.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-02-04 14:52:14 +0400
committerGerd Hoffmann <kraxel@redhat.com>2021-02-04 15:58:54 +0100
commit1f83ea8dbd9b9698767770746b92ff7a9ccb9636 (patch)
tree6a0e4ea22c6cc03d7cd2f7e0aee15ca2ff2c4618 /contrib/vhost-user-gpu/vugpu.h
parent326a51f32dfa56a63815c06c2ba3b14b371cef35 (diff)
vhost-user-gpu: handle vhost-user-gpu features in a callback
Fixes a deadlock where the backend calls QEMU, while QEMU also calls the backend simultaneously, both ends waiting for each other. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210204105232.834642-3-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'contrib/vhost-user-gpu/vugpu.h')
-rw-r--r--contrib/vhost-user-gpu/vugpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vhost-user-gpu/vugpu.h b/contrib/vhost-user-gpu/vugpu.h
index ad664c4df8..86f3ac86aa 100644
--- a/contrib/vhost-user-gpu/vugpu.h
+++ b/contrib/vhost-user-gpu/vugpu.h
@@ -118,7 +118,7 @@ typedef struct VuGpu {
int sock_fd;
int drm_rnode_fd;
GSource *renderer_source;
- guint wait_ok;
+ guint wait_in;
bool virgl;
bool virgl_inited;