Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from ws5-mx01.kavi.com (ws5-mx01.kavi.com [34.193.7.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C937EC77B7F for ; Tue, 16 May 2023 03:38:01 +0000 (UTC) Received: from lists.oasis-open.org (oasis.ws5.connectedcommunity.org [10.110.1.242]) by ws5-mx01.kavi.com (Postfix) with ESMTP id E984216E5A8 for ; Tue, 16 May 2023 03:38:00 +0000 (UTC) Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id CE3B0986514 for ; Tue, 16 May 2023 03:38:00 +0000 (UTC) Received: from host09.ws5.connectedcommunity.org (host09.ws5.connectedcommunity.org [10.110.1.97]) by lists.oasis-open.org (Postfix) with QMQP id BB04F983DA0; Tue, 16 May 2023 03:38:00 +0000 (UTC) Mailing-List: contact virtio-comment-help@lists.oasis-open.org; run by ezmlm List-ID: Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id A8496986511 for ; Tue, 16 May 2023 03:38:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at kavi.com X-MC-Unique: I_uXDkimPkm-hANn38zlpg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684208277; x=1686800277; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U+4wzhCvNOqf7DwUHzmUni+2X5utT3WSg8ch+30+7ng=; b=R0R9E45xI+77LlLNkVpIi2pt4HN8wSCN6eQRDY9nRdqR+2O9zx1AXmi4/puFcHha6E uyxdwyN5iLTYP3BOCXFiRfSh76/CZ654DFMP3X1jV3P4Lo3rhskHfDAuw1iKuVVN6whm fGOTh0OWdJSwbjkyzqQ4w74JwY2Oq8crctmTDZT77Q+4Kec8HIezqi604rYvpAXyJPhX QWFOdsYDK5S6qTXKHTZyYWr0pr8Ql3d1OHZh34tny0bHhwugh2nK7z8cB1tGV3A+5oud KxW5DBegzcI+d8nd2fH1Qy98q126/vW2zRn2dtQLCceFS3Y1bsLyLzHthAk+2vdnkMan TcCw== X-Gm-Message-State: AC+VfDy4PnhchF3k0o8BGnhkX7NMCn+Azv1mKJ9ipcnYr+ZfGsaRknZ2 IDZTzf3Xb8XvF99bMgqR84yjvuio2h9Vg65GcuayFTlbnA3BudwEn9B+dXIfpoGbDKrCo+JJ76g F2EI8ErrVxUSo9bQGjJo86g8tzyWqcncuGA== X-Received: by 2002:a17:903:25cf:b0:1ae:6a6:9ee4 with SMTP id jc15-20020a17090325cf00b001ae06a69ee4mr8142331plb.29.1684208277746; Mon, 15 May 2023 20:37:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JeAv7BkkSsenZea7QZroAchdZoKpySAk3Rjyg6er/jsoENLqCBgcwj7sDqSidx13wBPa8Pw== X-Received: by 2002:a17:903:25cf:b0:1ae:6a6:9ee4 with SMTP id jc15-20020a17090325cf00b001ae06a69ee4mr8142317plb.29.1684208277466; Mon, 15 May 2023 20:37:57 -0700 (PDT) Message-ID: <78ade48a-6f5d-8a2d-1524-44340f0154ce@redhat.com> Date: Tue, 16 May 2023 11:37:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: "Michael S. Tsirkin" , Parav Pandit Cc: "virtio-dev@lists.oasis-open.org" , "cohuck@redhat.com" , "david.edmondson@oracle.com" , "sburla@marvell.com" , Yishai Hadas , Maor Gottlieb , "virtio-comment@lists.oasis-open.org" , Shahaf Shuler References: <893b6ec0-a74f-69b7-95a3-988f0f9382a8@redhat.com> <20230515133719-mutt-send-email-mst@kernel.org> <20230515135513-mutt-send-email-mst@kernel.org> <20230515140052-mutt-send-email-mst@kernel.org> From: Jason Wang In-Reply-To: <20230515140052-mutt-send-email-mst@kernel.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [virtio-comment] Re: [PATCH v2 0/2] transport-pci: Introduce legacy registers access using AQ 在 2023/5/16 02:01, Michael S. Tsirkin 写道: > On Mon, May 15, 2023 at 06:00:02PM +0000, Parav Pandit wrote: >>> From: Michael S. Tsirkin >>> Sent: Monday, May 15, 2023 1:56 PM >>> >>> On Mon, May 15, 2023 at 05:51:05PM +0000, Parav Pandit wrote: >>>>> From: Michael S. Tsirkin >>>>> Sent: Monday, May 15, 2023 1:45 PM >>>>> >>>>> On Mon, May 15, 2023 at 03:49:44PM +0000, Parav Pandit wrote: >>>>>> All legacy interface via AQ. >>>>>> All modern interface access via PCI or its own transport between >>>>>> driver and >>>>> device. >>>>> >>>>> I am wondering however about the hypervisor notifications. >>>>> Generally these are the most problematic aspect here I feel. For >>>>> example, how does it interact with VIRTIO_F_NOTIF_CONFIG_DATA? And >>>>> generally, having both guest and host be allowed to access device's BAR >>> seems problematic. >>>>> Can we reserve a PF BAR region for these things or is that too expensive? >>>> VIRTIO_F_NOTIF_CONFIG_DATA is not present for the legacy. >>> it is not but it just might be required, or it won't be there. >>> >> How can it be required if it not part of it? >> I likely didn't follow your question/comment, can you please explain. > VIRTIO_F_NOTIF_CONFIG_DATA is there presumably for a reason. > >>>> For modern device, guest driver will access the device own BAR directly with >>> its own config_data anyway. >>>> Should we reserve a region in the PF BAR for SF/SIOV device?, should device >>> report which BAR/area to use for the given SF/SIOV device? >>>> May be yes, those are different discussions with tradeoff to consider during >>> SIOV discussions. It is not related to VFs. >>> >>> For SIOV it's a given. But we can do this for SRIOV: reserve a PF region per VF. >> Each VF has its own BAR area for driver notifications. > But it is passed through to guest presumably. Probably not in the case of VIRTIO_F_NOTIF_CONFIG_DATA. Did you see any problem if we do mediation here except for some performance penalty? Thanks > This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: virtio-comment-subscribe@lists.oasis-open.org Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org List help: virtio-comment-help@lists.oasis-open.org List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/