From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: Infiniband support Date: Thu, 7 Jan 2016 10:58:12 +0000 Message-ID: <1452164292.21055.188.camel@citrix.com> References: <1452159174.21055.127.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aH8Ib-0007zr-GY for xen-devel@lists.xenproject.org; Thu, 07 Jan 2016 11:00:09 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gohar Irfan , "xen-devel@lists.xenproject.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2016-01-07 at 10:14 +0000, Gohar Irfan wrote: Please don't top post. > I am not sure if I asked it right: I already have Infiniband installed on > my kernel and it is working fine in the user space. However, I would like > to use the RDMA Verbs API inside the Xen code, like calling RDMA > functions to send/receive data. That requires Infiniband headers to be > included in the Xen code, but I'm have difficulty with that. So is there > any sample code of someone already calling Infiniband/RDMA functions > within Xen code or any guide on how to recompile Xen with custom headers? Do you mean to use RDMA Verbs API from within the Xen hypervisor itself (i.e. the "kernel-like" part) or just from the Xen toolstack? The former isn't likely to be possible without importing a full I/B stack into the hypervisor, a lot of work IMHO. The latter is just userspace, so you can use whatever libraries you would like. It might be useful if you took a step back and explained your end goal here since then we may be able to better guide you. Ian.