|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 6 of 7 V4] libxl: bind virtual bdf to physical bdf after device assignment
# HG changeset patch # User Wei Wang <wei.wang2@xxxxxxx> # 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@xxxxxxx> 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@xxxxxxxxxxxx
https://elbe.amd.com/mailman/listinfo/osrc-patches
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |