From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fijy7-0000xb-4m for qemu-devel@nongnu.org; Thu, 26 Jul 2018 13:22:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fijy2-0000ba-6k for qemu-devel@nongnu.org; Thu, 26 Jul 2018 13:22:27 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:55900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fijy1-0000bE-TS for qemu-devel@nongnu.org; Thu, 26 Jul 2018 13:22:22 -0400 Message-ID: <1532625727.2458.183.camel@oracle.com> From: Knut Omang Date: Thu, 26 Jul 2018 19:22:07 +0200 In-Reply-To: <20180726201113-mutt-send-email-mst@kernel.org> References: <1407239306.11199051.1530240887935.JavaMail.zimbra@redhat.com> <20180705194311-mutt-send-email-mst@kernel.org> <20180726145214.GD17777@stefanha-x1.localdomain> <488bdc8d-e36c-ad3e-f7b3-a45a78a99dda@gmail.com> <20180726191315-mutt-send-email-mst@kernel.org> <20180726104252.3d162f34@t450s.home> <20180726201113-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Question: SRIOV support over Win Hyper-V VM running in QEMU process on Linux host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Alex Williamson Cc: Marcel Apfelbaum , Tal Attaly , Stefan Hajnoczi , "qemu-devel@nongnu.org" , Elijah Shakkour On Thu, 2018-07-26 at 20:11 +0300, Michael S. Tsirkin wrote: > On Thu, Jul 26, 2018 at 10:42:52AM -0600, Alex Williamson wrote: > > On Thu, 26 Jul 2018 19:14:45 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Thu, Jul 26, 2018 at 06:51:13PM +0300, Marcel Apfelbaum wrote: > > > > Hi > > > > > > > > On 07/26/2018 05:52 PM, Stefan Hajnoczi wrote: > > > > > On Thu, Jul 12, 2018 at 07:33:14AM +0000, Elijah Shakkour wrote: > > > > > > Hey, > > > > > > > > > > > > Our team is adding a NIC functional emulation to QEMU. > > > > > > One of the features we are adding to this NIC is SRIOV. > > > > > > > > > > > > Here is the error message I get when checking SRIOV support of our > > > > > > emulated NIC on Win2016 server (the hyper-v VM). > > > > > > " > > > > > > SR-IOV cannot be used on this system as the PCI Express hardware > > > > > > does not support Access Control Services (ACS) at any root port. > > > > > > > > QEMU's emulated PCI Express Root Ports do not support ACS yet, however I > > > > am > > > > not sure ACS is a prerequisite > > > > for SR-IOV. > > > > ACS is certainly not a prerequisite for SR-IOV. > > > > > Looks like windows blocks dev assignment in nested VMs without it. > > > Thinking about it, doesn't vfio do the same by default? I think vfio has > > > a flag to override this though. > > > > IOMMU grouping in Linux takes isolation via ACS and device specific > > mechanisms into account, limiting the granularity with which a > > userspace driver can claim ownership of devices, > > In that you must assign all devices behind this port as a group? Yes, that's why I needed to add PCIe config space ACS support in ioh3420: to be able to use VFIO to pass through individual VFs to different L2 VMs with "plain" kernels on the L1 host which owns the SR/IOV device. Knut > > but it doesn't > > actually prevent enabling SR-IOV on the endpoint. It just makes it > > less useful if your intention is to use SR-IOV for device assignment. > > The only overrides for this are out-of-tree. Thanks, > > > > > > Alex > >