From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4515C433EF for ; Sat, 16 Apr 2022 06:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uHus//hmEP/5MRzS8xX7B0y4RRKxLeDlRZ+prVY3aHg=; b=MPJsZWM5Dnil8K oIc/L5K2RMa0+K3iTqATq3uYGl02WSKUWsUoZW/Ivex0c1uiVBpRa48x4JNE/s81I10vzas0fijOk CalRPmOppP/bexA/MGyylPENKkzuqXEpbmqQVG7LqfeeoJ6Kty4n5NEOianF5dOXaf2a0zrfz21Zv bSw5rY266aFFB0UJCL8J5Fwuau6HE+euI3rnsJaXLGVWRQie6CiRGT7Au18ORydpgI7MRnnhhnhn1 VsC0l0FvZDdf5gGqrkEhuGCpSWBEYmfa8ml0TbqgGnawnEkuvM8mPMgTNv8iN4iYnCiIFbm1UC/K0 OWn3Mj6guf3HzCV+Ymzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfbaH-00CK6B-E6; Sat, 16 Apr 2022 06:07:01 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfbaG-00CK5x-5f; Sat, 16 Apr 2022 06:07:00 +0000 Date: Fri, 15 Apr 2022 23:07:00 -0700 From: Christoph Hellwig To: Stefano Stabellini Cc: Oleksandr Tyshchenko , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Oleksandr Tyshchenko , Boris Ostrovsky , Juergen Gross , Julien Grall Subject: Re: [RFC PATCH 6/6] arm/xen: Assign xen-virtio DMA ops for virtio devices in Xen guests Message-ID: References: <1649963973-22879-1-git-send-email-olekstysh@gmail.com> <1649963973-22879-7-git-send-email-olekstysh@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 15, 2022 at 03:02:45PM -0700, Stefano Stabellini wrote: > This makes sense overall. Considering that the swiotlb-xen case and the > virtio case are mutually exclusive, I would write it like this: Curious question: Why can't the same grant scheme also be used for non-virtio devices? I really hate having virtio hooks in the arch dma code. Why can't Xen just say in DT/ACPI that grants can be used for a given device? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel