All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Wang <wei.wang2@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH 6 of 7 V4] libxl: bind virtual bdf to physical bdf after device assignment
Date: Fri, 20 Jan 2012 16:56:48 +0100	[thread overview]
Message-ID: <4F198EC0.6070302@amd.com> (raw)
In-Reply-To: <a768bb39d0bc64360055.1327074286@gran.amd.com>

# HG changeset patch
# User Wei Wang <wei.wang2@amd.com>
# Date 1327066832 -3600
# Node ID a768bb39d0bc64360055e7fce0e890be71920e63
# Parent  423003c2a91fde16798b09ff2623b03467149b49
libxl: bind virtual bdf to physical bdf after device assignment

Signed-off-by: Wei Wang <wei.wang2@amd.com>

diff -r 423003c2a91f -r a768bb39d0bc tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c	Fri Jan 20 14:40:29 2012 +0100
+++ b/tools/libxl/libxl_pci.c	Fri Jan 20 14:40:32 2012 +0100
@@ -721,6 +721,13 @@ out:
              LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, rc, 
"xc_assign_device failed");
              return ERROR_FAIL;
          }
+        if (LIBXL__DOMAIN_IS_TYPE(gc,  domid, HVM)) {
+            rc = xc_domain_bind_pt_bdf(ctx->xch, domid, 0, 
pcidev->vdevfn, pcidev->domain, pcidev_encode_bdf(pcidev));
+            if ( rc ) {
+                LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, rc, 
"xc_domain_bind_pt_bdf failed");
+                return ERROR_FAIL;
+            }
+        }
      }

      if (!starting)
_______________________________________________
osrc-patches mailing list
osrc-patches@elbe.amd.com
https://elbe.amd.com/mailman/listinfo/osrc-patches

           reply	other threads:[~2012-01-20 15:56 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <a768bb39d0bc64360055.1327074286@gran.amd.com>]

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=4F198EC0.6070302@amd.com \
    --to=wei.wang2@amd.com \
    --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.