WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 02 of 10] libxl: Do not start stubdom when not ne

To: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 02 of 10] libxl: Do not start stubdom when not needed
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 3 Jun 2011 09:03:25 +0100
Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>
Delivery-date: Fri, 03 Jun 2011 01:06:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <59cff6b471f3f0c1e913.1307054132@devel14>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <patchbomb.1307054130@devel14> <59cff6b471f3f0c1e913.1307054132@devel14>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2011-06-02 at 23:35 +0100, Marek Marczykowski wrote:
> # HG changeset patch
> # User Marek Marczykowski <marmarek@xxxxxxxxxxxx>
> # Date 1306962900 -7200
> # Node ID 59cff6b471f3f0c1e91349ed6653a47a40d4fd55
> # Parent  e3a3f5cc95349e92b7cb8b1448e999ffc16bd060
> libxl: Do not start stubdom when not needed
> 
> Do not start stubdom when there is any disk - only when there are disks
> requiring it.
> 
> Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxx>

What tree is your series against? This same issue was fixed by
23044:d4ca456c0c25 in mid-March.

In general you need to post patches against a reasonably recent
xen-unstable. You can also recommend patches (either new ones or
existing commits in xen-unstable) for backporting to the x.y-testing
trees if you think that is necessary.

I though 23044:d4ca456c0c25 had already been backported to 4.1-testing
but it seems not, Keir can we do so please?

Ian.

> 
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -828,8 +828,14 @@
>          goto out;
>      }
>  
> -    if (nr_disks > 0 && !libxl__blktap_enabled(&gc))
> -        ret = 1;
> +    if (nr_disks > 0 && !libxl__blktap_enabled(&gc)) {
> +        for (i = 0; i < nr_disks; i++) {
> +            if (disks[i].backend == DISK_BACKEND_TAP || disks[i].backend == 
> DISK_BACKEND_QDISK) {
> +                ret = 1;
> +                goto out;
> +            }
> +        }
> +    }
>  
>  out:
>      libxl__free_all(&gc);
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel