Received: by 10.223.185.116 with SMTP id b49csp4024796wrg; Mon, 26 Feb 2018 09:52:00 -0800 (PST) X-Google-Smtp-Source: AH8x226ZMVqwmLmPjjWOg4IU0St8RRoOjqaNn9lfgAbNi11mxL51Cf6e79ffRgP6OSkhOEiGwX9S X-Received: by 10.101.91.3 with SMTP id y3mr9145439pgq.149.1519667520567; Mon, 26 Feb 2018 09:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519667520; cv=none; d=google.com; s=arc-20160816; b=zsaFyJUy1AGb4PeCWgAz0zfh+YoFSFxXSC0cpSSUxARh8oPFz8g2xGDCFpLg8RB1NS NwzjyXEaN2NTYNc6A+pywZ88bkpRY5ZHFs2em1b4Mw8F2XWstSoS/xQD/HF33RVz5fmI IMpxofOvAHuA9y3lwr7M+b/x7rnvHZ80lYSXXRzLnfdgOQ2v9rg+w3Pk89XY65lrj/yF ocCr85oLR6aR+2RePnOb0+EUfuv/9Su65gFg7+iZIR6GAf9X/oXpfi/pCXRBhM2cBYpo wIV+fUWvpO+ZHRXqKNAa3n55e/PY353w1zopplrAPVKYPK+9RFMQBuRw6qmIYgqLNOFT oG6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=EzNNy9lqX4DLqJU5cotkQIXbdz6GMC+qd8szEYQFGiM=; b=gVMlMn6PUQy/1cWuXfpoR4uYlHff47LygmpXt//tm7f+0kFFb+qXq4KPt16QNuiGY/ /GN/N8dn0/jzz5IorMfx767XT3khI1ZY893ZoM2al8LMl/L26+EJt5vB3hU/mtOgDno2 vRZqmm4/TA+b5sp2syj/Gal8wKDKPCrMmPu0KFoYdDY5IPWDRr0oqQnZqiQf84T+c+WV KYPwicDRqWsfCskodqVw1NXWwtKWeaqwXKkKzVtfPDv5Fwza+WbjGPt8DN3yk0FS5S3X QYltc4yCDvnE1JWlkmpStu4XWYV68a2zN0UVsHfks0T3rNAou7t+9pDlupQ/6/hyo9+4 gsvg== ARC-Authentication-Results: i=1; mx.google.com; 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 j8-v6si6908929plk.774.2018.02.26.09.51.44; Mon, 26 Feb 2018 09:52:00 -0800 (PST) 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; 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 S1751784AbeBZRup convert rfc822-to-8bit (ORCPT + 99 others); Mon, 26 Feb 2018 12:50:45 -0500 Received: from mga09.intel.com ([134.134.136.24]:35663 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbeBZRun (ORCPT ); Mon, 26 Feb 2018 12:50:43 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2018 09:50:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,397,1515484800"; d="scan'208";a="29888371" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by FMSMGA003.fm.intel.com with ESMTP; 26 Feb 2018 09:50:41 -0800 Received: from orsmsx160.amr.corp.intel.com (10.22.226.43) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 26 Feb 2018 09:50:30 -0800 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.72]) by ORSMSX160.amr.corp.intel.com ([169.254.13.67]) with mapi id 14.03.0319.002; Mon, 26 Feb 2018 09:48:16 -0800 From: "Rustad, Mark D" To: Alexander Duyck CC: "virtio-dev@lists.oasis-open.org" , Netdev , LKML , "linux-pci@vger.kernel.org" , "Daly, Dan" , Alex Williamson , "MRustad@gmail.com" , "Michael S. Tsirkin" Subject: Re: [RFC PATCH V4] pci: virtio_pci: Add SR-IOV support for virtio_pci devices Thread-Topic: [RFC PATCH V4] pci: virtio_pci: Add SR-IOV support for virtio_pci devices Thread-Index: AQHTrxYr0v8hXKkJ4k2CFRm3mzXHzqO3e+MA Date: Mon, 26 Feb 2018 17:48:15 +0000 Message-ID: References: <20180226044837.19543.12267.stgit@mdrustad-mac04.local> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.233.81.5] Content-Type: text/plain; charset="us-ascii" Content-ID: <3EF8EE341FE89847A02E31C769C6A168@intel.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alex, > On Feb 26, 2018, at 7:26 AM, Alexander Duyck wrote: > > Mark, > > In the future please don't put my "Reviewed-by" on a patch that I > haven't reviewed. I believe I reviewed one of the earlier patches, but > I hadn't reviewed this version. I'm very sorry. I completely spaced doing something about that. I think yours was the first Reviewed-by I ever had in this way. In the future I will remove such things from my changelog right after sending. Thanks for alerting me to what I had failed to do. > Also, after thinking about it over the weekend we may want to look at > just coming up with a truly "generic" solution that is applied to > SR-IOV capable devices that don't have a SR-IOV capable driver loaded > on them. That would allow us to handle the uio, vfio, pci-stub, and > virtio cases all in one fell swoop. I think us going though and > modifying one patch at a time to do this kind of thing isn't going to > scale. The notion of that kind of troubles me - at least pci-stub does. Having worked on ixgbe a bit, I have to wonder what kind of havoc would ensue if an ixgbe device were assigned to a guest, and an attempt was made to allocate VFs by the pci-stub. The guest could be running any version of the ixgbe driver, possibly even an old one that didn't support SR-IOV. Even if it did support SR-IOV, I don't know how it would respond to mailbox messages when it doesn't think it has VFs. > I'll try to do some digging and find the VFIO approach we had been > working on. I think with a couple tweaks we can probably make that > truly generic and ready for submission. I'd like to know more about you are thinking about. -- Mark Rustad, Networking Division, Intel Corporation