[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xl stack problems on CentOS6 XEN4

Hi Roger,

your patch does not seem to fit my sources:
I am currently on XEN 4.4.2-2 (=CentOS 6 XEN 4)- your patch is for 4.5?
Can you please backport your patch to 4.4.2-2?

Kind regards


-----Ursprüngliche Nachricht-----
Von: Roger Pau Monné [mailto:roger.pau@xxxxxxxxxx] 
Gesendet: Montag, 18. Mai 2015 12:22
An: Ian Campbell; Hildebrand, Nils (BIT II 9)
Cc: 'xen-users@xxxxxxxxxxxxx'
Betreff: Re: [Xen-users] xl stack problems on CentOS6 XEN4

El 12/05/15 a les 18.08, Roger Pau Monné ha escrit:
> It seems like libxl__device_disk_local_initiate_attach is completely
> ignoring the fact that disk->script is not NULL, so it has to attach the
> disk to Dom0 before running the bootloader (instead of setting dev =
> disk->pdev_path). I will try to find some time tomorrow to look into this.


Could you please test the following patch?

Thanks, Roger.
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index a6eb2df..bd1839d 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -3063,9 +3063,16 @@ void libxl__device_disk_local_initiate_attach(libxl__egc 
     switch (disk->backend) {
-            LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "locally attaching PHY disk %s",
-                       disk->pdev_path);
-            dev = disk->pdev_path;
+            if (disk->script == NULL) {
+                LOG(DEBUG, "locally attaching PHY disk %s", disk->pdev_path);
+                dev = disk->pdev_path;
+            } else {
+                libxl__prepare_ao_device(ao, &dls->aodev);
+                dls->aodev.callback = local_device_attach_cb;
+                device_disk_add(egc, LIBXL_TOOLSTACK_DOMID, disk, &dls->aodev,
+                                libxl__alloc_vdev, (void *) blkdev_start);
+                return;
+            }
             switch (disk->format) {
@@ -3142,7 +3149,7 @@ static void local_device_attach_cb(libxl__egc *egc, 
libxl__ao_device *aodev)
     dev = GCSPRINTF("/dev/%s", disk->vdev);
-    LOG(DEBUG, "locally attaching qdisk %s", dev);
+    LOG(DEBUG, "locally attaching disk %s", dev);
     rc = libxl__device_from_disk(gc, LIBXL_TOOLSTACK_DOMID, disk, &device);
     if (rc < 0)

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.