From patchwork Mon Feb 8 23:32:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kasireddy, Vivek" X-Patchwork-Id: 12076905 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3672C433DB for ; Tue, 9 Feb 2021 00:28:36 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CDA664E6E for ; Tue, 9 Feb 2021 00:28:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CDA664E6E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9GtO-0000VK-I2 for qemu-devel@archiver.kernel.org; Mon, 08 Feb 2021 19:28:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9GBP-0001DW-JW for qemu-devel@nongnu.org; Mon, 08 Feb 2021 18:43:07 -0500 Received: from mga06.intel.com ([134.134.136.31]:53603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9GBM-0002m2-RI for qemu-devel@nongnu.org; Mon, 08 Feb 2021 18:43:07 -0500 IronPort-SDR: zKaQV/sfAk5cdXpaNAVJObmsWs8et+oQnNtA19xJCxmcXlRA3QZZfRmKMVrUUErrrIBhK33NRY Lr3kMRRhaWrw== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="243298079" X-IronPort-AV: E=Sophos;i="5.81,163,1610438400"; d="scan'208";a="243298079" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 15:42:59 -0800 IronPort-SDR: wc05qIErhe95OoW1OjerjNVKYpbVc1a9IvlRci1vqpYsJ00phFpTG6QP3h03KUBH2QkSNZ+OJP PsnazRwvYQKQ== X-IronPort-AV: E=Sophos;i="5.81,163,1610438400"; d="scan'208";a="585858967" Received: from vkasired-desk2.fm.intel.com ([10.105.128.127]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 15:42:59 -0800 From: Vivek Kasireddy To: qemu-devel@nongnu.org Subject: [RFC 0/1] vhost-vdmabuf: Add virtio based Dmabuf device Date: Mon, 8 Feb 2021 15:32:24 -0800 Message-Id: <20210208233225.2084469-1-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Received-SPF: pass client-ip=134.134.136.31; envelope-from=vivek.kasireddy@intel.com; helo=mga06.intel.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vivek Kasireddy , kraxel@redhat.com, dongwon.kim@intel.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The Virtio based Dmabuf (Vdmabuf) device provides a way to transfer a dmabuf created in the Guest to the Host. This patch is still a WIP but is still posted to the ML to provide additional details and context for the discussion associated with the vhost-vdmabuf and virtio-vdmabuf kernel drivers here: https://lists.linuxfoundation.org/pipermail/virtualization/2021-February/052233.html Vivek Kasireddy (1): vhost-vdmabuf: Add virtio based Dmabuf device configure | 8 + hw/virtio/meson.build | 1 + hw/virtio/vhost-backend.c | 10 + hw/virtio/vhost-vdmabuf.c | 526 ++++++++++++++++++++ include/hw/pci/pci.h | 1 + include/hw/virtio/vhost-backend.h | 2 + include/hw/virtio/vhost-vdmabuf.h | 76 +++ include/standard-headers/linux/virtio_ids.h | 1 + include/ui/console.h | 1 + linux-headers/linux/vhost.h | 3 + meson.build | 1 + ui/console.c | 7 + 12 files changed, 637 insertions(+) create mode 100644 hw/virtio/vhost-vdmabuf.c create mode 100644 include/hw/virtio/vhost-vdmabuf.h