Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1550532imm; Thu, 19 Jul 2018 03:53:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNoUJ7heVBRciZG0HQc0agWEHMETzNC+B0yf4vIQyDEiCDu4Z8niS+GU2svqWo/GUPGnQs X-Received: by 2002:a63:f849:: with SMTP id v9-v6mr317028pgj.71.1531997600695; Thu, 19 Jul 2018 03:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531997600; cv=none; d=google.com; s=arc-20160816; b=GgdXQDm0nnwsAujMtDaLZc2m+ev8AF57J8ulP6rQgJlMhReLCPJ1VC4WhyHWyBKjkZ vhXvpD+5XgMWVQeVfHlV3Yd3WjVKKuErSECwXL/R2k64P1kfUheYcWAVYeVhK4HYpoLn HSGn53voaCHvU0iTuez/qM2+ca36br49b4bEHWqRU5al+vRZo7EpE33UajX+A4ips9y9 SmIR45aoAybQ9vEWFIMRjSmKUZcIb9nlgWwlpI69ewYvIRfGO9GwklS38sPlsSWS9gMd SFwcjTiWFvq78T2LWR4cmJhxAtAd9a7mVs5KMB2Ul2BxO9YbLkHpuTw8mFh3dEfIRSPF C/Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oUHNCSzohWvpGgfi5YmEq9q3L3SAjDp0tndeDbJbNBg=; b=oIjkmke1ccyLM7+yAXkQroUen2FPnwuEhIDY8wRxZtffK8F1yrwH9zjhb6mXhP0sUm /vd+3jQlr9yeNQk2oMZ0UmS+6Qs+QkMnGh3v3zzFC+O5XgI468rHgNbqQG0pShK4U3QD beyHCF/0oPJ34bNSpAlYOso76ByzdzWDXuYMaDdf4lpwX2MPdvzN+ga4I+rJk706Ml3p mrPBdImoVdxRVHZJ+wfsojdVy947Qu9Ol5qXOWcOJUtf+j+JojagsB+jZ1Yys2FAMz48 UPzx+iJcNM0CZC7CMnSYWf6pK/UPIWrnWwLAfrtnGcqM43/mf6bEpsPqGeOTjWbuk+6y QnMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FX0F887U; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72-v6si6073694pgc.304.2018.07.19.03.53.06; Thu, 19 Jul 2018 03:53:20 -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=@gmail.com header.s=20161025 header.b=FX0F887U; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731470AbeGSLep (ORCPT + 99 others); Thu, 19 Jul 2018 07:34:45 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52290 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727512AbeGSLep (ORCPT ); Thu, 19 Jul 2018 07:34:45 -0400 Received: by mail-wm0-f68.google.com with SMTP id o11-v6so5720109wmh.2; Thu, 19 Jul 2018 03:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oUHNCSzohWvpGgfi5YmEq9q3L3SAjDp0tndeDbJbNBg=; b=FX0F887UbHaSAO3E7GHw8HK8Me6LzMv9DrAIlMzsLhoUvsvT80YeJUfJOplv7PV8xr 9HwKi8RkwLjc/eBw/tNnulkD1NHJsCTvCxMY0iVPJLFSz/2Q3pHCIj/lo08oUeiesJDi nzlPQ/blk5f+eheZjb+kh7cg9xlebD6biR3kqUsrIfskndpUyl7qa5cRltXHw0OwQeZ5 YvNauLDlqds41rdd28GUF0KkDNGiV4KYTnFRq40+ZlWhqyBB+HUlkkiW7RlZBVnP8r2b FmDfXGv95Ds8ub3sri2a1qxeS5ScxeMN//9aC6CAQ7/iaGHQx4np5Tlcl0Wf3na8duuw 75Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oUHNCSzohWvpGgfi5YmEq9q3L3SAjDp0tndeDbJbNBg=; b=UPz9+nPgvGN9/PT6SRjzTY3rpsg1K0i9ivSeJ7fYBng6nCTimp/kPn75yophz8CIQK ASHq8TLlNMzxWJQbe8QfcX+TCJpheKU6vW5hOPyyrbre9/EmVYhdzNFLc5/TWwQfvK72 wdu4ZOSegi3VvOsVvYWysBONsQ82qAD8GUeLkhvUbWjdg81aP6A/HqGGfxaZ+o9OKjJN sALaNIwsIYdd3adlhKm0xBL4Ko/uuo0N1i+RUHI/UMIok8CTXswKDZ1cK53eyTVrTstN RLD5DfeZNvuCn5Tc+aFKeh+fO4Th1bMGEduxtWsZvl1YxP1h4auOaxdkqn6oHMKVkM4r nJFw== X-Gm-Message-State: AOUpUlEk/jOOi5U/IUJs3AtkA7/51caHsck5CiRP80PGiYEC7Mp+WrsF qDgfdRpALKSc1JA3QEggS08jqUqjGcprEjvgquE= X-Received: by 2002:a1c:a484:: with SMTP id n126-v6mr4166867wme.140.1531997528066; Thu, 19 Jul 2018 03:52:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:1c2:0:0:0:0:0 with HTTP; Thu, 19 Jul 2018 03:52:07 -0700 (PDT) In-Reply-To: <20180420163109.46077.60334.stgit@ahduyck-green-test.jf.intel.com> References: <20180420162633.46077.49012.stgit@ahduyck-green-test.jf.intel.com> <20180420163109.46077.60334.stgit@ahduyck-green-test.jf.intel.com> From: Sunil Kovvuri Date: Thu, 19 Jul 2018 16:22:07 +0530 Message-ID: Subject: Re: [pci PATCH v8 4/4] pci-pf-stub: Add PF driver stub for PFs that function only to enable VFs To: Alexander Duyck Cc: Bjorn Helgaas , linux-pci , virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Linux Netdev List , dan.daly@intel.com, LKML , linux-nvme@lists.infradead.org, keith.busch@intel.com, netanel@amazon.com, ddutile@redhat.com, mheyne@amazon.de, liang-min.wang@intel.com, mark.d.rustad@intel.com, David Woodhouse , Christoph Hellwig , dwmw@amazon.co.uk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > +static struct pci_driver pf_stub_driver = { > + .name = "pci-pf-stub", > + .id_table = pci_pf_stub_white_list, > + .probe = pci_pf_stub_probe, > + .sriov_configure = pci_sriov_configure_simple, > +}; > + Is there any specific reason for not disabling SRIOV upon driver unload/remove ? i.e if a user sets numVFs to a non-zero value and unloads this driver then we have a situation where there is no PF driver in kernel but VFs still exist. Thanks, Sunil.