Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5881187ybv; Wed, 12 Feb 2020 01:56:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwtE09RTXcdMsIcwqlMuy2CYSnIrm/pZOZ7Ai987ywt2fiwjYthty7eMsd0VOdtqxL3WojZ X-Received: by 2002:a9d:7b50:: with SMTP id f16mr8724578oto.18.1581501391669; Wed, 12 Feb 2020 01:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581501391; cv=none; d=google.com; s=arc-20160816; b=kifyU1yMzCH0IBT4t6fP09Ohdvy8T5r8CKqNPIfJQV9Af+Z4DWrw3SLpkPKYUjzTp2 jchmnxjFHqQdwsKXPXIfQHL0Orv8HlyseBnPlGjurBFKa6vfk1pImIUsQzQONIgzuPFp R1lYro1+C4PdEJvWNn1bTa5K8FkCebuCWOBbI/JeWggBKgogIovSlXVKNs/SzHunT+jP 09bB6dnbKsUM0nRGk0rAq+W2zmdIP3wpx4x6+vC5MZhcF6ep3eD+dX77uHMCckChwOIX rB6NixGtR67uKzZB+Gd8J1deMC21voZAQC/mwX8bFdy4cKzMCEP1NF7vNeXTvmqJ84DN SS/Q== 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:dkim-signature; bh=bFNhckmD80QJf6jRDOHI6PRM4MMiU94KSnf7/vGNBgo=; b=x5vXrDl6NuAdfm4tjsUktyAW+0aRZ+tBguXI8lX9yYZ4paBldvF7Uc4HM+VY+GMO+h SBTpfGISmn4znslXcKRJjXsQPZzJEsK2W23wUpCQHyM2Lnc1Fdp47ggQ0q+JJYTOV1wi NpocSf2qqi9xsVzLewq46ae1vb/Bjy7Qgp/04ZVDF8xn05k7ovH0z/KPbwY5z1zmauRl osoffK/WkgA9O9SjW4yX8WHHLpquLi9J8Jy/TR8AKHYv1DhQZAGH6f3tSXbMtiFaE8D8 llxBytETzqs6Y3NVBPgCkCsLv647fx+MhhtlK+L1e73RbVhGwyQfvIdFU2dis+LHVq4s 94xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q/p0LXqg"; 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=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 w24si2892048oic.260.2020.02.12.01.56.19; Wed, 12 Feb 2020 01:56:31 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q/p0LXqg"; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728942AbgBLJzr (ORCPT + 99 others); Wed, 12 Feb 2020 04:55:47 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:45989 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728846AbgBLJzr (ORCPT ); Wed, 12 Feb 2020 04:55:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581501345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bFNhckmD80QJf6jRDOHI6PRM4MMiU94KSnf7/vGNBgo=; b=Q/p0LXqgDpcgKzMvSrWm/XzSjD+H2v+tacZqseLyP6o59P0EngN7O7FvtKsUxGhhT5Lghl bH+Cnaoz7+drwoVPiTrT1B/BGeyl6Tp7ymekC53oS9KJyGvzGxI/vfqeH8Y+38A70Jq97u ixeSlzhyB9hA9/Eae/cVdkG3oUU8QAA= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-59-ZgcbkkfuMtCexj59ckLK2Q-1; Wed, 12 Feb 2020 04:55:44 -0500 X-MC-Unique: ZgcbkkfuMtCexj59ckLK2Q-1 Received: by mail-qt1-f199.google.com with SMTP id k27so894260qtu.12 for ; Wed, 12 Feb 2020 01:55:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=bFNhckmD80QJf6jRDOHI6PRM4MMiU94KSnf7/vGNBgo=; b=qw1AZ7i/CwPCILvm9fYLz94FmmYeNyVuk4Bjxl5xULTTZKCtLEcga7NMyHj2298ehz VkEdrpFKaQOIejQnxd4/7ed8BioEzl3A4O+isyOr9MFFkIP+zupj28jyh2/eQnf8UGvE 9H5NCmUz/M5jdUoi3S65i9y1RxSigx/WTi0ilrjWHxPbFsMd9RQKhesqQOloPBviu5wI w119rD9hboD5DFVte0W2NOEHMQzWWaZ4DgC0l+0yDyc9SAmmcPiJlMLtNavGrrA/NV5U tpFKmxt5MtEbIM5y5pn1CIYDINsc4r/W1Bfhugcc209mE5VbRV3tolUTNRYyETwOH5OF NKPQ== X-Gm-Message-State: APjAAAX6EnnhZggQQpF7arVhP/uhoRxRNaY2qVQvD5+z+Cw/dRAUvvTj Ytz5wa94LLjy0vHTb8zM8INFml2OIez3Ptsr34qj/MYucsRJJX5gwaNE1EPmfM4VjH3uarpuDMa n/qoa/0foSF97PugRP9exzZl0 X-Received: by 2002:a37:c20c:: with SMTP id i12mr6835436qkm.369.1581501343958; Wed, 12 Feb 2020 01:55:43 -0800 (PST) X-Received: by 2002:a37:c20c:: with SMTP id i12mr6835426qkm.369.1581501343730; Wed, 12 Feb 2020 01:55:43 -0800 (PST) Received: from redhat.com (bzq-79-176-41-183.red.bezeqint.net. [79.176.41.183]) by smtp.gmail.com with ESMTPSA id d206sm3549894qke.66.2020.02.12.01.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 01:55:42 -0800 (PST) Date: Wed, 12 Feb 2020 04:55:38 -0500 From: "Michael S. Tsirkin" To: Jason Wang Cc: Zha Bin , virtio-dev@lists.oasis-open.org, slp@redhat.com, jing2.liu@linux.intel.com, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, chao.p.peng@linux.intel.com, gerry@linux.alibaba.com Subject: Re: [PATCH v2 1/5] virtio-mmio: add notify feature for per-queue Message-ID: <20200212045245-mutt-send-email-mst@kernel.org> References: <8a4ea95d6d77a2814aaf6897b5517353289a098e.1581305609.git.zhabin@linux.alibaba.com> <20200211062205-mutt-send-email-mst@kernel.org> <20200212024158-mutt-send-email-mst@kernel.org> <82d99b35-0c64-2eb2-9c23-7af2597b880b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <82d99b35-0c64-2eb2-9c23-7af2597b880b@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 05:33:06PM +0800, Jason Wang wrote: > > On 2020/2/12 下午4:53, Jason Wang wrote: > > > > On 2020/2/12 下午4:18, Michael S. Tsirkin wrote: > > > On Wed, Feb 12, 2020 at 11:39:54AM +0800, Jason Wang wrote: > > > > On 2020/2/11 下午7:33, Michael S. Tsirkin wrote: > > > > > On Mon, Feb 10, 2020 at 05:05:17PM +0800, Zha Bin wrote: > > > > > > From: Liu Jiang > > > > > > > > > > > > The standard virtio-mmio devices use notification register to signal > > > > > > backend. This will cause vmexits and slow down the > > > > > > performance when we > > > > > > passthrough the virtio-mmio devices to guest virtual machines. > > > > > > We proposed to update virtio over MMIO spec to add the per-queue > > > > > > notify feature VIRTIO_F_MMIO_NOTIFICATION[1]. It can allow the VMM to > > > > > > configure notify location for each queue. > > > > > > > > > > > > [1]https://lkml.org/lkml/2020/1/21/31 > > > > > > > > > > > > Signed-off-by: Liu Jiang > > > > > > Co-developed-by: Zha Bin > > > > > > Signed-off-by: Zha Bin > > > > > > Co-developed-by: Jing Liu > > > > > > Signed-off-by: Jing Liu > > > > > > Co-developed-by: Chao Peng > > > > > > Signed-off-by: Chao Peng > > > > > Hmm. Any way to make this static so we don't need > > > > > base and multiplier? > > > > E.g page per vq? > > > > > > > > Thanks > > > Problem is, is page size well defined enough? > > > Are there cases where guest and host page sizes differ? > > > I suspect there might be. > > > > > > Right, so it looks better to keep base and multiplier, e.g for vDPA. > > > > > > > > > > But I also think this whole patch is unproven. Is someone actually > > > working on QEMU code to support pass-trough of virtio-pci > > > as virtio-mmio for nested guests? What's the performance > > > gain like? > > > > > > I don't know. > > > > Thanks > > > Btw, I think there's no need for a nested environment to test. Current > eventfd hook to MSIX should still work for MMIO. > > Thanks Oh yes it's the wildcard thingy but how much extra performance does one get from it with MMIO? A couple % might not be worth the trouble for MMIO. -- MST