* [PATCH 6 of 7 V4] libxl: bind virtual bdf to physical bdf after device assignment
[not found] <a768bb39d0bc64360055.1327074286@gran.amd.com>
@ 2012-01-20 15:56 ` Wei Wang
0 siblings, 0 replies; only message in thread
From: Wei Wang @ 2012-01-20 15:56 UTC (permalink / raw)
To: xen-devel
# 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-20 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <a768bb39d0bc64360055.1327074286@gran.amd.com>
2012-01-20 15:56 ` [PATCH 6 of 7 V4] libxl: bind virtual bdf to physical bdf after device assignment Wei Wang
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.