Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4258201ybf; Wed, 4 Mar 2020 00:06:22 -0800 (PST) X-Google-Smtp-Source: ADFU+vvsgQfh9x0zWisRQTbsrNydmORaDRZVWLzj7W5aBfkJYJbkCjbxItPbKQVYtJADX1Q9MDic X-Received: by 2002:a9d:480c:: with SMTP id c12mr1382915otf.336.1583309181858; Wed, 04 Mar 2020 00:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583309181; cv=none; d=google.com; s=arc-20160816; b=MwGFhN1Dwq0CsPTWiy7Apz45sXipUuztFiC2Nd5wZl9yP7z1+QB7NrLB37AzF8BoWg 0f62tGDf42OhD4R81IqwkZYtp5bxNlsVxZYXVgDQAPBX7Zqgzxjze0Kr0y6GsDbX4EZd Nu6gPnyphfPRUxqvnA6DDGxaxb+7RslDbNIZ/YGy8zViZrwrZjsL5ds+9doYGXQrRD8U 3vuI73PtcvX56CxpUitGyfT2ayKfkl1RVlSO7M7Q3qp24n/DGISJrf0BQ14oupo+afxv IMD2ljCtYZ3mdVF3MSxLHhBMR7xdW+ZuVyVb+c/vnQTAyEdI41DxJnV17ehdtx73GscT SwuA== 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=kEXp+MsDMiIQ48dZsIdgW3c7/qT3rYq7zxn6pOdg4xA=; b=Dnt+oMh+HoIozeCoSjMO9EWNODAVX3yZh7KiqRjDyA9cJOBOcns0vIj6Qz7JBcOswV 6w7XhXbUHz4sbVAG9NPcgrhya1cJjd5OjtrM5u3m9ttou037F5OwBYF4rr37hQo8Bh/T vfdxJpFZVhimyLOIA49uMeScQvrXfUns9CCbJGDMKdibO6zIRnpPwmP+qy64nOBlZu7O XVVwAhRZcr5mgHYyQKXsMrA8hMGwMwg2MXkBvNLzcS0PBU65Pz44Hv0wrc1HC2s0pkvl DLSF+M0nncqFvXzC2xZOFA+sp3pHXYDh4t1IGDPCzMCuFgazjksWbdsEVCk63keYu6md MF4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E9FCmj9j; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p186si797370oih.172.2020.03.04.00.06.09; Wed, 04 Mar 2020 00:06:21 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E9FCmj9j; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387396AbgCDIFy (ORCPT + 99 others); Wed, 4 Mar 2020 03:05:54 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:23389 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725271AbgCDIFy (ORCPT ); Wed, 4 Mar 2020 03:05:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583309153; 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=kEXp+MsDMiIQ48dZsIdgW3c7/qT3rYq7zxn6pOdg4xA=; b=E9FCmj9jcnhbA11ESDwbYCxh/Gpv5iWydcqEE/7+VlwdQNMLtleJeKmEvHqrwO1YJ3rCw+ orJ/1xl9wbMwQUzWehwTt3Qc1RXkyeYxyRONMwr3J1LsSP+pFg6KfXZZQt9dE4w51m3YFO ymSTBR/H8Hh2p4P1/OiEyy8Z1ECgoGM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-136-LfdfQ2d3O6mP8LQD7TgVEQ-1; Wed, 04 Mar 2020 03:05:49 -0500 X-MC-Unique: LfdfQ2d3O6mP8LQD7TgVEQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6149E801E6C; Wed, 4 Mar 2020 08:05:47 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-150.ams2.redhat.com [10.36.116.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 41D545DA60; Wed, 4 Mar 2020 08:05:44 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7778C17506; Wed, 4 Mar 2020 09:05:43 +0100 (CET) Date: Wed, 4 Mar 2020 09:05:43 +0100 From: Gerd Hoffmann To: David Stevens Cc: Gurchetan Singh , David Airlie , Daniel Vetter , "Michael S . Tsirkin" , Jason Wang , Sumit Semwal , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , open list , ML dri-devel , "open list:VIRTIO GPU DRIVER" , Linux Media Mailing List , linaro-mm-sig@lists.linaro.org, virtio-dev@lists.oasis-open.org Subject: Re: [virtio-dev] [PATCH v2 4/4] drm/virtio: Support virtgpu exported resources Message-ID: <20200304080543.jtf3kcfp6cyegkag@sirius.home.kraxel.org> References: <20200302121524.7543-1-stevensd@chromium.org> <20200302121524.7543-5-stevensd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 11:42:22AM +0900, David Stevens wrote: > > cmd_p->hdr.ctx_id = > > > > Before this completion of this hypercall, this resource can be > > considered context local, while afterward it can be considered > > "exported". > > Maybe I'm misunderstanding render contexts, but exporting a resource > doesn't seem related to render contexts. It isn't indeed. Binding resources to contexts might need dma-buf imports/exports on the host side, but that is another story and not related to dma-buf exports inside the guest. cheers, Gerd