Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6290937rwl; Wed, 22 Mar 2023 08:46:01 -0700 (PDT) X-Google-Smtp-Source: AK7set+qn1W/AU9yrg7SyWgK/YxzAFDaeGFXnY0hDfMAT0RD1WjjMt5CmS3nsvIqniZZ2SyIxS9+ X-Received: by 2002:a17:902:d50a:b0:1a1:b8ff:5552 with SMTP id b10-20020a170902d50a00b001a1b8ff5552mr4242192plg.6.1679499961097; Wed, 22 Mar 2023 08:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679499961; cv=none; d=google.com; s=arc-20160816; b=Nq3XjTRpeVHImIpOaERVKmTqvVbkHt3PQw22VGZbYVfbW5GSotmBX5JDD/M6qX6sbP VDDazCmjw7fswvAc0e/Q6jPSGGk0xZ9xBkXfWs8zVJgpfD2D2y32yEj6+Fd5zl1T2rSR 5aEu02myxSHwsgtBInCC3MuniEf+rzISASjgwVf+B093Dj/Q5vdxFeSPNEqVS+YXy0F1 OptZ2l2ruNc98gC4kiVtoOHaZWLK6wi6gS29ghOqZHheLf++V9HG3+Cwy48M+V19WUBS bWOCWQotiYnKBaNMzd3Z215mlJzrnYiTDyVl4wOkOLnGVxoem4RGNf8iTq0i/gdYqQLL ey7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:reply-to:user-agent :mime-version:date:message-id:dkim-signature; bh=GZIHbC1jKIv3NYKUx6Nn7yCA5ucJgii75H8IU1+fvP0=; b=ulcrNfhpkZXPsrQ566mhXW45R2vxL0nQuPXCqwt/6vemoYU+S1jB+TB/R3UORaQyKD dYLmiFI0nIpsTO9QxMFb7IkGAUY8V3O0o5uX8dpFswESrcB4mzlc3afMkClF5YJ2pKC8 4Jnhv6G1a828Q/3yD334gbINWe1gtroeT//+cAJC52Cs4m2gimv8juvP2c+up2ZuVsi7 emXOXF7aCZ7MIRASYUdfn45bV+/9B/WQ6oTmhp6ExXxK8XXijjri+uDLXJgDWgAAWFPJ GTG7CteGdmirU6nSZZmwNNYaghhGZfquif6Fkb46e0s8KKNyX0S/S4CG1Epg4zz+nDzn NU4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Wc//+DkR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a170902e80800b001a05d52469dsi14605562plg.361.2023.03.22.08.45.49; Wed, 22 Mar 2023 08:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Wc//+DkR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbjCVPpH (ORCPT + 99 others); Wed, 22 Mar 2023 11:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbjCVPpG (ORCPT ); Wed, 22 Mar 2023 11:45:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98B7B2311F for ; Wed, 22 Mar 2023 08:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679499863; h=from:from:reply-to: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=GZIHbC1jKIv3NYKUx6Nn7yCA5ucJgii75H8IU1+fvP0=; b=Wc//+DkRrjOkdqQHz4AtLasC/kzRffDKwvTrGt5YOnaLm0q+iB1PSXRQnEmXh8wq4iXYay tuUUq4mwpu7ei7GEtN4ID5W+JnDS6bKhi7UUFLyY97CIwM0kx2sI8KZw5HCpsGuKHzJy81 MrEsOiba7Yx7vf0Uoy8FXc0lPD5B9vI= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-326-m4BGkadQM0up_8I7rFIDEQ-1; Wed, 22 Mar 2023 11:44:22 -0400 X-MC-Unique: m4BGkadQM0up_8I7rFIDEQ-1 Received: by mail-qt1-f199.google.com with SMTP id l17-20020ac84cd1000000b003bfbae42753so11024879qtv.12 for ; Wed, 22 Mar 2023 08:44:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679499862; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GZIHbC1jKIv3NYKUx6Nn7yCA5ucJgii75H8IU1+fvP0=; b=QH8KiSh/CO+CrCwLVp+M4/7ejzrPnbPp8bC0Rexu8arq6fAkikShDs29ii2bB2lmrn dqwMfSGGCmPnqz6G4mSfQz3b5kmYNjNBhsYO/vHj0UgRENILn/ze2TSzCHeSe3/5LhCc vMsdQ5em1mVf4qZKQ8zgacRCNu7uyW6b++OhW4kVVH57wciVxF6ILZolfbCYEXH2TU2+ dcDbacCGXRF8FW76yKG9kET54WQXXdh+B4+ku/+4UJJKmy/zxamHlzYn19mGe7dxfWdr 5Iq4b4qXOcXNbPk3SkU+xm2IKHdsv0TvnLCkvS3tlYpdThWovmvo+t5tu7+A0lNPWxzJ ZVfw== X-Gm-Message-State: AO0yUKUn5PJsNKmn+0jxePjHfKjsMRf43wBqeOTXkfFE6EN+60ZWDWZw vMS46MiMqwnIIuGq/MZc/w1XrN/C/oNQPphN3F/AJ7Xb4goAoY80rPIlZRG70f0ewLMZA4wwBvt BJ5skIQfBUMQfRaQuyL0IkjKG X-Received: by 2002:ac8:5bcc:0:b0:3e1:65f5:4a85 with SMTP id b12-20020ac85bcc000000b003e165f54a85mr6941526qtb.58.1679499861964; Wed, 22 Mar 2023 08:44:21 -0700 (PDT) X-Received: by 2002:ac8:5bcc:0:b0:3e1:65f5:4a85 with SMTP id b12-20020ac85bcc000000b003e165f54a85mr6941492qtb.58.1679499861710; Wed, 22 Mar 2023 08:44:21 -0700 (PDT) Received: from ?IPV6:2a01:e0a:59e:9d80:527b:9dff:feef:3874? ([2a01:e0a:59e:9d80:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id t21-20020ac87615000000b003e0945575dasm6282416qtq.1.2023.03.22.08.44.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Mar 2023 08:44:21 -0700 (PDT) Message-ID: <799e9f32-8102-649c-bb79-c8582d070f96@redhat.com> Date: Wed, 22 Mar 2023 16:44:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Reply-To: eric.auger@redhat.com Subject: Re: [PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain helper Content-Language: en-US To: Shameerali Kolothum Thodi , Nicolin Chen , "lpieralisi@kernel.org" Cc: Jason Gunthorpe , "robin.murphy@arm.com" , "will@kernel.org" , "kevin.tian@intel.com" , "baolu.lu@linux.intel.com" , "joro@8bytes.org" , "jean-philippe@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" References: <9b1077601cace998533129327f5e7ad946752d29.1678348754.git.nicolinc@nvidia.com> <7726b990f7c4486d9f3597979ebc4e7e@huawei.com> From: Eric Auger In-Reply-To: <7726b990f7c4486d9f3597979ebc4e7e@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 3/16/23 20:56, Shameerali Kolothum Thodi wrote: > >> -----Original Message----- >> From: Nicolin Chen [mailto:nicolinc@nvidia.com] >> Sent: 16 March 2023 19:51 >> To: Shameerali Kolothum Thodi ; >> Eric Auger >> Cc: Jason Gunthorpe ; robin.murphy@arm.com; >> will@kernel.org; kevin.tian@intel.com; baolu.lu@linux.intel.com; >> joro@8bytes.org; jean-philippe@linaro.org; >> linux-arm-kernel@lists.infradead.org; iommu@lists.linux.dev; >> linux-kernel@vger.kernel.org >> Subject: Re: [PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain >> helper >> >> Hi Shameer/Eric, >> >> On Fri, Mar 10, 2023 at 04:30:03PM +0000, Shameerali Kolothum Thodi >> wrote: >>> External email: Use caution opening links or attachments >>> >>> >>>> -----Original Message----- >>>> From: Jason Gunthorpe [mailto:jgg@nvidia.com] >>>> Sent: 10 March 2023 16:21 >>>> To: Shameerali Kolothum Thodi >> >>>> Cc: Eric Auger ; Nicolin Chen >>>> ; robin.murphy@arm.com; will@kernel.org; >>>> kevin.tian@intel.com; baolu.lu@linux.intel.com; joro@8bytes.org; >>>> jean-philippe@linaro.org; linux-arm-kernel@lists.infradead.org; >>>> iommu@lists.linux.dev; linux-kernel@vger.kernel.org >>>> Subject: Re: [PATCH v1 01/14] iommu: Add >> iommu_get_unmanaged_domain >>>> helper >>>> >>>> On Fri, Mar 10, 2023 at 04:07:38PM +0000, Shameerali Kolothum Thodi >>>> wrote: >> https://lore.kernel.org/linux-arm-kernel/20220420164836.1181-5-shame >>>> er >>>>>>> ali.kolothum.thodi@huawei.com/ >>>>>> So "boot configration" is more like "don't change the RIDs"? Ie >>>>>> don't >>>> enable >>>>>> SRIOV? >>>>> Yes. Don't think it will work with SR-IOV if you can't guarantee >>>>> the RMR >>>> specified >>>>> SID. >>>> So I think we are probably good them because vSR-IOV is already not >>>> supported by qemu, so it impossible for a VM to change the PCI >>>> configuration in a way that would alter the RID to SID mapping? >>>> >>> Provided we fix the issue mentioned by Eric. This was discussed here >>> previously, >>> >>> https://lore.kernel.org/linux-arm-kernel/bb3688c7-8f42-039e-e22f-65290 >>> 78da97d@redhat.com/ >> Have we fixed the issue? I saw Lorenzo replying in that thread: >> https://lore.kernel.org/linux-arm-kernel/Yi8nV8H4Jjlpadmk@lpieralisi/ >> >> Or, what's remaining here regarding this topic? Is it a blocker? > [+Lorenzo] I am not aware of any change in the situation. Thanks Eric > > Not sure it is fixed yet. Also, assuming we take RMR path, do we plan to support > DT base Guests at all? > > Thanks, > Shameer >