From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 9040C4F89F for ; Wed, 10 Jan 2024 22:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eCO2jIRI" Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0E2E54046B for ; Wed, 10 Jan 2024 22:25:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0E2E54046B Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eCO2jIRI X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Re-Ah12AYIAH for ; Wed, 10 Jan 2024 22:25:27 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id A0A7B40143 for ; Wed, 10 Jan 2024 22:25:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A0A7B40143 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704925525; 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=LbvHor4sr0xWUt5flKWQxxo/1Tbqrvytr+t1oavL/pw=; b=eCO2jIRIut2UlVaoH93BzJg5itwQbnNx4ZvLhZ4JCIVk2pQjaOy9CV1TnapkYAg1mnZxIX kfXhxokPUz/svHSIBheEwFy0naDBrRGL/MrtbMGtDyIFsBmkHNCoX4GGQUQtngD8mGBJpP 6Zg1p2uIoDFVFXaX0cUnUeLrS2zHL6I= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-3P8CkIJhNkqfoUdkpsJGeA-1; Wed, 10 Jan 2024 17:25:23 -0500 X-MC-Unique: 3P8CkIJhNkqfoUdkpsJGeA-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-3371263463fso2592741f8f.0 for ; Wed, 10 Jan 2024 14:25:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704925522; x=1705530322; 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=LbvHor4sr0xWUt5flKWQxxo/1Tbqrvytr+t1oavL/pw=; b=aU3+LZmUUkadY3V0sfeY0bbI1gYHW6tj0x9pGkTpVzmkt8MzS3bX9s33pPDyM9us5R fE6B0fyXyWI6Oo10ZCv6TsF+QG9GqippPqjxC98wsds85TunK2/nuTHT/0k6CiG4L1ja TK87/LdK16twOsWGIVLCjLQVBAA6/1gmzPHf4w2LfmFG21XXwEP6Th4ArwJsxlKHZDgY mkRyr6qdvAm9B+YhZCtXBcjB905/btps9G8r5mfnJ4sqF9yuHd/dXP/qaFN19twVmZyM 0iYQmoEgDC9DemWAYWXYxz4am72+UMEAOa+a1D5MPkqYG8K57c27nYFPlJYXo3jarARt LvSA== X-Gm-Message-State: AOJu0Yy/UDMP5mT4OYzTVc3HR5rgc2U6NlysGpHjkoh6TUyHnwGb2C02 hqmAKffUAKMKKiOpU4z3Q4PYlwZMNXcE683YIj9Gnz0uGDWYjAT95CVKcVTCQpAZH6P0OfViy3t wBG0e1qIyDcSPgKidVoxxieLOk7c1a1NiU1r551eQMhANiejNgQ== X-Received: by 2002:a05:6000:18d1:b0:336:6c01:4a92 with SMTP id w17-20020a05600018d100b003366c014a92mr75182wrq.1.1704925522582; Wed, 10 Jan 2024 14:25:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4bG5HIN2EOROQjKy4ly5IS5OGPCjThp6MgjKpTRQ9pvJ7CGd8hXcoyJdZJ1RPWE28zwrdpA== X-Received: by 2002:a05:6000:18d1:b0:336:6c01:4a92 with SMTP id w17-20020a05600018d100b003366c014a92mr75179wrq.1.1704925522280; Wed, 10 Jan 2024 14:25:22 -0800 (PST) Received: from redhat.com ([2a06:c701:73ef:4100:2cf6:9475:f85:181e]) by smtp.gmail.com with ESMTPSA id b9-20020a5d4b89000000b003366aad3564sm5807985wrt.30.2024.01.10.14.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 14:25:21 -0800 (PST) Date: Wed, 10 Jan 2024 17:25:19 -0500 From: "Michael S. Tsirkin" To: Cindy Lu 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 Subject: Re: [RFC v1 0/8] vhost-vdpa: add support for iommufd Message-ID: <20240110172459-mutt-send-email-mst@kernel.org> References: <20231103171641.1703146-1-lulu@redhat.com> Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20231103171641.1703146-1-lulu@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Nov 04, 2023 at 01:16:33AM +0800, Cindy Lu wrote: > > Hi All > This code provides the iommufd support for vdpa device > This code fixes the bugs from the last version and also add the asid support. rebase on kernel > v6,6-rc3 > Test passed in the physical device (vp_vdpa), but there are still some problems in the emulated device (vdpa_sim_net), > I will continue working on it > > The kernel code is > https://gitlab.com/lulu6/vhost/-/tree/iommufdRFC_v1 > > Signed-off-by: Cindy Lu Was this abandoned? > > Cindy Lu (8): > vhost/iommufd: Add the functions support iommufd > Kconfig: Add the new file vhost/iommufd > vhost: Add 3 new uapi to support iommufd > vdpa: Add new vdpa_config_ops to support iommufd > vdpa_sim :Add support for iommufd > vdpa: change the map/unmap process to support iommufd > vp_vdpa::Add support for iommufd > iommu: expose the function iommu_device_use_default_domain > > drivers/iommu/iommu.c | 2 + > drivers/vdpa/vdpa_sim/vdpa_sim.c | 8 ++ > drivers/vdpa/virtio_pci/vp_vdpa.c | 4 + > drivers/vhost/Kconfig | 1 + > drivers/vhost/Makefile | 1 + > drivers/vhost/iommufd.c | 178 +++++++++++++++++++++++++ > drivers/vhost/vdpa.c | 210 +++++++++++++++++++++++++++++- > drivers/vhost/vhost.h | 21 +++ > include/linux/vdpa.h | 38 +++++- > include/uapi/linux/vhost.h | 66 ++++++++++ > 10 files changed, 525 insertions(+), 4 deletions(-) > create mode 100644 drivers/vhost/iommufd.c > > -- > 2.34.3