Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp534132rwb; Thu, 6 Oct 2022 00:19:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mqkZacGFXvvqtIxcI6ixm1xGCQAcxC2VtQERsw12WXx8ZDp3WdBTMKSK6RpX/b8StQqRk X-Received: by 2002:a63:3dc9:0:b0:44d:5196:772d with SMTP id k192-20020a633dc9000000b0044d5196772dmr3252711pga.499.1665040770584; Thu, 06 Oct 2022 00:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665040770; cv=none; d=google.com; s=arc-20160816; b=ZFySvWEIc48rsWXRBzk1k8sWmW8q21fuNaXaLRtdOHk1aJ92KmmS9qrDVV8DWV8K3s jxtuSTM8X5+2Bff4EczdCFfAwxeU7s5G+wyT9mk4wiWKpqb2NJ+K4nPxcaTPQ6Sx+zdN doWatcK/ni/XdRVKIbSc8HCn+/wjHFCJIb7Rjn5eU6tgDux8lv7tKRgRu2fkY/xNGI93 JyrNPIP3fFWgqe7RPlvjsUuEUDrP5rZwd7DOQYh+5hKrsNks6Gy/2pQHtJA6SfGex29X xGQjzMbjP8lNlr5jSdgaipBGAHsNSOKT8AUoexz0RM1dI8I23+eNn1PhsQvPfkOzV3nR aP5w== 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=F4Hi4dJTyEkg0FruOU9TNRrOsyiLA+8nKk3nWX9VhZE=; b=dMqoCkxJLZl+en6QGdJkJZ+E+N9ee96PUuYw3EuI6SlfbYS0g6TQ0P5XeMNykxqL2Y a/jyjwABAnUXFh2PIElj2vr/MdTWXR+sAUGDFxqIcLV7jayRGX0RjMIGy+XU5h9QRJO8 tZ5VAlZoE/3a7muf3eMlYHcdz4OU8NTIT3MFoGJy6eh6j9n6wjnwTImHtMKux5onJW2e DxH89SUbqeVgvPi4F+4vHrKMbF/nxxhDLKXxR6Cnt9hOP2m5IhJlkp61i6qpfNgwKU4z 84+be+XSIYIvsqwCDJ07537gLM6sUeOoaX3XaIS1rYHvXpugJireNDSP4wDTz99q6HiW Cqqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZhV6kFBa; 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 h2-20020a056a00218200b00537fd74ca6bsi20347325pfi.54.2022.10.06.00.19.18; Thu, 06 Oct 2022 00:19:30 -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=ZhV6kFBa; 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 S230204AbiJFHPP (ORCPT + 99 others); Thu, 6 Oct 2022 03:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbiJFHPL (ORCPT ); Thu, 6 Oct 2022 03:15:11 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 979D4220FA for ; Thu, 6 Oct 2022 00:15:04 -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-out2.suse.de (Postfix) with ESMTPS id 1C3081F893; Thu, 6 Oct 2022 07:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1665040503; 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=F4Hi4dJTyEkg0FruOU9TNRrOsyiLA+8nKk3nWX9VhZE=; b=ZhV6kFBaLi5TbOhS0qhdtyfiCwBaPWE8FdyiFl7JZTsGqjUjwktFVVsm7MfLtRf6z1qMs7 gNEidOcTQv3IXG00aNrtlX3Sg3vluSmR3qCFdeoHIUikCbD1jRqdAicy+D879PW4QVHlzp /e4Nlyj5Uc7/GCpAOPtzW+zlk+tZBvc= 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 A893A1376E; Thu, 6 Oct 2022 07:15:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jMLaJnaAPmMpEwAAMHmgww (envelope-from ); Thu, 06 Oct 2022 07:15:02 +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 0/3] xen/virtio: support grant based virtio on x86 Date: Thu, 6 Oct 2022 09:14:57 +0200 Message-Id: <20221006071500.15689-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 | 81 +++++++++++++++++++++++++----------- include/xen/xen-ops.h | 1 + 4 files changed, 59 insertions(+), 27 deletions(-) -- 2.35.3