Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp557132rwb; Fri, 7 Oct 2022 00:27:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mLVFqoCrQnaqtQ09IOq2c5LQH1IO2tvinvfVZWQHR3PdeWzemAiHyp5WpK8PJX5G2hkGu X-Received: by 2002:a17:902:da8b:b0:178:3980:4597 with SMTP id j11-20020a170902da8b00b0017839804597mr3523248plx.113.1665127660106; Fri, 07 Oct 2022 00:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665127660; cv=none; d=google.com; s=arc-20160816; b=w+XZqDv8sCpKvl8wTozvGtUY8KfrpTT2NsSdZf+XpK5pjhb7cGboaR6WSG4OZ4fvHF Q1+lgyEje2UJR5oTlnKQW+Ql82rACD3lDqmrNdBTidqwkAbWOeqbd4bKwF75h9IG8Itb NoBkn4T6b023yTKtTIxI0KzVsCTWQMaWxOJjvUN42+eVtoKkEb3aLaq2lPQiIpWBvrYa CLEmqo/MELH1hOo1OZlfkBx36EaRUrev5yF08b077GFW7LIs+HmKmvAtOZWf0TcFDKq2 1+OFxOsFZuqBMpOVIZTgb4zKVEgFV84nRL4FVyzpNe31hSxIkSMpBpMpMo37kJih1Lyn TMGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fjnPZrMU8HQlRaEL1NbINikk37iX63+Ug6moJ46OZmk=; b=cf4lLMExDb1QWWVxdhg2MSk67IYwGkAlrlonjoU6IoWhiZA8XqlVBzRPIf6SRduP2M 3sgSuZvkzL3xaDsTb/0KjZPfmhlI31Gj70ARwP0BTnTkdC2CwNuLc6c8ItqF6DMtOyPv ATiNTgyxFnydIyJKazjEQKg03HtdO9F/DAezC+zrJMAiG4iJ/bSqLupPtdKIdzGDQKbT H3FDY39dj2mzUGb5KDR90nk1lGbs/VX1A3Rzujbr3wobJkHhMZdfZdUhsOQxPG9JAfbg g/SoyLEcWk2ByXSpbkWieyTnvdzrjdAcZiQf9ZwvECS2Jl00cHuRGQOMDoFBew7L2njV hW6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=hYTSewCY; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cd17-20020a056a00421100b0055fe250267dsi1390344pfb.124.2022.10.07.00.27.28; Fri, 07 Oct 2022 00:27:40 -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=@suse.com header.s=susede1 header.b=hYTSewCY; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbiJGGlu (ORCPT + 99 others); Fri, 7 Oct 2022 02:41:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiJGGlt (ORCPT ); Fri, 7 Oct 2022 02:41:49 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F6BBC8970 for ; Thu, 6 Oct 2022 23:41:47 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1DB8C218FC; Fri, 7 Oct 2022 06:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1665124906; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fjnPZrMU8HQlRaEL1NbINikk37iX63+Ug6moJ46OZmk=; b=hYTSewCYiI+AB2wh7D9K8770bh/oZfm6y1fNcNhyF18xnoHpjxv9vyOEKHo/JgmjOEUkSr ejlzKkTwdN78gU9FbLy5mRYt+ERVN2a8+E9cpQeoTYHfRD2iIUWanZ7JciAtrBVkEUYRfZ t7xafpoAia1OgwgajW+TLytKRgpk9x0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A588B13A3D; Fri, 7 Oct 2022 06:41:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cy/WJinKP2PjSQAAMHmgww (envelope-from ); Fri, 07 Oct 2022 06:41:45 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , xen-devel@lists.xenproject.org, Boris Ostrovsky , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH v2 0/3] xen/virtio: support grant based virtio on x86 Date: Fri, 7 Oct 2022 08:41:40 +0200 Message-Id: <20221007064143.10049-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_PASS 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 Add basic support for virtio with grants on x86 by defaulting the backend to be in dom0 in the case the guest kernel was built with CONFIG_XEN_VIRTIO_FORCE_GRANT. Juergen Gross (3): xen/virtio: restructure xen grant dma setup xen/virtio: use dom0 as default backend for CONFIG_XEN_VIRTIO_FORCE_GRANT xen/virtio: enable grant based virtio on x86 arch/x86/xen/enlighten_hvm.c | 2 +- arch/x86/xen/enlighten_pv.c | 2 +- drivers/xen/grant-dma-ops.c | 83 +++++++++++++++++++++++++----------- include/xen/xen-ops.h | 6 +++ 4 files changed, 65 insertions(+), 28 deletions(-) -- 2.35.3