From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Morgenstein Subject: Re: mlx4 qp allocation Date: Thu, 13 Feb 2014 15:38:59 +0200 Message-ID: <20140213153859.5c41f8ee@jpm-OptiPlex-GX620> References: <20140211133141.7d5f4929@jpm-OptiPlex-GX620> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Bob Biloxi Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Thu, 13 Feb 2014 00:18:22 +0530 Bob Biloxi wrote: > The VFs need to allocate the memory for Send Queue Buffer, Receive > Queue Buffer, Completion Queue Buffer, Event Queue Buffer. > > Is that right? Yes. > > Also, as the QPs, CQs etc are created by the HCA when ALLOC_RES > command is issued, does the PF driver need to maintain anything to > associate the QPs, CQs created by the HCA with owners(VFs) possessing > them? Of course. These resources must be de-allocated if, for example, the VM running the VF crashes -- or we have a resource leak. This also is used for security checking, to make sure that a VF does not mess around with resources that do not "belong" to it. -Jack -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html