Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4229855pxj; Wed, 12 May 2021 00:29:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ7/sRfBmlugs37vkvdPt2uFR0c9Ck2x7s1gIfmr041RTGKGtxcGSM1AQ9xMrJ9VYeuPi/ X-Received: by 2002:a17:907:3f06:: with SMTP id hq6mr36274884ejc.46.1620804561531; Wed, 12 May 2021 00:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620804561; cv=none; d=google.com; s=arc-20160816; b=FAb/H4raxZOusyqGY3P1yeLg0kO2EL/dXwo39BmAuIoAF5pPKq9tVWKYif60MBSdsQ LvrcT9Kp3Cz6yVA/TP6Vkfs29raCl3hZekIdO3L0mSq6gp+0etQfw1P6/OJNzAzv486W 7V3Cz636X58EHzCCgJN4PpbLRz6MvarNYbi/aOiGooyzaqS9AD6rOtaKrCrO3m8SiOtn ZQDy4Ag9vxoNufDYFsSOxLgAXa8qPKE0MBVtcF3ggRf+IMyOkkSFCMqij4klGbqKvhme 0bW3ns0+pHOcaIfNs7CQfB5UxGGP8Gr/lrsVll6zPWu6Li9sAupIn2thPUiSIc10iVxK fEew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=dhdZya0sNhM88FaqkJFof5Dy6wgDlCg0L2f8u+NUisk=; b=izglffCK808CG5rItdYfqmazLNOpmVhu297P6ov/1mDow8j5Nq7vjpeABvAD5iL7QN 44ivVEj3vTegYy6E93C3qmyk0FajTx5F/l+uCViOsQyhM/Bkz66dMCcrviCloctE4C9O SDC2vY84g0xEE8pqC9v1dyZLrmGkFgxKIFwMfYcZsjy2zb4Rd5n/6dE9yGZfcHMYTtBf QE6S22DAz9cLzj4W/xdgF0BfMhfRPzW2GrBaRdHEi2TmzMCl90C3aJlryGP4p0DT2GaI sDve1tpFJKBIzw4pOXUrRHWEQFQwjI7rMHNlWIqepLbTuPHbSNQaU/jQpPgAdNOgdV5W Du3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do4si1827957ejc.301.2021.05.12.00.28.57; Wed, 12 May 2021 00:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbhELH14 (ORCPT + 99 others); Wed, 12 May 2021 03:27:56 -0400 Received: from verein.lst.de ([213.95.11.211]:40119 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbhELH14 (ORCPT ); Wed, 12 May 2021 03:27:56 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 90F4A67373; Wed, 12 May 2021 09:26:45 +0200 (CEST) Date: Wed, 12 May 2021 09:26:45 +0200 From: Christoph Hellwig To: Stefano Stabellini Cc: xen-devel@lists.xenproject.org, hch@lst.de, linux-kernel@vger.kernel.org, Stefano Stabellini , boris.ostrovsky@oracle.com, jgross@suse.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] xen/arm64: do not set SWIOTLB_NO_FORCE when swiotlb is required Message-ID: <20210512072645.GA22396@lst.de> References: <20210511174142.12742-1-sstabellini@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210511174142.12742-1-sstabellini@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -int xen_swiotlb_detect(void) > -{ > - if (!xen_domain()) > - return 0; > - if (xen_feature(XENFEAT_direct_mapped)) > - return 1; > - /* legacy case */ > - if (!xen_feature(XENFEAT_not_direct_mapped) && xen_initial_domain()) > - return 1; > - return 0; > -} I think this move should be a separate prep patch.