Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp374875ybg; Tue, 9 Jun 2020 02:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoiXa1dPLThmpslUGbRNWEWr9sNVRXhzfuDldwFduyyvN42af3/F18Pdk1wSbLVdg5W/8j X-Received: by 2002:aa7:c5c7:: with SMTP id h7mr23145039eds.177.1591696585440; Tue, 09 Jun 2020 02:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591696585; cv=none; d=google.com; s=arc-20160816; b=ODq+6dikkVRFUMl1FkqxqkAB7UI7sbyXai70rcKr7C3W0h8ViAqSGRACAaF9xnGN6m r42QV9ofrNFUaAWLTGdAthMi3qp+JqPL/MYcARIit0bsL1O0Q9Z++xRF7iaQ0w7k1F76 S9bCRmgJp3exS0N47tQ8nLYrBDLyeJVVqae75aaWslFA9XvKfdaZDFDo2jrdhVzomXIV zQtwKL2p+MSRmHWAEpzFEQ4J308u6bBLvPOEk8GEm02SiMCoGQrMB900HvlHlIhwbnM3 wEjhy2Olr7JlnM2uQSdrKRp9FrVmxjjmylus2qyZBK5Q0WzW/Z1nCPXmrSIkejmcUTgX 6oIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oMvGLtRSljs2Zi0kyxH/VTEK52jN8HKOE/cbjLGX1jw=; b=RzGdzokAv1UnzLYztXh57Nm+aqj0K7F0I1ik8g0woPMKH93fly1nc6CUTGMOLxsSM1 /+Fmegie/rQ7sB7Jo16prBWxSeYqJaGhR5Zck28r6KDA4XE0R4CxkrPyFEEbtzUY97K8 NrdoKfWpnzUhTKE73aj9Pp/fZORSs9EHj6g4YNO0elk7yfp730bUSY2QnnK10IHHlH1f UPya/WYiIYE11//6DKxTnCRwJq9vdDq+LHUoP7gbP5pPHXiodh+vVQAxnP+xk8s8wMEb 6PsHpa82MPx1iVCJecUki24XnF4R67u8qHPnX+2SEoHOMSgERzg/H3TuZZ3cLc8LP8PR 31mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LV90BGj2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si10180187ejx.291.2020.06.09.02.56.01; Tue, 09 Jun 2020 02:56:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LV90BGj2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728198AbgFIJxL (ORCPT + 99 others); Tue, 9 Jun 2020 05:53:11 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44915 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727098AbgFIJxJ (ORCPT ); Tue, 9 Jun 2020 05:53:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591696387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oMvGLtRSljs2Zi0kyxH/VTEK52jN8HKOE/cbjLGX1jw=; b=LV90BGj2rDt2UuftrXRQAfhVE7EZPtm/TAHHFgNcVsvI5U9pahThki7xTg0/FBaHFGjBXM OqIeEjslfjcOoRRiVKrF8okV0Zk6EzW9iwWPn/+rXPzWeil/4kz9S7O/NuD8N1r78/wVIK PxLYTO++isJZ7K+N4+UP4IeOpoa/f/g= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-174-LkkoZ1MvNvO1HDYk_6sCFw-1; Tue, 09 Jun 2020 05:53:03 -0400 X-MC-Unique: LkkoZ1MvNvO1HDYk_6sCFw-1 Received: by mail-wr1-f70.google.com with SMTP id w4so8412191wrl.13 for ; Tue, 09 Jun 2020 02:53:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oMvGLtRSljs2Zi0kyxH/VTEK52jN8HKOE/cbjLGX1jw=; b=fIntI1E6hjhaHXz/wQrvT3/OXMunjXW40pA57DqlQ5+JbUJZJ9q1ZsUnvViNDopmFq wEI6vbKsT1+RRH1JYzNb1JguunjOcf2lcyPbEV0DmUODa9ab/9DXM3juxeuVL+/z7gzZ 17rNl9xDk2RJseU14ZsQQs9SDQl/Bi3GPk2KxwetMW/59ErkIUEwAVXBaZb14gh1FOb6 HD6Q1ji3Ow/jF/9DLp/qrrtdrteVgNBGj14jtUel3vEVeoTppkKKJswV7v7xnzBPqgWZ ts3Q6dNZocq4f6FiG5SznSrGB4QCgiaUxg7qXBWfbB2YVl9NN/5H7A/C5FYG0wDyZorK A+IA== X-Gm-Message-State: AOAM533gG/xB/mZqdBC/xw1o0y1o1zX+OgRS24gfKS75kMpOXLiDo3O/ 0sUzLvK0yBiYSwBNxHbZ9XTzNFZNEiDB6slFrx7BrtjYbrfhe685AHJPm//jFfehoHlWsGv/q6D 6YKRtWZN7CqcKPWo3I0z47FOm X-Received: by 2002:a5d:6b8c:: with SMTP id n12mr3491098wrx.61.1591696382276; Tue, 09 Jun 2020 02:53:02 -0700 (PDT) X-Received: by 2002:a5d:6b8c:: with SMTP id n12mr3491075wrx.61.1591696382101; Tue, 09 Jun 2020 02:53:02 -0700 (PDT) Received: from redhat.com (bzq-79-181-55-232.red.bezeqint.net. [79.181.55.232]) by smtp.gmail.com with ESMTPSA id 67sm2834452wrk.49.2020.06.09.02.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 02:53:01 -0700 (PDT) Date: Tue, 9 Jun 2020 05:52:58 -0400 From: "Michael S. Tsirkin" To: David Stevens Cc: Gerd Hoffmann , David Airlie , Daniel Vetter , Sumit Semwal , Jason Wang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, virtio-dev@lists.oasis-open.org, alex.williamson@redhat.com Subject: Re: [PATCH v5 0/3] Support virtio cross-device resources Message-ID: <20200609055021-mutt-send-email-mst@kernel.org> References: <20200609012518.198908-1-stevensd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200609012518.198908-1-stevensd@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2020 at 10:25:15AM +0900, David Stevens wrote: > This patchset implements the current proposal for virtio cross-device > resource sharing [1]. It will be used to import virtio resources into > the virtio-video driver currently under discussion [2]. The patch > under consideration to add support in the virtio-video driver is [3]. > It uses the APIs from v3 of this series, but the changes to update it > are relatively minor. > > This patchset adds a new flavor of dma-bufs that supports querying the > underlying virtio object UUID, as well as adding support for exporting > resources from virtgpu. Gerd, David, if possible, please test this in configuration with virtual VTD enabled but with iommu_platform=off to make sure we didn't break this config. Besides that, for virtio parts: Acked-by: Michael S. Tsirkin > [1] https://markmail.org/thread/2ypjt5cfeu3m6lxu > [2] https://markmail.org/thread/p5d3k566srtdtute > [3] https://markmail.org/thread/j4xlqaaim266qpks > > v4 -> v5 changes: > - Remove virtio_dma_buf_export_info. > > David Stevens (3): > virtio: add dma-buf support for exported objects > virtio-gpu: add VIRTIO_GPU_F_RESOURCE_UUID feature > drm/virtio: Support virtgpu exported resources > > drivers/gpu/drm/virtio/virtgpu_drv.c | 3 + > drivers/gpu/drm/virtio/virtgpu_drv.h | 20 ++++++ > drivers/gpu/drm/virtio/virtgpu_kms.c | 4 ++ > drivers/gpu/drm/virtio/virtgpu_prime.c | 96 +++++++++++++++++++++++++- > drivers/gpu/drm/virtio/virtgpu_vq.c | 55 +++++++++++++++ > drivers/virtio/Makefile | 2 +- > drivers/virtio/virtio.c | 6 ++ > drivers/virtio/virtio_dma_buf.c | 82 ++++++++++++++++++++++ > include/linux/virtio.h | 1 + > include/linux/virtio_dma_buf.h | 37 ++++++++++ > include/uapi/linux/virtio_gpu.h | 19 +++++ > 11 files changed, 321 insertions(+), 4 deletions(-) > create mode 100644 drivers/virtio/virtio_dma_buf.c > create mode 100644 include/linux/virtio_dma_buf.h > > -- > 2.27.0.278.ge193c7cf3a9-goog