-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path0018-libxl-don-t-create-vkb-device-for-qubes-graphics-out.patch
51 lines (42 loc) · 1.67 KB
/
0018-libxl-don-t-create-vkb-device-for-qubes-graphics-out.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 99f18f4f033ab3087e3147305e38d53ff545b291 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
Date: Sat, 13 Jul 2024 23:56:29 +0200
Subject: [PATCH] libxl: don't create vkb device for qubes graphics output
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Qubes handles HID on its own, it doesn't use vkb device.
Signed-off-by: Marek Marczykowski-Górecki <[email protected]>
---
src/libxl/libxl_conf.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 96d6e68472..c368dc4f4a 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -1627,6 +1627,7 @@ libxlMakeVfbList(virPortAllocatorRange *graphicsports,
{
virDomainGraphicsDef **l_vfbs = def->graphics;
int nvfbs = def->ngraphics;
+ int nvkbs = 0;
libxl_device_vfb *x_vfbs;
libxl_device_vkb *x_vkbs;
size_t i;
@@ -1638,7 +1639,8 @@ libxlMakeVfbList(virPortAllocatorRange *graphicsports,
x_vkbs = g_new0(libxl_device_vkb, nvfbs);
for (i = 0; i < nvfbs; i++) {
- libxl_device_vkb_init(&x_vkbs[i]);
+ if (l_vfbs[i]->type != VIR_DOMAIN_GRAPHICS_TYPE_QUBES)
+ libxl_device_vkb_init(&x_vkbs[nvkbs++]);
if (libxlMakeVfb(graphicsports, l_vfbs[i], &x_vfbs[i]) < 0)
goto error;
@@ -1646,7 +1648,8 @@ libxlMakeVfbList(virPortAllocatorRange *graphicsports,
d_config->vfbs = x_vfbs;
d_config->vkbs = x_vkbs;
- d_config->num_vfbs = d_config->num_vkbs = nvfbs;
+ d_config->num_vfbs = nvfbs;
+ d_config->num_vkbs = nvkbs;
return 0;
--
2.45.2