Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp326882rdb; Tue, 5 Dec 2023 06:37:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0JkBwBQqVJvhslkDDBq2C+huEJKgvCgswHnuAqCsQZJzk05nSIrYbqoa9r0SN4euCnFhu X-Received: by 2002:a05:6a00:23d3:b0:6ce:56da:62d4 with SMTP id g19-20020a056a0023d300b006ce56da62d4mr1252846pfc.49.1701787067569; Tue, 05 Dec 2023 06:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701787067; cv=none; d=google.com; s=arc-20160816; b=ZkljcuxBdUd/PD/Bb9gYbnjxQIXZo/TdmjAy+jOttYP4/u7Ez2avtJoD4G2kYM4yFL OQ4tNML0Vm/g6O/WlrR/ka1tOiM1f6TUEebPhGo6oOCOJXwjb/jm6JYp+fNGB75ITiV9 s6LZ6VccrSqu2js8e+02rFURl5gHQzqxWXHKRZwV8EDamtfcbawYzzM7JRHCAdlhTS6h ZzUGZoldvnAlte9TLntMF9nzVxCe9mgaWhvA/6OeDEr3ZPsLF6KFOGzWORq+xS1l5on0 I4Va+5IWho3F/E7fSR+uys5gRUIW8MvBRDJFbgBIspd+pEJuxmjkg1LQQh8kd4Q+ZPeh KNRw== 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=o52EnfU2Fu77ilFhuwvdeDFm3OkoUIpnVBo+WNzLaPg=; fh=j0jmCrz+VjVMJNkG22Wz7eR9l+eK0/ddq4C/OAD9jYQ=; b=g2EJbUTKf5yep6boxowgTZA+imJ1OUvM4nHpuRhi10P6XcSwLCv0ybjh9lV2uHwllF 8nAX3wX2jb3Sm5mbZ3q/1H141lwl0nalUOZfqCqpvGc7K+ieFe1ktY9osp4sQLbB6701 L0qCOHfm2Ec0xd6g0YYJ30LBu1bGXqwBNqVOBZfXTvcwap5GJQr6wWtVStnfGlPO7cQF nkbwcEY/hZjKc6Pe+QtpRICuLDwn24s8Gwep4wwLhzfqMwux9Ff+8Q437C4BXlISBPKa Qy1SCkV8xaz4kRLL9oG0WrZm4O3XGyQ3X7p1RpyKN8Ctmw4HLoS0ctGLHuEGZjVmmrmZ /0Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UGoYessH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b10-20020a630c0a000000b005b7d9aace9dsi9553270pgl.46.2023.12.05.06.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UGoYessH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E6C5180A5F26; Tue, 5 Dec 2023 06:37:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345988AbjLEOhR (ORCPT + 99 others); Tue, 5 Dec 2023 09:37:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345881AbjLEOhQ (ORCPT ); Tue, 5 Dec 2023 09:37:16 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D010B129 for ; Tue, 5 Dec 2023 06:37:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24A7EC433C8; Tue, 5 Dec 2023 14:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701787042; bh=G92HElO7wu4W9h4mKuFM3rR7BN9XZu1dQCy7HpY/B+s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UGoYessHIwz2m7jHfu2pPKOnbp9BDf8Bh8Z/Z+tn0XDdCxB5WTkX9KuivDGbOLx+O bDqEuv7A39oidE257H8+FHh6T7HyMTiDfVCU6qXUuj2rFZ5dnFTBnB836wlgmSw+Qf LzhaToDjYucI2vhVp8LEhLa/ukuT/nm1kD7lDvRSscgskjqdK2MlGc4/LhMb7Zdoql acy4h9yeo1EdoXdy2xaQ86/uMaOEn+UmBtWWJbg+w/moLmPC5NrQDdu8PvU/Ilu58t RBgbTXVzu9uKRMxFPzvXgPUGciFA5D2IWUBAp3bWKKAF+2artu7Pqqu5Kx/l8X9uqo UGLVoFzH+77sQ== Date: Tue, 5 Dec 2023 15:37:13 +0100 From: Lorenzo Pieralisi To: Jason Gunthorpe Cc: Catalin Marinas , Marc Zyngier , ankita@nvidia.com, Shameerali Kolothum Thodi , oliver.upton@linux.dev, suzuki.poulose@arm.com, yuzenghui@huawei.com, will@kernel.org, ardb@kernel.org, akpm@linux-foundation.org, gshan@redhat.com, aniketa@nvidia.com, cjia@nvidia.com, kwankhede@nvidia.com, targupta@nvidia.com, vsethi@nvidia.com, acurrid@nvidia.com, apopple@nvidia.com, jhubbard@nvidia.com, danw@nvidia.com, mochs@nvidia.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/1] KVM: arm64: allow the VM to select DEVICE_* and NORMAL_NC for IO memory Message-ID: References: <20231205033015.10044-1-ankita@nvidia.com> <86fs0hatt3.wl-maz@kernel.org> <20231205130517.GD2692119@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205130517.GD2692119@nvidia.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 06:37:45 -0800 (PST) On Tue, Dec 05, 2023 at 09:05:17AM -0400, Jason Gunthorpe wrote: > On Tue, Dec 05, 2023 at 11:40:47AM +0000, Catalin Marinas wrote: > > > - Will had unanswered questions in another part of the thread: > > > > > > https://lore.kernel.org/all/20231013092954.GB13524@willie-the-truck/ > > > > > > Can someone please help concluding it? > > > > Is this about reclaiming the device? I think we concluded that we can't > > generalise this beyond PCIe, though not sure there was any formal > > statement to that thread. The other point Will had was around stating > > in the commit message why we only relax this to Normal NC. I haven't > > checked the commit message yet, it needs careful reading ;). > > Not quite, we said reclaiming is VFIO's problem and if VFIO can't > reliably reclaim a device it shouldn't create it in the first place. I think that as far as device reclaiming was concerned the question posed was related to memory attributes of transactions for guest mappings and the related grouping/ordering with device reset MMIO transactions - it was not (or wasn't only) about error containment. Thanks, Lorenzo