Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4802352pxj; Wed, 12 May 2021 13:39:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTh4sr5YOoVmsXzQYrP4psqAc4ruGJEgCrw52xcKohxOshUIajpEuFRuf3CcS2tqeoEx18 X-Received: by 2002:a17:906:3b84:: with SMTP id u4mr39780635ejf.131.1620851895885; Wed, 12 May 2021 13:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620851895; cv=none; d=google.com; s=arc-20160816; b=yn8vgg5w9CCftc/QbB6Kgmuxh6e1lx+dAcAYD5vM7szQ+r/82K4+x3FmcKSCl/XU49 lU7tfsNyMzkbZLTaPI4cBzxdmZxl/46ZglQddRDnEf7HwLNYLYzukAu9JifiEbJcwbGr 9Tj5aOYuBbG8h8levSdBoD2B5sbWiyF2WGANKAluhvud6jdEbbNcfdqVYSEocmRi3zft A3Aggakj+6oWdmC7K7da80o/BXFfX7/2O/Mgic51E3x5oNYmDxTbizpzfPhILTFDQgzD blUroA+ryfAjIJN7Zp8NExQpdHLTvWEObtNOz0TldWagPoof5VjX60Lh3lzOyTWVNkS9 VuzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=qyTSPRzYq9Qy5rAl3c9kgORG4ARoEwSAqWbsBIqvzLQ=; b=PN9bqJsXgy1XiBR2YTmJbBu91xQ8HUFJQ1t+ou2/8VUWryomSjzGQ4oWYWTXuXHb65 WxonODu8QZ+YC31LfINjahMd06UlZF0O6rnc3iixvrN0dMPox0VhDZYBdVTbkm3dVyGA eqKa6ue1VM4FyUPFnsndUJGRfFidP9zgVCWCpwGSrVaSbnLUgnIqPQKDGWiZwe29QumT 7pFquO2spa+mDO9LX5IIDSRJ8j/Fru1eDo4ol9XcZknX/ps+ltAWncIIU+abZn4nLbh+ qbpgegWaAmoGaNtVlABDlYfCPltsktt2M0h2iTPtWiCrJhP6GlifLNZmYJFEb3uASuti rW/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WEB3NSzI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si674499ejh.183.2021.05.12.13.36.39; Wed, 12 May 2021 13:38:15 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WEB3NSzI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386389AbhELUU6 (ORCPT + 99 others); Wed, 12 May 2021 16:20:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:50362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384103AbhELT4w (ORCPT ); Wed, 12 May 2021 15:56:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB53C613F7; Wed, 12 May 2021 19:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620849342; bh=262+PIF/9A36VsCFqlkhq//BsN04UF0+U0v6HG31+Wo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=WEB3NSzIGZ1hY7qqH6Z9As3Y5wCiVwfxNKRRS/2CC0NbdHbt5Qgc02KzG15EMIxHx GRryYhagx0GqTVe35P4CWN/aFNbhJOcLv5Yxgs2TB4g/MMgelXLUXiw+5EwqeavSN6 C1MpfPrTlXnYi4xDQtTxE+kO+JPXyDOjavVr6Sg8yNi5a8lr3RJSaOFMbgZLr1uxD2 G3ZV5addJoy64YD+onajVSGgt0Xgg+EFe5W32nhaFq/UBHEuA3pK5v5HIMfnLvPbVR /a6LBUXd2mPFZKaLUDxuzPCWaR4pV3xtWBWh3N7EiyErgBxFKvaliGdztPXF4OazjN eMMkMG3PUlnMw== Date: Wed, 12 May 2021 12:55:40 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Christoph Hellwig cc: Stefano Stabellini , xen-devel@lists.xenproject.org, 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 In-Reply-To: <20210512072645.GA22396@lst.de> Message-ID: References: <20210511174142.12742-1-sstabellini@kernel.org> <20210512072645.GA22396@lst.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 May 2021, Christoph Hellwig wrote: > > -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. Sure, I can do that