Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5308261rdb; Wed, 13 Dec 2023 05:20:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiKaQNg2doEu3OBdOU2kD/+XkFmfAiAlfkxsXrB8kARumVYyGN/tMXlAw2NK1z5W5Jh5+H X-Received: by 2002:a05:6e02:1a64:b0:35d:87d4:938c with SMTP id w4-20020a056e021a6400b0035d87d4938cmr12805937ilv.15.1702473622062; Wed, 13 Dec 2023 05:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702473622; cv=none; d=google.com; s=arc-20160816; b=uTq9max2XnXx3YQoEgRQHl+6IOqLalA00l7V/KuKKoJfwJi/kzzmkrIfvZzCJety0G /bHQ1Wi90+wfLt4sgnWrQ2JrVZw5gg0sqAGxnrFnobiCv1WrXtE8mpQjzSphXMh8FODh tj26/8ZHxn/b0YWII+oT18BsgxifZFzue6ljG47SCIaYZB9rtgkBnnj12i3XXE6rHnbp m8AQH2CzWp4gyJ8Jj7T+mXI/3EnOemxSQiVYmiBRmlbqxWMSloKHh12T4upXHpEGM3c8 BcFBp8kZBu/soIgjarTT5DTCdxqlhqfJvEGwzuiDjlqCVXKTXV8/pmn7TqoAY41F/Ylf m5ag== 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=pL0YocGPkvVGqiCu9lyP3UNNLSGUFRW6Fi4cZBlmelc=; fh=DSpo9ycXmQoRrYJSXTXa6J+yIrPBxvUgElMhXHGAZtU=; b=PEa0ux1jhJdkbggtJRzTK6bnQa//gjNffjsrUF0vqoDLKt4WOUEN0mhyrSMjzAlBIS Fo9t/lVXoeZgDJSKYPJlyRxc63SFN9AHp7hRreejo53XykAimRaNAPL3n3nlYrRuz2iw xnLnyZdn9yWMTsApBYOMnloeZkdbZWGOIjAmcNTg5X4an4BZ9tZ7K+SI1vg6aiMiLudP tkmV4mp0LQjA0jf44Deu3BEPfNIUgEZTVekSZxsvgcpSjrWyFfHPur/cuCWjJPxj+qXA JDnTIpHoOh7K0HD5kZ++4gY7vG+ZzACdh/YB5Cqt9nPm94hjUlcu6aAT2c3KftzL5lak PhUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="Ty6/fWwa"; 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 Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b15-20020a630c0f000000b005bcfc60520asi9613858pgl.586.2023.12.13.05.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:20:22 -0800 (PST) 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=@ziepe.ca header.s=google header.b="Ty6/fWwa"; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8CFC080BFEDA; Wed, 13 Dec 2023 05:20:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379184AbjLMNT7 (ORCPT + 99 others); Wed, 13 Dec 2023 08:19:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379161AbjLMNT6 (ORCPT ); Wed, 13 Dec 2023 08:19:58 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442EEDB for ; Wed, 13 Dec 2023 05:20:01 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-67efcd76510so2519666d6.0 for ; Wed, 13 Dec 2023 05:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1702473600; x=1703078400; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pL0YocGPkvVGqiCu9lyP3UNNLSGUFRW6Fi4cZBlmelc=; b=Ty6/fWwakmjqjEpHQqfxB2Mq73EW/81SImG5hqSm7b2MVN9dGFCTCR6N35x3yKTjs6 jF6k7nGuq1DMl3MJ7m6x7EyJpah0606ssKN07cUva+m+rm7b+NThYjSQvvJggsv/NoIf xMcdpEaRMZbyWPJcCnsiyI2eSH+id2ui+7ROPoQ8gvOy35ceIl9MbL807GadMJDWnOr5 zizOgEjwM9U8GnzPjCQMhu0ySduBGarEEDbzim00Z1jlZf5p/XfDE0IxNMqFb65BrfbA Hq2w6VrlMNaSCJb7wCxInbrO9cd4AKleGXExKgyg95unz8ymM5lC5gU5jTJ9M2tCBgFV KBdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702473600; x=1703078400; 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=pL0YocGPkvVGqiCu9lyP3UNNLSGUFRW6Fi4cZBlmelc=; b=lvnCENBQ423/ujAoGm+gQPPvn8TMIZqjAAml7gFnbZehM13+LEVlw6pSlXWJkBkxZI BEQpO5f5qBEFwQQ3zpfHHu/LJ6DQ75NG5Q0gAu6PyeyHn+NKwdB+70QHFdpLUI189QNs gzfxXNeVmD09sWe0LqBCMiNU36lcgeGwf695XYLI364qIW/xau1QFkhcEWtdAlVWfH8t w1k6F1CDMKdVTu0hKVZwEDKaO/O5Nmrfp9zTR7ZIYb+9kyknyUh3KxBKO8TmRYaQu6jm WjyyuLCO4gbthou0fbg4PvPn/6itLr+jQwAj5hQJ5T8dczCOwTpEATGyWNBA0SJJLTUM W2vw== X-Gm-Message-State: AOJu0YyiNej2i/Wt+twRvdRsbhD47BQ+S4HZI9AuMr4eFzv+VwnH1D0+ So0pLRmvJlX8KLx/CQ146VWWBA== X-Received: by 2002:a05:6214:9d3:b0:67e:f7f2:2ba5 with SMTP id dp19-20020a05621409d300b0067ef7f22ba5mr1223954qvb.85.1702473600381; Wed, 13 Dec 2023 05:20:00 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-134-23-187.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.134.23.187]) by smtp.gmail.com with ESMTPSA id ov11-20020a05620a628b00b0077d7e9a134bsm4481925qkn.129.2023.12.13.05.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:19:59 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rDP9a-00Dftf-PX; Wed, 13 Dec 2023 09:19:58 -0400 Date: Wed, 13 Dec 2023 09:19:58 -0400 From: Jason Gunthorpe To: "Tian, Kevin" Cc: Baolu Lu , Joel Granados , Joerg Roedel , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Nicolin Chen , "Liu, Yi L" , Jacob Pan , "iommu@lists.linux.dev" , "linux-kselftest@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 3/6] iommufd: Initializing and releasing IO page fault data Message-ID: <20231213131958.GF3013885@ziepe.ca> References: <20231026024930.382898-1-baolu.lu@linux.intel.com> <20231026024930.382898-4-baolu.lu@linux.intel.com> <20231212131008.k6s5xwjgolp6geps@localhost> <20231212141208.GA3013885@ziepe.ca> <276597d0-9947-44f1-a6b9-16d245394b22@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=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 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, 13 Dec 2023 05:20:19 -0800 (PST) On Wed, Dec 13, 2023 at 02:15:28AM +0000, Tian, Kevin wrote: > > From: Baolu Lu > > Sent: Wednesday, December 13, 2023 10:05 AM > > > > > >> 2. This is not intended to work only with idxd and uacce. right? > > > It should work everywhere, I suspect Intel Team didn't hit this > > > because they are testing IDXD SIOV? > > > > Yes. > > > > > Can you guys also test it as a PF > > > assignment? > > > > For PF assignment, probably the driver (vfio-pci) needs to enable iopf. > > > > We haven't merged anything for SIOV yet. > > so the base of this series should be PCI functions (PF or VF) and vfio-pci > has to be extended with whatever required to support iopf. Right. I suggest you target full idxd device assignment to a guest with working PRI/etc as a validation. Jason