Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1523881imu; Wed, 16 Jan 2019 22:02:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN7itVJKE9Nk94OsQko/auk/zfAVNn6bdU1NeQS2nBlA/KfsZpyVILMWWFwzEhFJRB7UHQAs X-Received: by 2002:a63:680a:: with SMTP id d10mr12353088pgc.396.1547704947623; Wed, 16 Jan 2019 22:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547704947; cv=none; d=google.com; s=arc-20160816; b=qqYGszsKgSEVDUZiphbBCAznEIiedLvMVBNixqqg05pQbud3EUOb2CMgokcGaNuflX H54LmpeVHPQawCTcz/HhJpUw3MLSTAfYB/kDVJXt8VBVvDK88X82ZFCiNhUd92Yyl3M7 jR+/kDbmhsMStlgJA0h4vUX0yPFNBfJpZBtPpsL7/5soL77UwUghcf+Z0Ywoai2xpTcT UY6YjiCQIKVxfbgXr1cub2POnMJ0cGjLPuRJrCAvJ+88YQ01ux3eF42t+3Ry8rdksTrE uyiCCrZ/YouhDXDAZyPVEM0tQ/0cKLuJYp9s+5FjTT1p9Iqi1fcSa5R8ND/vv7DdHCHK IffA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=u2+hqamA8dooEL8DHKMyTelA+8Bo1cg3oPRBil2NlOQ=; b=UHLdN1Vzmdb+ijmilnIFQLjE4jErkFYETCh60j8sSlSSSC+RUu8Yumf7hM5XqZ9Go4 DwNrl8+7Lkecj7fqyHvQLbINIhp7NXY4F5ELD0sSTos2loR1aHG6q6nziLgaL6kjydD8 zDI7NuQPFKKEByMQ0w/zcbuh+ThqkmY349rK1U5KKH3Q5T214YwZIVD86TrmsHPbVqyd qbXdawBQcBF1l2BqdPTZkZE9ep77JNy+Ur2NNpeFO3p4lCKivzZcPb6fUD/e4FxHi0ru T/by7PxxxiaFgTlYKoRptV3vytASPBg4Cxj4ji1s+EVGOjJs4XU/rAL1d2Fy3ijmERnF CNgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si817684pfe.63.2019.01.16.22.02.10; Wed, 16 Jan 2019 22:02:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405808AbfAPQde (ORCPT + 99 others); Wed, 16 Jan 2019 11:33:34 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:42727 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405713AbfAPQdE (ORCPT ); Wed, 16 Jan 2019 11:33:04 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 6B70B18560; Wed, 16 Jan 2019 17:33:02 +0100 (CET) X-Axis-User: NO X-Axis-NonUser: YES X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id dKrc3Y9eH5HV; Wed, 16 Jan 2019 17:33:00 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 367D918545; Wed, 16 Jan 2019 17:32:58 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1B1DF1A07B; Wed, 16 Jan 2019 17:32:58 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0F7901A058; Wed, 16 Jan 2019 17:32:58 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Wed, 16 Jan 2019 17:32:58 +0100 (CET) Received: from lnxartpec.se.axis.com (lnxartpec.se.axis.com [10.88.4.9]) by thoth.se.axis.com (Postfix) with ESMTP id 0344F2FF3; Wed, 16 Jan 2019 17:32:58 +0100 (CET) Received: by lnxartpec.se.axis.com (Postfix, from userid 10564) id EF73180B47; Wed, 16 Jan 2019 17:32:57 +0100 (CET) From: Vincent Whitchurch To: sudeep.dutt@intel.com, ashutosh.dixit@intel.com, gregkh@linuxfoundation.org, arnd@arndb.de Cc: linux-kernel@vger.kernel.org, Vincent Whitchurch Subject: [PATCH 0/8] Virtio-over-PCIe on non-MIC Date: Wed, 16 Jan 2019 17:32:45 +0100 Message-Id: <20190116163253.23780-1-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Virtio-over-PCIe framework living under drivers/misc/mic/vop implements a generic framework to use virtio between two Linux systems, given shared memory and a couple of interrupts. It does not actually require the Intel MIC hardware, x86-64, or even PCIe for that matter. This patch series makes it buildable on more systems and adds a loopback driver to test it without special hardware. Note that I don't have access to Intel MIC hardware so some testing of the patchset (especially the patch "vop: Use consistent DMA") on that platform would be appreciated, to ensure that the series does not break anything there. Vincent Whitchurch (8): vop: Use %z for size_t vop: Cast pointers to uintptr_t vop: Add definition of readq/writeq if missing vop: Allow building on more systems vop: vringh: Do not crash if no DMA channel vop: Fix handling of >32 feature bits vop: Use consistent DMA vop: Add loopback drivers/misc/mic/Kconfig | 14 +- drivers/misc/mic/bus/vop_bus.h | 2 + drivers/misc/mic/host/mic_boot.c | 46 ++++ drivers/misc/mic/vop/Makefile | 2 + drivers/misc/mic/vop/vop_loopback.c | 390 ++++++++++++++++++++++++++++ drivers/misc/mic/vop/vop_main.c | 36 +-- drivers/misc/mic/vop/vop_vringh.c | 151 ++++++----- 7 files changed, 549 insertions(+), 92 deletions(-) create mode 100644 drivers/misc/mic/vop/vop_loopback.c -- 2.20.0