Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp228606rdh; Wed, 25 Oct 2023 23:49:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqBty11gsgP8nl3pXKoHT0keNE69gE569E88u9rWvobyyxD+7pipK+7+mItuq64BekA9yZ X-Received: by 2002:a25:50d1:0:b0:d85:e0d4:1c31 with SMTP id e200-20020a2550d1000000b00d85e0d41c31mr2857157ybb.7.1698302990022; Wed, 25 Oct 2023 23:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698302989; cv=none; d=google.com; s=arc-20160816; b=VQTMUk5UER8m0FqNd4XSupsUha8AHw8o/lKrCzrtMobnYir3hQqH882poEBx5bC16H LAuWHeE3avBwpkoBPBq80e6Ozkbq8ifktcGBW0qFGq4N0hMMy5IpJ9k+Sl6pwhxHz4a1 i6da+DwoJ4+g+ZuAybobza9GX87aAheZdOt3s/1U7j2sGlggdRt/0z5nMxbYmwIgLtWM zSfB+/YrIRjeDyqas3W1gVSkMTqXiV1QX5d+e2OGYdPSOeyJh1l4we8578m3xVtKULJx YHLUkaU1iT37oubcufd5mFeQx60ZGmKCNl2g5dO1K7DSbnbeWixpp2ROEG04G2HAfzy6 U+PQ== 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=cZhX4iyxXFC0MCsQGeir9FIncGn784C5EIdLY3Kqf/o=; fh=CkjnoQCUN24bAd/S4K2oKhTclwCNWWIJ/6o+EIaMOwc=; b=BIhArpQOOgxkMOiKIh62T7px0l+gNq9Qvhcn/S/CIVTW/3d7/iKoM13e2Sds2UVZU6 ++iOPXKwuAz03/XfBcr5K/s31Jav8nPtsWpj9qUUTK3wqb+UBu6bEpVM28cX8BOxkfzI sz8ct3tpPDjsf6OzgyWeYpwvsXOn4t0+WxmDmDUXKphBCMLYQEzpFGjLSeZTol9kcLyj ApIPtXwJHQIASgKvyFAXPZzzwIj1Jo72M+sWhK8iM1KpzCEdbNYsqMIsB2ZXAZyxT3F7 KTX2gL96NK0fXYIJQ5NzyeR+vhkgFq4y/DbH6Kq0zBEKqX1de2d04e9nuAKJ3/4+Tpsk vBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="MmnL/f+K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c184-20020a254ec1000000b00d8686ec1e24si13337481ybb.576.2023.10.25.23.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 23:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="MmnL/f+K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 18C2780D6AEE; Wed, 25 Oct 2023 23:49:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbjJZGtj (ORCPT + 99 others); Thu, 26 Oct 2023 02:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjJZGti (ORCPT ); Thu, 26 Oct 2023 02:49:38 -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 2449D191 for ; Wed, 25 Oct 2023 23:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698302930; 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=cZhX4iyxXFC0MCsQGeir9FIncGn784C5EIdLY3Kqf/o=; b=MmnL/f+KIEB1Vhp1nP7+1tMpEQ3uVYb/sWPiTfMnEZHY8TgdcWnSVAq8EfrW2Ul/j64l/M Jeu0CiUqUuX0AS8JeaaXO2G+r4LUkj8N0aFcCkQsdLKO/cs0ENzfa+6fQA1YmO4/jWuXCg fiXcjpjnWkbBLSD4+GyU+JU6fjr8B8g= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-487-9WzObKsvMtSz7edm6A-IsA-1; Thu, 26 Oct 2023 02:48:46 -0400 X-MC-Unique: 9WzObKsvMtSz7edm6A-IsA-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-5079fd9754cso519562e87.0 for ; Wed, 25 Oct 2023 23:48:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698302925; x=1698907725; 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=cZhX4iyxXFC0MCsQGeir9FIncGn784C5EIdLY3Kqf/o=; b=G4OelhA9P2I+2f2ggqVtedw3GDN0uusIoK/CC1fPyRNXnM55PBp9I8Ivg0CbyIuRQZ nnGVySTQ5zuirINSslX20+aJWKbeWNYqM21r5zxJeq32yTkj0gzprilkZkt1qqA7V93r tevMalM8dRUpBfMrxiGFz17QlwYAYdg2odCHsJdKfC4MMqshlVeUVOf9T7JCddV9hOf0 mknaVAVLLUvQpXqiRIG/QeAcxhGVcQwLHxToJ7JRPlbcLrmszeBJnSu2SgyhoXper+BU H8+6ez3NlJbg0TH5dAcqF/hTrqedPaEJCMpZCkh7pADGg7aUvDhCVotrJsp5GBFolDei PZww== X-Gm-Message-State: AOJu0YzCPiSy7OLSRnypnLjYqIEQmaOqsjZM31Z4oZGqdWIubgNsd2gm 2GJbGypdOeH5LhQCjlmDxp0hXjOtG0atBtS5YlDA2xWH2RGK8IsaQvonwJAg8jNKqHWtGtjAie+ yPjFbhtaH/DholqwpVcCCERjVfDGITnEpjFWkgk5h X-Received: by 2002:a19:550f:0:b0:507:bbbe:5287 with SMTP id n15-20020a19550f000000b00507bbbe5287mr12237676lfe.51.1698302925288; Wed, 25 Oct 2023 23:48:45 -0700 (PDT) X-Received: by 2002:a19:550f:0:b0:507:bbbe:5287 with SMTP id n15-20020a19550f000000b00507bbbe5287mr12237663lfe.51.1698302924964; Wed, 25 Oct 2023 23:48:44 -0700 (PDT) MIME-Version: 1.0 References: <20230923170540.1447301-1-lulu@redhat.com> <20231026024147-mutt-send-email-mst@kernel.org> In-Reply-To: <20231026024147-mutt-send-email-mst@kernel.org> From: Cindy Lu Date: Thu, 26 Oct 2023 14:48:07 +0800 Message-ID: Subject: Re: [RFC 0/7] vdpa: Add support for iommufd To: "Michael S. Tsirkin" Cc: jasowang@redhat.com, yi.l.liu@intel.com, jgg@nvidia.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 23:49:47 -0700 (PDT) On Thu, Oct 26, 2023 at 2:42=E2=80=AFPM Michael S. Tsirkin = wrote: > > On Sun, Sep 24, 2023 at 01:05:33AM +0800, Cindy Lu wrote: > > Hi All > > Really apologize for the delay, this is the draft RFC for > > iommufd support for vdpa, This code provides the basic function > > for iommufd support > > > > The code was tested and passed in device vdpa_sim_net > > The qemu code is > > https://gitlab.com/lulu6/gitlabqemutmp/-/tree/iommufdRFC > > The kernel code is > > https://gitlab.com/lulu6/vhost/-/tree/iommufdRFC > > > > ToDo > > 1. this code is out of date and needs to clean and rebase on the latest= code > > 2. this code has some workaround, I Skip the check for > > iommu_group and CACHE_COHERENCY, also some misc issues like need to add > > mutex for iommfd operations > > 3. only test in emulated device, other modes not tested yet > > > > After addressed these problems I will send out a new version for RFC. I= will > > provide the code in 3 weeks > > What's the status here? > Hi Michael The code is finished, but I found some bug after adding the support for ASI= D, will post the new version after this bug is fixed, should be next week Thanks Cindy > -- > MST >