Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1217433rdb; Wed, 20 Sep 2023 03:07:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHx0vdPQTmuB2EWZdgWR0Qt+mDY6vp92Pxje47OKPPl3hL/XE1FotFHgBdztoZa/JdIhu6I X-Received: by 2002:a5b:3c4:0:b0:d81:78cb:9267 with SMTP id t4-20020a5b03c4000000b00d8178cb9267mr1956358ybp.62.1695204459543; Wed, 20 Sep 2023 03:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695204459; cv=none; d=google.com; s=arc-20160816; b=XX2AyLbLzOfDr4Rqi5JXV/yswHDWmOsl66tnWs2mSWos+aQVSkmeWkaQ6Gw2xZXkFo j6M6P0dSCuuIiiCfFpxFOsOMvtqjnp6pgb+CXkqxSuS0wzHxya+BiWP02pYoTym+aYIw 9NCPxPl/GkiJ5L2PyvP5V0I3rzIDHSNmFiFowEm+sLMgKyM5fxbBjdZSd3vhTW+fDfAl oX9yQlhJjEjOAoExrKiHxfWXhYLiDIiMQc2Doa4QeOz0V1wjdyajQz/BG5LqSKNBoWrs j0q+wuOMKrqFlUVDg4crSu/CXMwygqwzGObZdfLlmfyuJeH56zlLjSFoKG5lMi1E4x1b fZ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=99BVBvPZ3yZ06BgSazMx7Jl4RmSGfTzaJowoaUdSNng=; fh=8NrRzcYje9/u+oIvWdnHqw4XjyKKB5QmTSr/PHOINoo=; b=XvusgBZDe/JDLwMWQVGQk1ZnspBBHsa5pMK1l+d4eYUVcnBfP3twKRvDEIYmZADJEb qzgpZR+EeKLW+WH7BSVwoGnypz2sLoPb/16i4vXm6oQCQG6pjcumynuuVGU9xtBdPIBL i3YVZ6qRBmxhuEAHFFl8oGzp0+1zIV4BJnDuYCcaPlvi4Pzo+fQHGLLP19vclIq6qOEU NrvdVkbxko+f2jELN1+Rv7LbMDbA+8vYnr03glyqM38gp230D9lYKM8bPv1gXKN2Bp1z s8RM0mPwcVWxBp7Xn3Qp94gaXRkabyuamf8GTGJnaKddLbasSDobUEMQyQ6HgYZejwMt ABdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fW5q/tPi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x18-20020a63b212000000b0057795cb4f16si11523001pge.684.2023.09.20.03.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 03:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fW5q/tPi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 33D3580B3B40; Tue, 19 Sep 2023 18:16:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231799AbjITBPv (ORCPT + 99 others); Tue, 19 Sep 2023 21:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjITBPu (ORCPT ); Tue, 19 Sep 2023 21:15:50 -0400 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 E5E0BBD for ; Tue, 19 Sep 2023 18:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695172495; 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=99BVBvPZ3yZ06BgSazMx7Jl4RmSGfTzaJowoaUdSNng=; b=fW5q/tPisdAnb8N30fxrCSi8jFCgF6nEqBQ85ia2RevSVLLAWXmSdTeSwczGSsJN1fL5Bn jiui+xHlj/XvgPc2f1+xLhM4z7rzCDBs74LSHX6ntA08YkMKsLa+WlXX2W1Y0tPCxWrmqL 1MfV5ke5C6OasRm9tEhdXTTMYYWuasQ= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-693-JtHHZnEKMNOGr_RswbgLqA-1; Tue, 19 Sep 2023 21:14:53 -0400 X-MC-Unique: JtHHZnEKMNOGr_RswbgLqA-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2bcc2fd542bso77938761fa.3 for ; Tue, 19 Sep 2023 18:14:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695172492; x=1695777292; 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=99BVBvPZ3yZ06BgSazMx7Jl4RmSGfTzaJowoaUdSNng=; b=S87kbw6vzLYfgXaBxdF6Yj3prx067ZraTp6J93eVS/SjgugtHM0FX8JirafsBp4AIO QJX1KAl32JOo1dWsxe8MAPAXrRexmpY2lEH4omSoMZ/zJZPSh+OrEle5XAT03XhU7DrG CAt0wDgX1MOByONV3LXlvES11MIiJ/eLUNXZfphBt95VZwJs+JYj/Iod2muq3vtQdcSz DXCIVXfceV0O0r+dRBWl92ZmkRNxzw8kCwx+uU6FpDVBNOkBseLHgrtCHsrUGNxKXxkH DfW4IzsC7dYIZkQ6g3oy1FHFfjwGYGemSQa7R5VcMLiykfnKo9qKRFyxCDhRdwpw01fa 0s2g== X-Gm-Message-State: AOJu0YyJ142cJvTEoEA9XJPQFE8Gr5j3mOfZMV4a11ZWdXwbc0APbpaa xjGxnxV++IgDusGcrc+i+6zJsHoR06IJz022Z5AMQqiOq8impv0WnU0TDCkxWBeSEvoHoUJdsbo sIZDMF5AiA2y+eEvVVSpX1jkxIIYAw4BD+Lqx+VaK X-Received: by 2002:a19:2d15:0:b0:500:acf1:b432 with SMTP id k21-20020a192d15000000b00500acf1b432mr902222lfj.63.1695172492109; Tue, 19 Sep 2023 18:14:52 -0700 (PDT) X-Received: by 2002:a19:2d15:0:b0:500:acf1:b432 with SMTP id k21-20020a192d15000000b00500acf1b432mr902204lfj.63.1695172491630; Tue, 19 Sep 2023 18:14:51 -0700 (PDT) MIME-Version: 1.0 References: <20230912130132.561193-1-dtatulea@nvidia.com> In-Reply-To: From: Lei Yang Date: Wed, 20 Sep 2023 09:14:14 +0800 Message-ID: Subject: Re: [PATCH 00/16] vdpa: Add support for vq descriptor mappings To: Si-Wei Liu , Eugenio Perez Martin , Dragos Tatulea Cc: Jason Wang , "Michael S . Tsirkin" , Saeed Mahameed , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Parav Pandit , Xuan Zhuo , kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 18:16:17 -0700 (PDT) QE tested this series with regression testing on real nic, there are no new issues. Tested-by: Lei Yang On Fri, Sep 15, 2023 at 2:34=E2=80=AFPM Si-Wei Liu = wrote: > > > > On 9/13/2023 9:08 AM, Eugenio Perez Martin wrote: > > On Wed, Sep 13, 2023 at 3:03=E2=80=AFAM Lei Yang w= rote: > >> Hi Dragos, Eugenio and Si-Wei > >> > >> My name is Lei Yang, a software Quality Engineer from Red Hat. And > >> always paying attention to improving the live migration downtime > >> issues because there are others QE asked about this problem when I > >> share live migration status recently. Therefore I would like to test > >> it in my environment. Before the testing I want to know if there is an > >> expectation of downtime range based on this series of patches? In > >> addition, QE also can help do a regression test based on this series > >> of patches if there is a requirement. > >> > > Hi Lei, > > > > Thanks for offering the testing bandwidth! > > > > I think we can only do regression tests here, as the userland part is > > still not sent to qemu. > Right. Regression for now, even QEMU has it, to exercise the relevant > feature it would need a supporting firmware that is not yet available > for now. Just stay tuned. > > thanks for your patience, > -Siwei > > > >> Regards and thanks > >> Lei > >> > >> > >> On Tue, Sep 12, 2023 at 9:04=E2=80=AFPM Dragos Tatulea wrote: > >>> This patch series adds support for vq descriptor table mappings which > >>> are used to improve vdpa live migration downtime. The improvement com= es > >>> from using smaller mappings which take less time to create and destro= y > >>> in hw. > >>> > >>> The first part adds the vdpa core changes from Si-Wei [0]. > >>> > >>> The second part adds support in mlx5_vdpa: > >>> - Refactor the mr code to be able to cleanly add descriptor mappings. > >>> - Add hardware descriptor mr support. > >>> - Properly update iotlb for cvq during ASID switch. > >>> > >>> [0] https://lore.kernel.org/virtualization/1694248959-13369-1-git-sen= d-email-si-wei.liu@oracle.com > >>> > >>> Dragos Tatulea (13): > >>> vdpa/mlx5: Create helper function for dma mappings > >>> vdpa/mlx5: Decouple cvq iotlb handling from hw mapping code > >>> vdpa/mlx5: Take cvq iotlb lock during refresh > >>> vdpa/mlx5: Collapse "dvq" mr add/delete functions > >>> vdpa/mlx5: Rename mr destroy functions > >>> vdpa/mlx5: Allow creation/deletion of any given mr struct > >>> vdpa/mlx5: Move mr mutex out of mr struct > >>> vdpa/mlx5: Improve mr update flow > >>> vdpa/mlx5: Introduce mr for vq descriptor > >>> vdpa/mlx5: Enable hw support for vq descriptor mapping > >>> vdpa/mlx5: Make iotlb helper functions more generic > >>> vdpa/mlx5: Update cvq iotlb mapping on ASID change > >>> Cover letter: vdpa/mlx5: Add support for vq descriptor mappings > >>> > >>> Si-Wei Liu (3): > >>> vdpa: introduce dedicated descriptor group for virtqueue > >>> vhost-vdpa: introduce descriptor group backend feature > >>> vhost-vdpa: uAPI to get dedicated descriptor group id > >>> > >>> drivers/vdpa/mlx5/core/mlx5_vdpa.h | 31 +++-- > >>> drivers/vdpa/mlx5/core/mr.c | 191 ++++++++++++++++----------= --- > >>> drivers/vdpa/mlx5/core/resources.c | 6 +- > >>> drivers/vdpa/mlx5/net/mlx5_vnet.c | 100 ++++++++++----- > >>> drivers/vhost/vdpa.c | 27 ++++ > >>> include/linux/mlx5/mlx5_ifc.h | 8 +- > >>> include/linux/mlx5/mlx5_ifc_vdpa.h | 7 +- > >>> include/linux/vdpa.h | 11 ++ > >>> include/uapi/linux/vhost.h | 8 ++ > >>> include/uapi/linux/vhost_types.h | 5 + > >>> 10 files changed, 264 insertions(+), 130 deletions(-) > >>> > >>> -- > >>> 2.41.0 > >>> >