Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp334838rdb; Tue, 19 Dec 2023 20:06:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfCfK6FsDoS+mZNhIK4d6+cad1JhOyFaU1g+n1tLKWUITN3fvyBQdWAyWex7WcYOGxW+Ns X-Received: by 2002:a05:622a:1743:b0:427:7146:5ff7 with SMTP id l3-20020a05622a174300b0042771465ff7mr3474488qtk.79.1703045175237; Tue, 19 Dec 2023 20:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703045175; cv=none; d=google.com; s=arc-20160816; b=GqarzOOjMRopABVo4m8bZG+5Ip1TEQ5unF2AHG2f3o4skDyNkIHA4EaBzhJHtwu6G4 bAODfwYBa/AQyrLaB/u8QkFfjf2kuLpV54Z9wW5gOx7ZIW8hQ7HX0scumjKS9pEVAYDz /bbi5tyW+NYOx9Ro9+wTp1f7hDP1B63Wd1wrxT/mG3NbB2F15QCmESBITmyQfNFBbl2P UB/+82BY7KVDmDnf0og1iqkVVnN3SpSQ6NEagGimA94OjDICm0uRSetxRLdm0t6e/ZsI oaV5oI60rqqoXT95ciE5ats5M34mdW3jA3C7DkzAwVG77O3cmTifKEm9XYk92GX7LWnC 6D6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=od6b06R9di1R/4iYBvwR9HNhISJUCGr44+UWNtXtRoc=; fh=uBBQxvr6uZhu0dMrEZcRojexdDFCB7vJ0ax5P/j8SQ4=; b=kbpoyFIRB3XlOJftScOvP7QA9N6KSivuJWWpuzCBTRLsv1N8U3+ew7o8FAOG6603wV zcxt/mdsdHq0CeUgdiodNQA6rZ1DP5Oa5Mjnw1nDIzbyIqNSLmkAMx/y8clzm5pJNiL+ LKI+XKdp/ACnVwnhjIVIXf9ccs4HAktrYYXum2iNde/RYK0p0GpS3Xuz1JL/g/yplGoe vTdUZQmMT+gxF72lgtZ3fVdHHnzVQdIAqzW2/GpblYM4l7Ij9/YUCC5CQM0zapm64IHi WSJ68HB+iqkjzViKxnIfisYnM2oontjChkt7cMrlGWnSGfrwSxlEctSjIFiNZZFrt+n+ tztQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MQHVrLdi; spf=pass (google.com: domain of linux-kernel+bounces-6347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fc13-20020a05622a488d00b00425869c1ba5si30363117qtb.617.2023.12.19.20.06.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 20:06:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MQHVrLdi; spf=pass (google.com: domain of linux-kernel+bounces-6347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 03BEC1C252EC for ; Wed, 20 Dec 2023 04:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A19B11715; Wed, 20 Dec 2023 04:06:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MQHVrLdi" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A0D4D26F for ; Wed, 20 Dec 2023 04:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703045163; 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=od6b06R9di1R/4iYBvwR9HNhISJUCGr44+UWNtXtRoc=; b=MQHVrLdiTnYXrw0TsTvqsw7g/+M4/YK//6u5ghkO6uJMkdtWueDTmWOVcYC0+84OnsPtBr CRJlyc3k2ErmsGfxbmvLCd7QsgMEhdsvofSjae84SHOrSeW3rffOP2KvbOaJHVkAiaklLC s+SaepToKj1tfMOCkQaWM2rvIRnM5Mo= Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-20-4ATFmPmfMSGi5qgViQdx_w-1; Tue, 19 Dec 2023 23:06:02 -0500 X-MC-Unique: 4ATFmPmfMSGi5qgViQdx_w-1 Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3ba2072052cso6595536b6e.2 for ; Tue, 19 Dec 2023 20:06:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703045161; x=1703649961; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=od6b06R9di1R/4iYBvwR9HNhISJUCGr44+UWNtXtRoc=; b=rjFiY96902WxjPkr7ah7tkK4wEeFnYVcSzFMKSMPDYGA8Q/dB3FyhT3NrdzjjPh0KU c+fSSLeHJHzNhfpSFuoJablsdm1ROCd3JJuRyuZ6fJVBz2Xy2+mwCmKOK411E6QLC7b8 br9UgIIWPlCRMgF/tx0w2/hOTf7T3fv+Q9k0w8S5ZFGTh1CuAQTZNdjK+RmltzxtVr1R dF29Ggcx0SfFG47evLLtTmDh7HSrmuo+5KBoo9j8CEC1Q72IrMJUBRTo+ii0UoM+aYQV Fpe4V33yVaqpOjts5QYAiRyuXFsLnZkm7Yb66Ul6FfuT25wYdNGUok0BJ+Qw9EwieH3M 1xnQ== X-Gm-Message-State: AOJu0YzQrQBaGqrTzMkopeF7dbv/wwbTqy0T+f1KhSIPxNEOpLpbYoXN 19g1Z5+Yl/KVeNz14Uc/vR7U0YU292a1KuCQopwI74JzIC9RIq9mGgj7SOY0d1WL0LJ+C1Qc/eC xv23+N+R8Pjlftn33FLe1wO3sTzbHBeW+ZPiaYhcz X-Received: by 2002:a05:6808:2022:b0:3bb:5f46:fc92 with SMTP id q34-20020a056808202200b003bb5f46fc92mr2662218oiw.32.1703045161217; Tue, 19 Dec 2023 20:06:01 -0800 (PST) X-Received: by 2002:a05:6808:2022:b0:3bb:5f46:fc92 with SMTP id q34-20020a056808202200b003bb5f46fc92mr2662209oiw.32.1703045161039; Tue, 19 Dec 2023 20:06:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219180858.120898-1-dtatulea@nvidia.com> <20231219180858.120898-3-dtatulea@nvidia.com> In-Reply-To: From: Jason Wang Date: Wed, 20 Dec 2023 12:05:50 +0800 Message-ID: Subject: Re: [PATCH vhost v4 02/15] vdpa: Add VHOST_BACKEND_F_CHANGEABLE_VQ_ADDR_IN_SUSPEND flag To: Dragos Tatulea Cc: "Michael S . Tsirkin" , Eugenio Perez Martin , Si-Wei Liu , Saeed Mahameed , Leon Romanovsky , virtualization@lists.linux-foundation.org, Gal Pressman , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Parav Pandit , Xuan Zhuo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 11:46=E2=80=AFAM Jason Wang w= rote: > > On Wed, Dec 20, 2023 at 2:09=E2=80=AFAM Dragos Tatulea wrote: > > > > The virtio spec doesn't allow changing virtqueue addresses after > > DRIVER_OK. Some devices do support this operation when the device is > > suspended. The VHOST_BACKEND_F_CHANGEABLE_VQ_ADDR_IN_SUSPEND flag > > advertises this support as a backend features. > > There's an ongoing effort in virtio spec to introduce the suspend state. > > So I wonder if it's better to just allow such behaviour? Actually I mean, allow drivers to modify the parameters during suspend without a new feature. Thanks > > Thanks > >