Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp509955iog; Wed, 15 Jun 2022 06:53:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNTNuCINaynCoSvCIUEnu+xz81KU+Vx6Ep/ccPn3uU8H7HUFAxbnBeIF2b4H/Kr1fnIML3 X-Received: by 2002:a05:6402:1941:b0:413:2555:53e3 with SMTP id f1-20020a056402194100b00413255553e3mr13178675edz.164.1655301187179; Wed, 15 Jun 2022 06:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655301187; cv=none; d=google.com; s=arc-20160816; b=VVH6I0sB1S/e3T9qbPM+ohnOB8zKcBiFl3W408Jr71igXguobsR2B5KsewyUzOsNAV QHYIgIQbYDPG1rzZ+2OLojuT6nZq+EunXb6fPyBYtfFt06OlScC3oDq0gOidkCh6ZEag TfSXGG45n6OHZEfpk8GiyHlnmGooKMxA3YtDxms0WZEaGy0s/aVCFa/eT5dkpe/MQOhL Z3sTEP/DHbhij6VsDT3GXicGttJLCboVssf93saFKRLEkKInpp3EVKYpxXVFAdgzYPDB VYNQqkNKXkwybl3fmQz7yymqe4/q6YjrX47DWsMALeaVTvx6LGdXLMK/faUBYM53q+v+ 2z3A== 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=9m0Yel3mKJUR0/9WLy9YG0v6kS0HnL5HFztBLkukfhU=; b=gJHSwzkl9CewNf21zftJnQgjdnBTRUNWfcDbrBw/n8U6HzVZDY5tTMdQj4QM8XBD32 AdkSK7hYlsKpZWgDskIEtJXMEJQeF/bE0KzLAwGO+NSFx71pLYwqoAd28+rNfwnvuDnD 0z1Hw8RGTBdZBeEZnRRulF85lHgcEREn1XDoWk1DT35HxKCuV3PGyfXZju0a/xB+q7MO KtwCyHLyx1LKKlZMFE+4e1VmSbAmaY+17mtPpjNqyiO/N6rbgZ+W2NhEV2T+6aAZkUOU w7FlZk3vcVne+ZxTwcvu9kS4k35bm33T47vVrMzjuLxq04T/jLRHJMrBaqhgZk8PPO4p Ihng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=l5pMXoOb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v28-20020a17090651dc00b0071882e322e2si9454428ejk.838.2022.06.15.06.52.30; Wed, 15 Jun 2022 06:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=l5pMXoOb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344449AbiFONnT (ORCPT + 99 others); Wed, 15 Jun 2022 09:43:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232224AbiFONnR (ORCPT ); Wed, 15 Jun 2022 09:43:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 835F72459D; Wed, 15 Jun 2022 06:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=9m0Yel3mKJUR0/9WLy9YG0v6kS0HnL5HFztBLkukfhU=; b=l5pMXoObGe9qCoN1JNmE4rMH8z CptrHdOdY0cHpAWepueUiYpA9ETdVP8UOjDY3K6o2t+eaxcm3lmVTzhQfxmAiRDh5s6GklPirU7qc 7ItQTcUBhxkYiBo455aSSoG68s+N4EKRxBFhfDWelNWPOE1w3kOg0eYS18ESpI2iQwLAJHWmsN4iF PdbDG+CjA5QulntLirJsSzM9fKo7qUXPNgDWagSbJtr5R4znSLP1Gra8zg/HL7JXLdR/QCQHPggMG 3j2UL7hEyIHJ8BuZ8rshW8HmAUOh7wJO1zCXDgpfqC3zV/6c6BS72/yDmGVaddn7Zq5ycCgaZ4DNy cpqCY3lA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1TIc-00ElmM-Nl; Wed, 15 Jun 2022 13:43:10 +0000 Date: Wed, 15 Jun 2022 06:43:10 -0700 From: Christoph Hellwig To: Juergen Gross Cc: Christoph Hellwig , xen-devel@lists.xenproject.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Stefano Stabellini , Oleksandr Tyshchenko Subject: Re: [PATCH] xen: don't require virtio with grants for non-PV guests Message-ID: References: <20220615084835.27113-1-jgross@suse.com> <9b9785f5-085b-0882-177f-d8418c366beb@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2022 at 02:53:54PM +0200, Juergen Gross wrote: > On 15.06.22 13:54, Christoph Hellwig wrote: > > On Wed, Jun 15, 2022 at 01:39:01PM +0200, Juergen Gross wrote: > > > No, it doesn't. I'm working on a qemu patch series enabling the qemu > > > based backends to support grants with virtio. The code is working fine > > > on x86, too (apart from the fact that the backends aren't ready yet). > > > > The code right now in mainline only ever sets the ops for DMA. So > > I can't see how you could make it work. > > Ah, you are right. I was using a guest with an older version of the series. > Sorry for the noise. No problem. But whatever you end up using to enable the grant DMA ops n x86 should also require the platform access feature. We already have that information so we can make use of it.