Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3830303ybi; Fri, 19 Jul 2019 09:45:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfiu28iAZmIV0CIXfFtNGB5bQn/uO6NgTTYsoQaLzpgnf+G5lXlOzgYoJEdPiuSBWhpUVS X-Received: by 2002:a17:902:4aa3:: with SMTP id x32mr55573237pld.119.1563554754364; Fri, 19 Jul 2019 09:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563554754; cv=none; d=google.com; s=arc-20160816; b=AK3W0o1I6wxbqnJonJbtaLVvwUfPnlM8X1yLynw9xQSSFmK08JoijhzlHPpvzwIhPu mkZCi+XUUyO69N8eEkrLw6O4ccc7l9DQZAD24HEt6qs4rTmdYmPQ6qZkPoge/pRqSUNW mHfHlKdNdV5gKb4fi6d0qZkAXvRqzJVH5xyOiyCExukyT/oa3gPzrcPph/QOI+S5gCXW r863SGfDyBgMDbkL75lgyfqI6Gi95GvddD4GFlcj3/LtKnMr8dk4JHctoeSS52UlcuQw jhKdITqKx+Ll19LGYpxKHYzx9QEvrRXjQREJJBsE3DE8QARox76/Ia2dDjdsQHIs3KMm KDsw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5GvZqJlRZwSaDn4HIjhNPfffj9bnJNK4t8TFfBJXjQ4=; b=tn6iIQNpAQYgEhz4c+4rM3rB2iN2hmqTLAy/f7fqR4Iicm2TrlDcTPnHy+3Ip7LQ+2 au93F0vnvGAVSaoHDFd4fMkjAxeufTPifEpjXJrsXgLyTKvs1BpaS1M+wBSx5yOjPbze zyy6wCZBciwU8nbLcCHokTDobfCw6yFj0dr1CL0KqfwaSxStdQLdUnTqdnqzrgq5cwjF XYMd0kJtTpxVkJTbDK7XYRwkUqfrP0WPW6FILxjQYcx8d8GJZYRNnvE66IGO1OJ20nXx /txA5Fc0OgsmqDMZR8+n7QoS5vksQZplk1bphCdiD1PdJ77Tb73obaAmbyf4UYFvQoQ9 Y8tQ== 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 be3si2076012plb.383.2019.07.19.09.45.38; Fri, 19 Jul 2019 09:45:54 -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 S1728238AbfGSPOd (ORCPT + 99 others); Fri, 19 Jul 2019 11:14:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39262 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbfGSPOc (ORCPT ); Fri, 19 Jul 2019 11:14:32 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42B3FB2DDB; Fri, 19 Jul 2019 15:14:32 +0000 (UTC) Received: from redhat.com (ovpn-124-174.rdu2.redhat.com [10.10.124.174]) by smtp.corp.redhat.com (Postfix) with SMTP id D80FB63F66; Fri, 19 Jul 2019 15:14:29 +0000 (UTC) Date: Fri, 19 Jul 2019 11:14:28 -0400 From: "Michael S. Tsirkin" To: Fei Li Cc: linux-kernel@vger.kernel.org, Jason Wang , Pawel Moll , Suzuki K Poulose , Fam Zheng Subject: Re: [PATCH v1 0/2] virtio-mmio: support multiple interrupt vectors Message-ID: <20190719110852-mutt-send-email-mst@kernel.org> References: <20190719133135.32418-1-lifei.shirley@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190719133135.32418-1-lifei.shirley@bytedance.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 19 Jul 2019 15:14:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. So I'm guessing we need to change the host/guest interface? If true pls cc virtio-dev. Also, do we need to update dt bindings documentation? > > 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