-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
0619-libxl-do-not-start-qemu-in-dom0-just-for-extra-conso.patch
42 lines (35 loc) · 1.67 KB
/
0619-libxl-do-not-start-qemu-in-dom0-just-for-extra-conso.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
From 4d368a22ba8e13bba930f2395d395b3dcd869236 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
<marmarek@invisiblethingslab.com>
Date: Wed, 16 Nov 2022 01:28:47 +0100
Subject: [PATCH] libxl: do not start qemu in dom0 just for extra consoles
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
We prefer to have broken extra consoles (breaking also saving/restoring HVM to
a savefile), than running qemu in dom0.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
tools/libs/light/libxl_dm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/libs/light/libxl_dm.c b/tools/libs/light/libxl_dm.c
index d3df66786c45..e1593e255be7 100644
--- a/tools/libs/light/libxl_dm.c
+++ b/tools/libs/light/libxl_dm.c
@@ -2592,7 +2592,7 @@ static void spawn_stub_launch_dm(libxl__egc *egc,
* Until xenconsoled learns how to handle multiple consoles, require qemu
* in dom0 to serve consoles for a stubdomain - it require at least 3 of them.
*/
- need_qemu = 1 || libxl__need_xenpv_qemu(gc, &sdss->dm_config);
+ need_qemu = libxl__need_xenpv_qemu(gc, &sdss->dm_config);
for (i = 0; i < num_console; i++) {
libxl__device device;
@@ -2729,7 +2729,7 @@ static void qmp_proxy_spawn_outcome(libxl__egc *egc,
* Until xenconsoled learns how to handle multiple consoles, require qemu
* in dom0 to serve consoles for a stubdomain - it require at least 3 of them.
*/
- int need_pvqemu = 1 || libxl__need_xenpv_qemu(gc, &sdss->dm_config);
+ int need_pvqemu = libxl__need_xenpv_qemu(gc, &sdss->dm_config);
if (rc) goto out;
--
2.44.0