Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7282342yba; Thu, 2 May 2019 07:22:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcyv9FJeKIgwcIBgpjaRMiHK1Hj4hpINegfZ+RS9qVpSXuNgcNNr5nofdNQcRuUvE3EZAH X-Received: by 2002:a17:902:8c85:: with SMTP id t5mr4091543plo.23.1556806952156; Thu, 02 May 2019 07:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556806952; cv=none; d=google.com; s=arc-20160816; b=gz/PbworEHz+MEepaiB66+j6h8PX3dyvjZs+Nhu7y0wcQUz9AYODfjlVC1JTFJOKGL R9h+hl1b5B44MRPh/QBxCdJClWQJtmbqcQDjF00P0L1orEmtQXELWlMGua3BqoLmNCaV IYIAjW0B+X9yVysVBH8gp/7UVMjCoGECon1U9MT42rbG2u4QTCxbj8jvVfjGx0ow6kTe hBRDonv+DIzj54BGSpza4QVa6IirR0HS0FjMg3kWbWndNWAkUxrrsp7ttQhGYVK9oXH3 y9fc12KjieCbroLinbmD3iaSerUqZNyUVBRKexZWedWIp3a6q2Wca7aiw1yfZXn41Vaz WK6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=shvKNwdTcGXGi5j1KAGZklJHGDyKoffvi5ktjA1of0Y=; b=dGFQLAM9znBBjgwumu7fwVD8SDjt1bGV1097sF2spaPuBcDkQWJ1GNRTYNaVYf1er8 4WyHkSAN3Mvjk1GI3oTcE75hQzezKAZZRBaZraX8ELGrrDrFqRgyKG53a+E3RVtw8MRp 7c46PNId3eAiD+AhgGimp0zVtRTipB6kAdy8iJOc+tC68CNm+dgpIBBdHRSSpd5Z6SIw MTExkG/unFwh1ZK6UvAhdCFd5XVnT90OgGpkhKIb9W/5G/O3RR8yfHurFJ2xMVekWsLr zrG0zNCmfYKvnJm6GimLnQbUmC5scVdNwPCen7bakBp2t9BNbK0IkT1rLH0Q+J6FF1a1 bljQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si41190407pgp.376.2019.05.02.07.22.15; Thu, 02 May 2019 07:22:32 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbfEBOUn (ORCPT + 99 others); Thu, 2 May 2019 10:20:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51520 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfEBOUn (ORCPT ); Thu, 2 May 2019 10:20:43 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B380530ADBC3; Thu, 2 May 2019 14:20:42 +0000 (UTC) Received: from maximlenovopc.usersys.redhat.com (unknown [10.35.206.58]) by smtp.corp.redhat.com (Postfix) with ESMTP id EA761827BC; Thu, 2 May 2019 14:20:32 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 08/10] nvme/pci: implement the mdev external queue allocation interface From: Maxim Levitsky To: linux-nvme@lists.infradead.org Cc: Fam Zheng , Keith Busch , Sagi Grimberg , kvm@vger.kernel.org, "David S . Miller" , Greg Kroah-Hartman , Liang Cunming , Wolfram Sang , linux-kernel@vger.kernel.org, Kirti Wankhede , Jens Axboe , Alex Williamson , John Ferlan , Mauro Carvalho Chehab , Paolo Bonzini , Liu Changpeng , "Paul E . McKenney" , Amnon Ilan , Christoph Hellwig , Nicolas Ferre Date: Thu, 02 May 2019 17:20:31 +0300 In-Reply-To: <20190502114801.23116-9-mlevitsk@redhat.com> References: <20190502114801.23116-1-mlevitsk@redhat.com> <20190502114801.23116-9-mlevitsk@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 02 May 2019 14:20:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-05-02 at 14:47 +0300, Maxim Levitsky wrote: > Note that currently the number of hw queues reserved for mdev, > has to be pre determined on module load. > > (I used to allocate the queues dynamicaly on demand, but > recent changes to allocate polled/read queues made > this somewhat difficult, so I dropped this for now) > > Signed-off-by: Maxim Levitsky > --- > drivers/nvme/host/pci.c | 375 ++++++++++++++++++++++++++++++++++++++- > drivers/nvme/mdev/host.c | 46 ++--- > drivers/nvme/mdev/io.c | 46 +++-- > drivers/nvme/mdev/mmio.c | 3 - > 4 files changed, 421 insertions(+), 49 deletions(-) The changes in drivers/nvme/mdev aren't supposed to be here, this was some code moving around to reduce the diff in the generic block layer support code, it supposed to go to the main mdev commit. Best regards, Maxim Levitsky