Skip to contentSkip to conversation

Backport request

PATCH Juergen Gross 2 participants 3 messages Mar 1, 2017 – Apr 5, 2017

lore
Share & tools
lore
#0 lore raw

I'd like to request backport of upstream commit bc6a499ebcf1 ("libxl: correct xenstore entry for empty cdrom") to at least 4.8 and 4.7.

As libxl sources have been split in 4.9 the patch doesn't apply. Attached patch applies cleanly to 4.8 and with an offset to 4.7.

Juergen

Quoted 1 line

From bc6a499ebcf102060987fb845c1450a38de441c7 Mon Sep 17 00:00:00 2001

From: Juergen Gross <[email protected]>
Date: Wed, 15 Feb 2017 12:11:12 +0100
Subject: [PATCH] libxl: correct xenstore entry for empty cdrom

Specifying an empty cdrom device will result in a Xenstore entry

params = aio:(null)

as the physical device path isn't existing. This lets a domain booted via OVMF hang as OVMF is checking for "aio:" only in order to detect the empty cdrom case.

Use an empty string for the physical device path in this case. As a cdrom device for HVM is always backed by qdisk we only need to cover this backend.

---
 tools/libxl/libxl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/libxl/libxl.c +2 -1
index ac49df2..63de75c 100644
@@ -2255,7 +2255,8 @@ static void device_disk_add(libxl__egc *egc, uint32_t domid,
             case LIBXL_DISK_BACKEND_QDISK:
                 flexarray_append(back, "params");
                 flexarray_append(back, GCSPRINTF("%s:%s",
-                              libxl__device_disk_string_of_format(disk->format), disk->pdev_path));
+                              libxl__device_disk_string_of_format(disk->format),
+                              disk->pdev_path ? : ""));
                 if (libxl_defbool_val(disk->colo_enable)) {
                     flexarray_append(back, "colo-host");
                     flexarray_append(back, libxl__sprintf(gc, "%s", disk->colo_host));
Signature · 1 line
2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw
Quoted 6 lines · Juergen Gross

I'd like to request backport of upstream commit bc6a499ebcf1 ("libxl: correct xenstore entry for empty cdrom") to at least 4.8 and 4.7.

As libxl sources have been split in 4.9 the patch doesn't apply. Attached patch applies cleanly to 4.8 and with an offset to 4.7.

Ping?

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
In reply to Juergen Gross

Juergen Gross writes ("Backport request"):

Quoted 6 lines

I'd like to request backport of upstream commit bc6a499ebcf1 ("libxl: correct xenstore entry for empty cdrom") to at least 4.8 and 4.7.

As libxl sources have been split in 4.9 the patch doesn't apply. Attached patch applies cleanly to 4.8 and with an offset to 4.7.

Thanks for fixing this up. I have pushed this to 4.7 and 4.8.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel