Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1863828rdb; Sat, 2 Dec 2023 12:27:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsEPvtRBFkVWlzRDGt7/1p6WG/bNwqeoCGR5iLXbfrn/t9ERjDfn3aEDks+WXXOEcYJMrp X-Received: by 2002:a17:90a:cb0a:b0:286:6cc0:cade with SMTP id z10-20020a17090acb0a00b002866cc0cademr1170219pjt.85.1701548820698; Sat, 02 Dec 2023 12:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701548820; cv=none; d=google.com; s=arc-20160816; b=HJB6g42WCSREYEpOBbm8/2sHDWo6bXo4bXF73TYSYPo1KbsI/jF+mKw3EeZWqfjAbp dqYQp06k6VmXB6PYTIyuKMXSe6iKYLI7F5eJS+5WjQur1CR6rlPEdrMhH2fshrqF4Z/T Jg8eI6frLtG2hWbToJBGPGqwwbQqowYOoYu9Mar1M4CEFkJu7v1Wd+OxTV6WOrfDQqHY tBkqw849/k12AC4ItGPSUWwi7rotk6jx95nKYHNZHf9+kiouxW01oo7hT4MyTzAve1rH AZI5n9tPgJ8SvqBWq9pqEOJvg4ZY2iRdCc4+Z++b3GRlB+Lrm9Ie2mZHrrntJlwtQasd dr2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iZJKmBTJ+Rbbpx8uaCWzSm8u5JZ8h0qLae0DxmI9+YE=; fh=rdDXWrE80wYtr+5937a+m3oL0ogE6xeDGB1sAPmewUY=; b=yevForN1kwKu2ArmdkZyT9n7Tt39ENbRJaFX5ioyJEgORmN9qZ31e2a2w64jI8nNdJ AHYlF2HHANb7m4Uukb3tbj03cHe42bInHqNnNQtL60UYrzqKQlFYuyZpPTR5itXfwfee xTwGqCNLG9u1cx6Zwgc5IHIr7uqJCc0DLQYmX8Fw59Moc11SktmS8+nfZrgavzFG5kjN YR2jmQQrScy4s5FfsgsjWADEKGzj1czDuBAoweCauY/72vi9i/YV9qsXIdcZQSCgujoY U4bZXvLESWYp46eb/XmFw+NCmAkz/zB8q1sWmbCC1tivvU1H9kTr65cO90z5hSqGVfT2 qqSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjohETuy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id o18-20020a17090aac1200b002861cc51114si5538387pjq.164.2023.12.02.12.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 12:27:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjohETuy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 73D6B803E9E3; Sat, 2 Dec 2023 12:26:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231405AbjLBU0I (ORCPT + 99 others); Sat, 2 Dec 2023 15:26:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231373AbjLBU0H (ORCPT ); Sat, 2 Dec 2023 15:26:07 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8EA4134 for ; Sat, 2 Dec 2023 12:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701548773; 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: in-reply-to:in-reply-to:references:references; bh=iZJKmBTJ+Rbbpx8uaCWzSm8u5JZ8h0qLae0DxmI9+YE=; b=WjohETuyYMZohx9UabLQRTp7bYywPzrBF8RvrjA3jXGDJf+elacBtY/gIwQ/XR+ptjyW9j SU229D01Ma89V2oVgFcg1XW/aUI5XWYMJELLxmc/lYQFVIwofvW6/l+jEjyiV3IXNYTBnh b/jXZlNMZsQEpVet18Iyu+kjHieTxq8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-609-OToki39UOHe87ZofGzoEuA-1; Sat, 02 Dec 2023 15:26:11 -0500 X-MC-Unique: OToki39UOHe87ZofGzoEuA-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-333405020f3so199323f8f.1 for ; Sat, 02 Dec 2023 12:26:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701548770; x=1702153570; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iZJKmBTJ+Rbbpx8uaCWzSm8u5JZ8h0qLae0DxmI9+YE=; b=LqsIMJaexyV5sCnTV9/xLZ/cPOU37xWwQlP7DAKJOk8Iy6RQxxWScEHal84DGpVMay kSCr2yxK6gQh0dGuey2zrGjytVUDwdLQRWXxtqAwI1JdRPKF7nLpEksd/T/wptMKf8Nk n83NwF6vQ8LzdKWiIs65ePr2R4UQUSAAEbD9IDyZCcyAkjUFQlLQCWGSTxpAkvSw36OW qAZztLaNGKdAcSs43sOO+4C8qpKzukhzmP/bT397I8frymhOK0sB+fKL5h6qB8+2oUj7 +DADbtDodFFN2yfsc5hIYkxUOXzkMOX+1rYTmlekvvL4yxh5o8lz+030skzrkBtgWOa6 bUCg== X-Gm-Message-State: AOJu0Yyy1USBM4Ye4FA1t02WQ4F2bKwpSdd3py4mefVfRZ1xrNgGfy5q uIdrhYd84je9A4RwNz3ImhdmGevhmV2Lyyb6WWpyxuSuV7c8eb6BtWoo/fVwa+CrjZhNWVOZhha GnA88EaPPp+KgFtzWED4IlPyL X-Received: by 2002:a5d:5485:0:b0:332:d11d:527c with SMTP id h5-20020a5d5485000000b00332d11d527cmr1940787wrv.8.1701548770111; Sat, 02 Dec 2023 12:26:10 -0800 (PST) X-Received: by 2002:a5d:5485:0:b0:332:d11d:527c with SMTP id h5-20020a5d5485000000b00332d11d527cmr1940784wrv.8.1701548769779; Sat, 02 Dec 2023 12:26:09 -0800 (PST) Received: from redhat.com ([2.55.57.48]) by smtp.gmail.com with ESMTPSA id e5-20020a5d4e85000000b0033333bee379sm4281524wru.107.2023.12.02.12.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 12:26:08 -0800 (PST) Date: Sat, 2 Dec 2023 15:26:05 -0500 From: "Michael S. Tsirkin" To: Dragos Tatulea Cc: Jason Wang , Eugenio Perez Martin , Si-Wei Liu , Saeed Mahameed , Leon Romanovsky , virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Gal Pressman , Parav Pandit , Xuan Zhuo Subject: Re: [PATCH vhost 0/7] vdpa/mlx5: Add support for resumable vqs Message-ID: <20231202152523-mutt-send-email-mst@kernel.org> References: <20231201104857.665737-1-dtatulea@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201104857.665737-1-dtatulea@nvidia.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 02 Dec 2023 12:26:58 -0800 (PST) On Fri, Dec 01, 2023 at 12:48:50PM +0200, Dragos Tatulea wrote: > Add support for resumable vqs in the driver. This is a firmware feature > that can be used for the following benefits: > - Full device .suspend/.resume. > - .set_map doesn't need to destroy and create new vqs anymore just to > update the map. When resumable vqs are supported it is enough to > suspend the vqs, set the new maps, and then resume the vqs. > > The first patch exposes the relevant bits in mlx5_ifc.h. That means it > needs to be applied to the mlx5-vhost tree [0] first. I didn't get this. Why does this need to go through that tree? Is there a dependency on some other commit from that tree? > Once applied > there, the change has to be pulled from mlx5-vhost into the vhost tree > and only then the remaining patches can be applied. Same flow as the vq > descriptor mappings patchset [1]. > > To be able to use resumable vqs properly, support for selectively modifying > vq parameters was needed. This is what the middle part of the series > consists of. > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git/log/?h=mlx5-vhost > [1] https://lore.kernel.org/virtualization/20231018171456.1624030-2-dtatulea@nvidia.com/ > > Dragos Tatulea (7): > vdpa/mlx5: Expose resumable vq capability > vdpa/mlx5: Split function into locked and unlocked variants > vdpa/mlx5: Allow modifying multiple vq fields in one modify command > vdpa/mlx5: Introduce per vq and device resume > vdpa/mlx5: Mark vq addrs for modification in hw vq > vdpa/mlx5: Mark vq state for modification in hw vq > vdpa/mlx5: Use vq suspend/resume during .set_map > > drivers/vdpa/mlx5/core/mr.c | 31 +++--- > drivers/vdpa/mlx5/net/mlx5_vnet.c | 172 +++++++++++++++++++++++++---- > include/linux/mlx5/mlx5_ifc.h | 3 +- > include/linux/mlx5/mlx5_ifc_vdpa.h | 4 + > 4 files changed, 174 insertions(+), 36 deletions(-) > > -- > 2.42.0