From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v11 03/19] bus/pci: enable vfio unmap resource for secondary Date: Wed, 11 Jul 2018 09:43:00 +0100 Message-ID: References: <20180607123849.14439-1-qi.z.zhang@intel.com> <20180711030917.181098-1-qi.z.zhang@intel.com> <20180711030917.181098-4-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: konstantin.ananyev@intel.com, dev@dpdk.org, bruce.richardson@intel.com, ferruh.yigit@intel.com, benjamin.h.shelton@intel.com, narender.vangati@intel.com To: Qi Zhang , thomas@monjalon.net Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 81D391B53C for ; Wed, 11 Jul 2018 10:43:09 +0200 (CEST) In-Reply-To: <20180711030917.181098-4-qi.z.zhang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11-Jul-18 4:09 AM, Qi Zhang wrote: > Subroutine to unmap VFIO resource is shared by secondary and > primary, and it does not work on the secondary process. Since > for secondary process, it is not necessary to close interrupt > handler, set pci bus mastering and remove vfio_res from > vfio_res_list. So, the patch adds a dedicate function to handle > the situation when a device is unmapped on a secondary process. > > Signed-off-by: Qi Zhang > --- Reviewed-by: Anatoly Burakov -- Thanks, Anatoly