[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 14 of 16] libxl: bind virtual bdf to physical bdf after device assignment
On Wed, 2011-12-14 at 15:29 +0000, Wei Wang wrote: > # HG changeset patch > # User Wei Wang <wei.wang2@xxxxxxx> > # Date 1323876142 -3600 > # Node ID f9575683f10a08a86a9c73226581610fa3f7be4b > # Parent 04573463beff7fc9696f5ecdb940920dcc2ec0ca > libxl: bind virtual bdf to physical bdf after device assignment > > Signed-off-by: Wei Wang <wei.wang2@xxxxxxx> > > diff -r 04573463beff -r f9575683f10a tools/libxl/libxl_pci.c > --- a/tools/libxl/libxl_pci.c Wed Dec 14 16:22:21 2011 +0100 > +++ b/tools/libxl/libxl_pci.c Wed Dec 14 16:22:22 2011 +0100 > @@ -735,6 +735,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, pcidev->vdevfn, > pcidev_encode_bdf(pcidev)); > + if ( rc ) { > + LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, rc, > "xc_domain_bind_pt_bdf failed"); > + return ERROR_FAIL; Indentation here is off. > + } > + } > } > > if (!starting) > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |