Skip to contentSkip to conversation

libxl: bind virtual bdf to physical bdf after device assignment

PATCH Superseded Wei Wang 1 participant 1 message Jan 20, 2012 1 message not in the archive

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Wei Wang

author
#1 lore raw

PATCH v4 1/1 libxl: bind virtual bdf to physical bdf after device assignment

In reply to a message not in the archive

# HG changeset patch
# User Wei Wang <[email protected]>
# Date 1327066832 -3600
# Node ID a768bb39d0bc64360055e7fce0e890be71920e63
# Parent 423003c2a91fde16798b09ff2623b03467149b49
libxl: bind virtual bdf to physical bdf after device assignment

tools/libxl/libxl_pci.c +0 -0
diff -r 423003c2a91f -r a768bb39d0bc tools/libxl/libxl_pci.c
@@ -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
[email protected]
https://elbe.amd.com/mailman/listinfo/osrc-patches