Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1764294imm; Thu, 14 Jun 2018 03:34:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLDkl2u/HfEqWacUqHp1dIA/GR45MpUjoaRulL8twsbhIqjCh6pL9Rq9JDoZj6lsSSrSTTG X-Received: by 2002:a62:d913:: with SMTP id s19-v6mr8892654pfg.39.1528972465945; Thu, 14 Jun 2018 03:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528972465; cv=none; d=google.com; s=arc-20160816; b=aeRNAVtgMN7tsrd2nu/HbVWh8tdf+s3nQGI7T1udahR55tvuRVBMTr424TE4sb9qCJ DFHpki7OYLfIi+xfh8+nvkWivgj5pmUrg9p3L5iisGA8BPnI1/UlTQnaU9AFR4L4gp02 hzmYvuFuoAHP6u/HSax9++c6kHuBhnx5FdSWvFYc3Y4ayyY0zDf/AIwhj7vZUD79wuqP 5Cmpf+y5J6RNLJWuQ/r/TucT1YZsAxi3sfsBxKt3tSUChqkGPLYhWyZGgq4jkMF9VWrU w0FWc/R4x4a73kryMtkd8V4qOLLL5r4MqX3XgcwHRaC2XsO1aZrCfboIKug9KcTZygEt hkWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=+eGL3+Cr+CFrwO867JNf0ccA3MdHjgal4gXiw2BcP4Q=; b=zT36q97B9p4lje6mxN+umt7EpKpC0BCusBqqWS1oVZYaHm5rrCa/t7uGGdsQgOgNco C8WXwqq7aSnUQvofX2r307CXKl9Es2CRdxSq97/WFcLJqNNUJQKmRyt/3LBUKUKrgF/b CwmlGtYxHmd9nc9H+GTV/SxjkdrnNyXUUTpYrrLxm6w8lOQfNFYpN7+TRtPQx43SwXTG vlEHAnWOEDnpXjLwUSxpJc5Qf4LqoA0fjGPCsNzl5rH80c2yVtDNlrDeNrZXXrJXoByE hdil778CELHsYgVDjibRTY6q0VA8bs+3ApFCdkfuSV1+Kv/NYTqf1wpfciZ4yQ+5Aezz YlyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YcjGQtar; dkim=pass header.i=@codeaurora.org header.s=default header.b=YcjGQtar; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22-v6si4925062ply.328.2018.06.14.03.34.11; Thu, 14 Jun 2018 03:34:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YcjGQtar; dkim=pass header.i=@codeaurora.org header.s=default header.b=YcjGQtar; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754933AbeFNKdo (ORCPT + 99 others); Thu, 14 Jun 2018 06:33:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48382 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754724AbeFNKdm (ORCPT ); Thu, 14 Jun 2018 06:33:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E6366607BB; Thu, 14 Jun 2018 10:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528972421; bh=MxqVIYAujRh28rJuzkxmsU4O/t4KYy8iYOn2MTFFOi0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YcjGQtarcIUEZgfcERaHA0O7w8aJW2vVGDWjMUg1b1WqNpmGnwIvJS8BpY4+CvPZT gM4S3PavqGwYFJC3oRRCwFA29QqcuFZ9F2F3kvub4a0e05r8uPkkz3b2jHuV1+Ahb6 Z7U/T9qcqxKagPJFtMh3wo9u3R6sHMQM6yjJN33M= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 3ED156022C; Thu, 14 Jun 2018 10:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528972421; bh=MxqVIYAujRh28rJuzkxmsU4O/t4KYy8iYOn2MTFFOi0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YcjGQtarcIUEZgfcERaHA0O7w8aJW2vVGDWjMUg1b1WqNpmGnwIvJS8BpY4+CvPZT gM4S3PavqGwYFJC3oRRCwFA29QqcuFZ9F2F3kvub4a0e05r8uPkkz3b2jHuV1+Ahb6 Z7U/T9qcqxKagPJFtMh3wo9u3R6sHMQM6yjJN33M= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 14 Jun 2018 06:33:41 -0400 From: okaya@codeaurora.org To: Srinath Mannam Cc: Christoph Hellwig , Bjorn Helgaas , Abhishek Shah , Vikram Prakash , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Alex Williamson , kvm@vger.kernel.org, linux-pci-owner@vger.kernel.org Subject: Re: Requirement to get BAR pci_bus_address in user space In-Reply-To: References: <20180614102001.GA20836@lst.de> Message-ID: <92a9eeced36f863458ca2fd029f17a20@codeaurora.org> X-Sender: okaya@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-14 06:29, Srinath Mannam wrote: > ++ Alex Williamson, kvm, > > Hi Christoph, > > Thank you for quick reply. > > If we want to add this in vfio then I think we need to do the same in > uio case also. > > As I mentioned in previous mail, in the current implementation > resource information (address and size) is gathering from resource > named file created in /sys directory. > So I expect it would be better to have similar method as existing in > sysfs. > Can you give some info on why you need the actual bar address value? > > Regards, > Srinath. > > On Thu, Jun 14, 2018 at 3:50 PM, Christoph Hellwig wrote: >> The only safe way to use PCI(e) devices in userspace is through vfio. >> I think that is where you need to take your inquiries.