Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp445499rdb; Tue, 5 Dec 2023 09:33:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbQx3QUBSyeIKviRWTyKdpOAhrrGPI73EqgnC9ei5RDhCkF/Excpdh/7ICOkh2yTVcblYl X-Received: by 2002:a05:6a20:1444:b0:18b:ca68:4e9a with SMTP id a4-20020a056a20144400b0018bca684e9amr2271664pzi.28.1701797621488; Tue, 05 Dec 2023 09:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701797621; cv=none; d=google.com; s=arc-20160816; b=nHqTN7gJ/asOOtUXHLSS3uDeWnY3thnULxgXAXhBZ6lZJRXaxqza9HxQQ14GWZK+R9 ewQ6QnIS8bPtFzcJypv1in2h9OZkz9Jh98HRiBW5W4hlP+Kv1h0ERqyDK64WRRk06Tlx IBHkGRNPkvO0H3xZkbC/4aC307RRgCLBfn+Fm9P+wpEDuWXGEaMsGr3ZIIKT4x/kOVmt nuKtGCuY2f+RbVFCekqdLNiqcqGKfQ4yPkb+/F+xavsRSTG250SapORy0GK3CpL0ppDD JBJPhcPHBjfxVqjD0PUcwNbGbCydmLUB+LJL8Kx2DjjQyJce4w/Z3p9QZBcNsD74Kooo cTfA== 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; bh=9LLCzs0nx8Ilv1hkJSGirKy2HjpNqXfw8bnbTlsVrgI=; fh=+LuCcWRqhPQZProGK7ifgVBzlEPxI0vSfsAgIXPTXgM=; b=pEa6E01j9oYzW7AEPOcrlpwqZwacsl7o0eHRiRbEl1NhQ1slBXVaaNdZ4ZLxHgXrwi OSsAsdy+r4CjZq1wXH0okZmM/dj09AxI8FJUIKSU7U7LSpEvurNgSzJOObBKKJVghRLX ZxzkB0BAaaa1ZtGr+RNB3/xlagpmH7MOj19Aus5hnP4opcgxl3RDCbk2GC08qhnPIZYE lhCym9qgnhvMKdFbDH/HuJvghQ7hVEzEHszFHUMyNe3oE9eUEfTvruzhZdUGlOfeAdz0 Zmq0LBu6n3nPj3B1Y7DWPZ++wnSkCYUXlbBu4z8RkQ6zs5JxF5kZCTxH57bSGfKDnncM zi4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id s15-20020a65644f000000b005b9483bf765si5756402pgv.25.2023.12.05.09.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:33:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EB7D080AFE8B; Tue, 5 Dec 2023 09:33:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346140AbjLERdD (ORCPT + 99 others); Tue, 5 Dec 2023 12:33:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346120AbjLERdC (ORCPT ); Tue, 5 Dec 2023 12:33:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B54481B9 for ; Tue, 5 Dec 2023 09:33:08 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AC45C433C8; Tue, 5 Dec 2023 17:33:03 +0000 (UTC) Date: Tue, 5 Dec 2023 17:33:01 +0000 From: Catalin Marinas To: Marc Zyngier Cc: Jason Gunthorpe , 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, lpieralisi@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> <20231205164318.GG2692119@nvidia.com> <86bkb4bn2v.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86bkb4bn2v.wl-maz@kernel.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:33:20 -0800 (PST) On Tue, Dec 05, 2023 at 05:01:28PM +0000, Marc Zyngier wrote: > On Tue, 05 Dec 2023 16:43:18 +0000, > Jason Gunthorpe wrote: > > On Tue, Dec 05, 2023 at 04:22:33PM +0000, Catalin Marinas wrote: > > > That's an argument to restrict this feature to PCIe. It's really about > > > fewer arguments on the behaviour of other devices. Marc did raise > > > another issue with the GIC VCPU interface (does this even have a vma in > > > the host VMM?). That's a class of devices where the mapping is > > > context-switched, so the TLBI+DSB rules don't help. > > There is no vma. The CPU interface is entirely under control of KVM. > Userspace only provides the IPA for the mapping. That's good to know. We can solve the GIC issue by limiting the relaxation to those mappings that have a user vma. Ideally we should do this for vfio only but we don't have an easy way to convey this to KVM. -- Catalin