Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3053979ybb; Sun, 12 Apr 2020 22:47:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKC9hITqd9WJrxXWsEYXPd2HRtYTLip3EOJLbu5nmLZgys4RIIb4QHt9LciddVLpu5YSIEw X-Received: by 2002:a37:7fc3:: with SMTP id a186mr14933523qkd.251.1586756844204; Sun, 12 Apr 2020 22:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586756844; cv=none; d=google.com; s=arc-20160816; b=CXNN4AePt1W4VjqxovJksA/A8Wch/C4FgPG7wnLC6w2hP5ZHfJSLmDrRlZ6+mpwCj5 jMICMZbXaBa08ROmKUvRze55uXPtHDaP/g2WWUbVXYIqL4PcFnU4eLEsXqp3UrIzGL0v Kye/KI+ceNaqNNyCLakngj0JHaUd19Fdc15Jbm9joN70lQDKT0gGBEFxfz6U4JGDYsMk LBUElJEMMwVPWaeQzSmUf+GbszU7AiZok5paZK1aSXBRqe165gjWwymXjpZ4Ad3UbuRz z2AksBmnnkWLZcfT14uEILvk8ucGrBIuQAJEEqMsfwYdcyeruAwwRevpXdBYUlC9knK7 Axrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=MledOPvtU2aGhK+kUnu3Nb5sQnXXtPDULDCR4L8Ky6A=; b=HoxVLGsPxLc7nEaeyoLwqHb61uaYo1VmjnBk9rz5hAtjvf+Dgz+Qd/2GJq0LinGVuW WjAI8HlH6dAWRFLdtbv12lnMG0o5Yn6SSO2KkZDdzhx0ouRieQ9adm1e8R4ymcqFhgBH TDKG4UYB0U02nJJz2XSagU8EWA3cTnSVIDMEtCqzAjfI8N7jI2V+5i6RkK42PP5yJmea rTAG8FoAnVfvYsBkAJgKuzraWZMwXgPndEZC/WOrsPXAGpjAoBuLbCap91tM9WUpTsZQ g064hPRcyKP67m+E0OuOUbtO5c9Qf7eTDwlLGFyAuB/Yl7IaRei8oOmv+/qIbJVIrI/3 12Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org ([209.132.180.67]) by mx.google.com with ESMTP id w15si238512qvu.0.2020.04.12.22.47.10; Sun, 12 Apr 2020 22:47:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728544AbgDMD3f (ORCPT + 99 others); Sun, 12 Apr 2020 23:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:50304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728460AbgDMD3f (ORCPT ); Sun, 12 Apr 2020 23:29:35 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 804B2C0A3BE0; Sun, 12 Apr 2020 20:29:35 -0700 (PDT) IronPort-SDR: hE7V3V4VpnrkDfnrrC8jxXwcBy+UZT+IP6Q5iCTaZnAduiBIBmMRIXkTTaVW9XsMGo2ERBMKJV nDvOGRmi0q/w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2020 20:29:34 -0700 IronPort-SDR: kaY6tSE5sav4RYffzh5Gz8m+KI24+vSEUaId10rWnW/z77yZuUjZQe137BBTWyM9T41eTMKCJy 8agcj2vT/LvQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,377,1580803200"; d="scan'208";a="453023852" Received: from araj-mobl1.jf.intel.com ([10.255.32.166]) by fmsmga005.fm.intel.com with ESMTP; 12 Apr 2020 20:29:31 -0700 Date: Sun, 12 Apr 2020 20:29:31 -0700 From: "Raj, Ashok" To: "Raj, Ashok" Cc: Alex Williamson , "jean-philippe@linaro.org" , "Tian, Kevin" , "kvm@vger.kernel.org" , "Tian, Jun J" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "Sun, Yi Y" , Bjorn Helgaas , "Wu, Hao" , Ashok Raj Subject: Re: [PATCH v1 2/2] vfio/pci: Emulate PASID/PRI capability for VFs Message-ID: <20200413032930.GB18479@araj-mobl1.jf.intel.com> References: <1584880394-11184-1-git-send-email-yi.l.liu@intel.com> <1584880394-11184-3-git-send-email-yi.l.liu@intel.com> <20200402165954.48d941ee@w520.home> <20200403112545.6c115ba3@w520.home> <20200407095801.648b1371@w520.home> <20200408040021.GS67127@otc-nc-03> <20200408101940.3459943d@w520.home> <20200413031043.GA18183@araj-mobl1.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200413031043.GA18183@araj-mobl1.jf.intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex Going through the PCIe Spec, there seems a lot of such capabilities that are different between PF and VF. Some that make sense and some don't. On Sun, Apr 12, 2020 at 08:10:43PM -0700, Raj, Ashok wrote: > > > > > I agree though, I don't know why the SIG would preclude implementing > > per VF control of these features. Thanks, > > For e.g. VF doesn't have I/O and Mem space enables, but has BME Interrupt Status Correctable Error Reporting Almost all of Device Control Register. So it seems like there is a ton of them we have to deal with today for VF's. How do we manage to emulate them without any support for them in VF's? > > Cheers, > Ashok