All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: Roger Pau Monne <roger.pau@entel.upc.edu>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] libxl: create pci backend only when there are	pci devices
Date: Wed, 14 Sep 2011 15:49:11 +0200	[thread overview]
Message-ID: <4E70B0D7.5040906@amd.com> (raw)
In-Reply-To: <63e254468d6e8d81baea.1316002763@loki>


If you want to have this patch applied to xen-4.1 then please
mention this explicitely.

Christoph

On 09/14/11 14:19, Roger Pau Monne wrote:
> # HG changeset patch
> # User Roger Pau Monne<roger.pau@entel.upc.edu>
> # Date 1316002720 -7200
> # Node ID 63e254468d6e8d81baeafaed68f05791dc21eb4e
> # Parent  ac33d68e89767d49113824e5661c49a5465a18e7
> libxl: create pci backend only when there are pci devices.
>
> Signed-off-by: Roger Pau Monne<roger.pau@entel.upc.edu>
>
> diff -r ac33d68e8976 -r 63e254468d6e tools/libxl/libxl_create.c
> --- a/tools/libxl/libxl_create.c	Thu Sep 08 15:13:06 2011 +0100
> +++ b/tools/libxl/libxl_create.c	Wed Sep 14 14:18:40 2011 +0200
> @@ -584,12 +584,14 @@ static int do_domain_create(libxl__gc *g
>       for (i = 0; i<  d_config->num_pcidevs; i++)
>           libxl__device_pci_add(gc, domid,&d_config->pcidevs[i], 1);
>
> -    ret = libxl__create_pci_backend(gc, domid, d_config->pcidevs,
> -                                    d_config->num_pcidevs);
> -    if (ret<  0) {
> -        LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
> -                   "libxl_create_pci_backend failed: %d", ret);
> -        goto error_out;
> +    if (d_config->num_pcidevs>  0) {
> +        ret = libxl__create_pci_backend(gc, domid, d_config->pcidevs,
> +                                        d_config->num_pcidevs);
> +        if (ret<  0) {
> +            LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
> +                "libxl_create_pci_backend failed: %d", ret);
> +            goto error_out;
> +        }
>       }
>
>       if (d_config->c_info.type == LIBXL_DOMAIN_TYPE_PV&&


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

  parent reply	other threads:[~2011-09-14 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14 12:19 [PATCH] libxl: create pci backend only when there are pci devices Roger Pau Monne
2011-09-14 12:31 ` Ian Campbell
2011-09-14 13:49 ` Christoph Egger [this message]
2011-09-14 15:02   ` Roger Pau Monné
2011-09-22  6:30     ` Roger Pau Monné

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E70B0D7.5040906@amd.com \
    --to=christoph.egger@amd.com \
    --cc=roger.pau@entel.upc.edu \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.