Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5603392ybv; Tue, 11 Feb 2020 19:41:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzpOGMkgKdVbzW3FSjFVdrU2ho+7Y036szGJPO3ETtvUMKbARYJMa51UDsXAkKZFd4OSMbd X-Received: by 2002:aca:5f85:: with SMTP id t127mr5064539oib.1.1581478891627; Tue, 11 Feb 2020 19:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581478891; cv=none; d=google.com; s=arc-20160816; b=khiUQMgK3tm6sy6QPiUilJNDgMJ4Jr4YfFVIjLEgrWL5USyERuBkEXWIZn7E7U9Cci 3G+dKtAc9ArMh9BmyOTSeXQBQ04nlTA7U4yQTjAqpPU6CU0xYikeieTIeNfxyX1gOvRb nE5wET3hX05sVc1rfQy71cnTdp2yyanbrDltFx5BKxYnhvJ3fQVO5phpr9fF0oRkZF+I 9TPvNKxFRntX4OQPOPmOP6b24WwAKbH33dE2CgAAEzTPA/oaFb+ZiFCOhWRddL0Y//Lw OEmKUSmoO+sEL9PeLj5zEma2ynOWxUJSok18UT7FnNtvCGwurJSiblyA6Uu+ACa7iSM7 1Gig== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=S1E0Z0wase8qOv1Belxsp5ny7Z5FV1upA2C64aN98yQ=; b=S3PzpukWH3oWhQX/j4gslmpH0p/FVUx/UXDeqNKakWGFyFFKWbrh8XZUuFhMtfsyVP 8/njAPz4GvOXj+O3kDpV88suWXOknxrrymetMDJ7TgJMpJFcdqlSREyFnuOTSOLRnitv t4ZbtupcDvCGVTETImryffqpHloGAijVnl2V+1oW3WrI8DG0+tWlHAhmC75XjyDqwG97 RhCcgDTgde/A2xgLHBNgfd/XIkGpC+pqIx+Tam47IaywF6nr80fMCDIREL5OgLSu49L5 6ExVLB4n0+ZIiEIdusd/QI9h8caPr9y+91vwAiYMGqOpxK+rpLuV1++H+nhnPA+d+ZcW lnTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QiZXcQk8; 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 r6si3052054otp.220.2020.02.11.19.41.18; Tue, 11 Feb 2020 19:41: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=QiZXcQk8; 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 S1727826AbgBLDkP (ORCPT + 99 others); Tue, 11 Feb 2020 22:40:15 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:54155 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727602AbgBLDkO (ORCPT ); Tue, 11 Feb 2020 22:40:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581478813; 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=S1E0Z0wase8qOv1Belxsp5ny7Z5FV1upA2C64aN98yQ=; b=QiZXcQk8KQqFpS9K79aVdYfmyMyQ3kDb/zjJapiTElPD0h+hcqpTwCFYR7ELaEmvG1TXKN Fax1VffugEcO9Kv82DB94Oy/xmGW9zBe14X8fDl5jqwN0lIpnrstT6/4GfEe+0QNZMq0os epfc1Ja49kNPF4GF5YmBLqW9Ulb13OQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-180-keUBMm_SOAKZuWyVQWB5tA-1; Tue, 11 Feb 2020 22:40:08 -0500 X-MC-Unique: keUBMm_SOAKZuWyVQWB5tA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 481CC1005502; Wed, 12 Feb 2020 03:40:07 +0000 (UTC) Received: from [10.72.13.111] (ovpn-13-111.pek2.redhat.com [10.72.13.111]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8C0F8ED1B; Wed, 12 Feb 2020 03:39:56 +0000 (UTC) Subject: Re: [PATCH v2 1/5] virtio-mmio: add notify feature for per-queue To: "Michael S. Tsirkin" , Zha Bin Cc: 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 References: <8a4ea95d6d77a2814aaf6897b5517353289a098e.1581305609.git.zhabin@linux.alibaba.com> <20200211062205-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: Date: Wed, 12 Feb 2020 11:39:54 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200211062205-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/2/11 =E4=B8=8B=E5=8D=887: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