Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6838599ybi; Mon, 22 Jul 2019 02:34:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIGVMduMh6aZd/vRGyFpq1KCqVccSRODhF9v33zJBjT9c0VjABf47GNVwwAvOWPya2R+NF X-Received: by 2002:a63:db47:: with SMTP id x7mr70176853pgi.375.1563788092099; Mon, 22 Jul 2019 02:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563788092; cv=none; d=google.com; s=arc-20160816; b=SKQ8HZPshYW6YQacNknpm6ed38F7GsesNAmZWTJxkb8KyiaiS9lB/2eISytUl6wF8X ePFAI0tOwEjqoE2BXnIM1z3tImuiCpAOwQsD7HyiuwaQrmuHn0eJcO3lEqBUqvR8k+Pr 4KUDFr03Kyy3zVrZYZVniT9Rmf/8efqojJqYPd1C3SInlBjtXKevhedsxj7R0J9yGYwO h0MEEnHNZO1gNjSsj2paqoO+EtF5LBhGyZN0dHfnWhLu2e+WKTgF6clvPAyzOQ19UlMT IFIWoOBlr0XXfAgsFPVerMnr3adunKNyUMKwGs9ZaN7wK3cNaxU4fVUqWHd8gr1tHTR0 ZG3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fnpMm1WugVUdjHdhkeoZEKA0HyckdjcHA0mXHOemEaA=; b=AODfd80ZDHKtPJjH8sVl7rxQn4Z0MHa6wM7334/7IZcvCvKVHY7c8s7/6UQ4xBsefN ilcLx3gwLkBvTRULQod4rtX4Bsy99+79tfx0xWpRBIrphkOfGusWYu67E4YBPFpJNYNA c/f9eYa72eZ1Y7TxBx3OcIq44Flf8J9MSBS8ALtFIuXZPnnDhtYwfMR/JqDTMujBd+h9 ftSoSO4VJXzfrHwLqXv2dUFIQPINaQTCSEJBmbhfmTNsp1B0dQFC8XE+10C8VuQp+kk3 UIhGb5asuS6REsXq/5Y+WDVHfHxDf3/2xaJqOgGEpZ1b5JOjePPBpSSWkLb2TzCYwOYU bpVg== 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 g7si11624995plt.244.2019.07.22.02.34.36; Mon, 22 Jul 2019 02:34:52 -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 S1728483AbfGVIkH (ORCPT + 99 others); Mon, 22 Jul 2019 04:40:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48780 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728177AbfGVIjx (ORCPT ); Mon, 22 Jul 2019 04:39:53 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 749F93E2D3; Mon, 22 Jul 2019 08:39:52 +0000 (UTC) Received: from redhat.com (ovpn-120-233.rdu2.redhat.com [10.10.120.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id B365B1001B09; Mon, 22 Jul 2019 08:39:49 +0000 (UTC) Date: Mon, 22 Jul 2019 04:39:47 -0400 From: "Michael S. Tsirkin" To: =?utf-8?B?5p2O6I+y?= Cc: virtio-dev@lists.oasis-open.org, linux-kernel@vger.kernel.org, Jason Wang , Pawel Moll , Suzuki K Poulose , Fam Zheng Subject: Re: [External Email] Re: [PATCH v1 0/2] virtio-mmio: support multiple interrupt vectors Message-ID: <20190722043707-mutt-send-email-mst@kernel.org> References: <20190719133135.32418-1-lifei.shirley@bytedance.com> <20190719110852-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 22 Jul 2019 08:39:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 11:22:02AM +0800, 李菲 wrote: > On Fri, Jul 19, 2019 at 11:14 PM Michael S. Tsirkin wrote: > > > > On Fri, Jul 19, 2019 at 09:31:33PM +0800, Fei Li wrote: > > > Hi, > > > > > > This patch series implements multiple interrupt vectors support for > > > virtio-mmio device. This is especially useful for multiqueue vhost-net > > > device when using firecracker micro-vms as the guest. > > > > > > Test result: > > > With 8 vcpus & 8 net queues set, one vhost-net device with 8 irqs can > > > receive 9 times more pps comparing with only one irq: > > > - 564830.38 rxpck/s for 8 irqs on > > > - 67665.06 rxpck/s for 1 irq on > > > > > > Please help to review, thanks! > > > > > > Have a nice day > > > Fei > > > > > > Interesting. The spec says though: > > > > 4.2.3.4 > > Notifications From The Device > > The memory mapped virtio device is using a single, dedicated interrupt signal, which is asserted when at > > least one of the bits described in the description of InterruptStatus is set. This is how the device sends a > > used buffer notification or a configuration change notification to the device. > > > Yes, the spec needs to be updated if we want to use mult-irqs. > > > > So I'm guessing we need to change the host/guest interface? > Just to confirm, does the "the host/guest interface" you mentioned mean how to > pass the irq information from the user space tool to guest kernel? > In this patch, we do this by passing the [irq_start, irq_end] > interface via setting guest > kernel command line, that is done in vm_cmdline_set(). > Also there is another way to do this: add two new registers describing irq info > (irq_start & irq_end OR irq_start & irq_numbers) to the virtio config space. > > Which one do you prefer? I'm not sure - so far irq was passed on the command line, right? The first step in implementing any spec change would be to update qemu code to virtio 1. Which is not a huge project but so far no one bothered. > > If true pls cc virtio-dev. > Sure. > > > > Also, do we need to update dt bindings documentation? > You mean the following doc? Sure. :) > https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/virtio/mmio.txt > > Thanks for the review! > > Have a nice day > Fei > > > > > > > > > > Fam Zheng (1): > > > virtio-mmio: Process vrings more proactively > > > > > > Fei Li (1): > > > virtio-mmio: support multiple interrupt vectors > > > > > > drivers/virtio/virtio_mmio.c | 238 +++++++++++++++++++++++++++++++++++-------- > > > 1 file changed, 196 insertions(+), 42 deletions(-) > > > > > > -- > > > 2.11.0