mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
spice: allow to specify drm rendernode
When multiple GPU are available, picking the first one isn't always the best choice. Learn to specify a device rendernode. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20170212112118.16044-1-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
ad584d37f2
commit
7b5255083b
4 changed files with 17 additions and 7 deletions
|
@ -501,6 +501,9 @@ static QemuOptsList qemu_spice_opts = {
|
|||
},{
|
||||
.name = "gl",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
},{
|
||||
.name = "rendernode",
|
||||
.type = QEMU_OPT_STRING,
|
||||
#endif
|
||||
},
|
||||
{ /* end of list */ }
|
||||
|
@ -833,7 +836,7 @@ void qemu_spice_init(void)
|
|||
"incompatible with -spice port/tls-port");
|
||||
exit(1);
|
||||
}
|
||||
if (egl_rendernode_init() != 0) {
|
||||
if (egl_rendernode_init(qemu_opt_get(opts, "rendernode")) != 0) {
|
||||
error_report("Failed to initialize EGL render node for SPICE GL");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue