Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp286539pxb; Wed, 8 Sep 2021 00:51:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxniFWyd9k/pKbeFwaWmoUVxRfNTDuO97c2KBVb4/3SGkeoMGQNSmBu/7ukB49V+8mzTRW8 X-Received: by 2002:aa7:cd79:: with SMTP id ca25mr2484022edb.389.1631087482619; Wed, 08 Sep 2021 00:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631087482; cv=none; d=google.com; s=arc-20160816; b=jwmwVSn5nW4d5Ea0bvwfxiDDoer9CltzlqygFZ9JhkRN1fBupP56YXWnK73kzZey1g CP1znSsJ0vgVdx+ElGriM9L/kVnQq0YlvB7qCVsi5EmJY6+0WNXijysQ7oaJBSmYU6wO Oja1pbQ7Go6XkRZqj5upeYsGmdBBeZLtw75Mev6y9UU1ePuh2mUmh7B42uEtydeDx8Rn I1Sl/JZAU/pQZZreyo86EmdunyEj0Mix7KSJwZt9EooIg/SgmJIf67tIPGWZWriNvzHC y+JgE90FVXXhoKPKgibzqaKvLuQd9w00+Ti5DZzSby0d/8T0AKmuX6ocX2PbNA5TVYDc +PeQ== 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=MnjsixqmosBihT6Q0qVYXXqBZ2K/JeOxHPpv883b1xQ=; b=zK64Mnj4QtD8IHs1sm88iRF1hM3veIaz4PbVjNgBdoGqBXlg6YJQExByrVrm6ijJNp rlomlWziwA7d+8tzveNfVBof48RIR8q1qbXkUWEa+Qgb+rUSnQAqeGDdxuFf15bEvcR8 a2nazj2NLWVVVmv8Yp0uxnUcglMzodvsphKn/zEBWuDptyXcxzD147oSmGJjdavMJZ/0 xNzmsbnXw+9t4i+I7xdGYqv+ouNofJHS3e1rMA+WToPra0Mk5+0pMT3CVoP6tQuhRfIN nkidBoyMqLxQOQxoW1Arl49nNwAwFdknarVIpdF4pseetQEI4yzTGbeCwHq6LIaWfjnO 7N0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XbM8Xg3P; 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 he40si1475785ejc.705.2021.09.08.00.50.58; Wed, 08 Sep 2021 00:51:22 -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=@infradead.org header.s=casper.20170209 header.b=XbM8Xg3P; 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 S1348636AbhIHHR1 (ORCPT + 99 others); Wed, 8 Sep 2021 03:17:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348916AbhIHHRU (ORCPT ); Wed, 8 Sep 2021 03:17:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B0AC06175F for ; Wed, 8 Sep 2021 00:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MnjsixqmosBihT6Q0qVYXXqBZ2K/JeOxHPpv883b1xQ=; b=XbM8Xg3PjSFGTYmv3zW07WfyaY yWEdMq1eEqx0RRQqf2r7e6pYKpvEx0oG4KVrQaoCagb/MmI7o0acywnXwpXSPJTo/1MkSPkPOEFJy mKVPyz7XoUQE44YQmLjxnlC/1P/RLwrxrspgdaqdkFsWsJpB2cRQfFSd4r+Bz7k7bOYyGJ9XCEdOU VV701Kva713ECwwrgTRZcHhYdgohcpF+ORONW/M/BNUXYF7JoqGFO0tJVrTc+1JqjXQEOCwt3RRqO IbwKTqnS0QnoY/SeWesV1xBSinYJz2jyaANLtuvExQupl4FPr9q6HdJd1s3vCXjHopyF3JjAZ7vVe 7+fwQCwQ==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNrml-008b2V-QY; Wed, 08 Sep 2021 07:14:58 +0000 Date: Wed, 8 Sep 2021 08:14:19 +0100 From: Christoph Hellwig To: Jan Beulich Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , lkml , "xen-devel@lists.xenproject.org" , the arch/x86 maintainers , Thomas Gleixner , Ingo Molnar , Borislav Petkov Subject: Re: [PATCH 12/12] swiotlb-xen: this is PV-only on x86 Message-ID: References: <588b3e6d-2682-160c-468e-44ca4867a570@suse.com> <004feaef-f3bb-e4bb-fb10-f205a9f69f28@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004feaef-f3bb-e4bb-fb10-f205a9f69f28@suse.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 07, 2021 at 02:13:21PM +0200, Jan Beulich wrote: > The code is unreachable for HVM or PVH, and it also makes little sense > in auto-translated environments. On Arm, with > xen_{create,destroy}_contiguous_region() both being stubs, I have a hard > time seeing what good the Xen specific variant does - the generic one > ought to be fine for all purposes there. Still Arm code explicitly > references symbols here, so the code will continue to be included there. Can the Xen/arm folks look into that? Getting ARM out of using swiotlb-xen would be a huge step forward cleaning up some DMA APIs. > > Instead of making PCI_XEN's "select" conditional, simply drop it - > SWIOTLB_XEN will be available unconditionally in the PV case anyway, and > is - as explained above - dead code in non-PV environments. > > This in turn allows dropping the stubs for > xen_{create,destroy}_contiguous_region(), the former of which was broken > anyway - it failed to set the DMA handle output. Looks good: Reviewed-by: Christoph Hellwig