Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2920472ybf; Mon, 2 Mar 2020 18:43:29 -0800 (PST) X-Google-Smtp-Source: ADFU+vslb8mRrAipFue/F9K+PtfteN38WkfFyW4oT2odJkgTOeQDbMnRNHRf7p/UCO5lhp7FY1WF X-Received: by 2002:aca:bc86:: with SMTP id m128mr1037791oif.11.1583203408846; Mon, 02 Mar 2020 18:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583203408; cv=none; d=google.com; s=arc-20160816; b=KzjHDLpW3tmKmk/Lo/GyQ4PTJtqQIhYvVcjrjYOvTWkv1s1XfaTqIp8uLJLCuPPOw7 0x98zUpfV8fFYjJR88Q0mD1SvuHqh2Ilse6UqS83SQUHu2x7Ek80w9MGBQUxeHf8YWDL bmwxx9Pac6h04EogTe8i3TBNfBHLDE39BueACzHlNcNp7m2SKYtmw6oOm3LCyqDcmRSa S7mn/nPI6fJUHR5azsU0KO3ggMW6SoRbanLD/TZy7snMrIAsRa3HieIQoORNewqUKj3h sH5DwhUtYlXxnuJPZA3+i2DsakMDGD1HYo6fJi61svTpd/i+FkokBqZ2IgG/Cp9Z0QpC 7TGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PxaU6jH+BrctxPkuy+TtnDFu4GnDn0I+fDbnzM1efjY=; b=efV4MOZqA+WoeJPFNAzQ2+pUNRZq4Lj4As3IOoDWnd6N1Cd5RrnFaNJJPS/ZVng/H7 Blt93MHv9eT0vqt6Hm2xrQRaJy79VJgZF4zyAEN+9LMmZx1qZFoOQHNtUKGq3204wzL3 xj8D6JlaggCGELY/xIfXaoST8BCxicIsxj1gIZzR8Crs28TdJ91wtgYYVRegMKv4gc+V VYJOK5McOjPxIyHOFUl/N3TuDBj1xddlav1YQrfrpGunZM5cATLY+kobn5OrZT+qWk+i zG+5nXAnLhMrNQtBkEvjTdojqYscvzUTnraxH70J6weK8EBVf4L0b8LrpCEUVqcC/+84 afzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="lPebr/ap"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si3358589otj.25.2020.03.02.18.43.13; Mon, 02 Mar 2020 18:43:28 -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=@chromium.org header.s=google header.b="lPebr/ap"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbgCCCmf (ORCPT + 99 others); Mon, 2 Mar 2020 21:42:35 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:38400 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726928AbgCCCme (ORCPT ); Mon, 2 Mar 2020 21:42:34 -0500 Received: by mail-qk1-f195.google.com with SMTP id h22so1992695qke.5 for ; Mon, 02 Mar 2020 18:42:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PxaU6jH+BrctxPkuy+TtnDFu4GnDn0I+fDbnzM1efjY=; b=lPebr/apS3a3XvJ4XcWg2p+1jVRErhkCzaWWg6wU7yc5QNOeEvIf5BudVhVxW66Euf /6ylI3gzJxuJK7fsCbK7mC/7V5Yx8ND0/jBwvSFydsUmqZf6y1sr7BGOQvcFetjCcXwO arVONmL2HlRo7X9WIG9l6bIYjr03Nc0Y4hlBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PxaU6jH+BrctxPkuy+TtnDFu4GnDn0I+fDbnzM1efjY=; b=N1XURS2vO6O6WtrnSMPj3KYoTMXrUUz8IfNZjNPOutrE18j04w7eT767kc2mOD+sjE Z3/7zGGcM9KIs7ehAkKPva9LxXIxM68qw+txvZw3KDrdVkti3LqAT1PFI4OCYFLecg+G EufTfiJO/NgXdTOovwKywlHt7dW1Oeo62npn1EEKX21s6oUD9iAibj/6Icpe/rJ6VFco eilz38ea/MmeFwPUjsbzqE8kPycBAy+Woo9EoreydJw48d+NtmtYN0mapQnbyyTF7qMZ k4EtrtqW//0KP5v0XSGTpBK7JIGn1DdzaF/o0B5zImrzJ7e3fn1KTumtx2ajjuxxmQRr 89HA== X-Gm-Message-State: ANhLgQ28X2yuYmCkaq6eaaHiMqh/6jb3uAuwObtc76eH+Ex797+LWsj7 E+10G+8ER02fHaPcqgsl6h5xJRLvjKEOAAndIcTwtQ== X-Received: by 2002:a37:9c01:: with SMTP id f1mr2223210qke.194.1583203352379; Mon, 02 Mar 2020 18:42:32 -0800 (PST) MIME-Version: 1.0 References: <20200302121524.7543-1-stevensd@chromium.org> <20200302121524.7543-5-stevensd@chromium.org> In-Reply-To: From: David Stevens Date: Tue, 3 Mar 2020 11:42:22 +0900 Message-ID: Subject: Re: [virtio-dev] [PATCH v2 4/4] drm/virtio: Support virtgpu exported resources To: Gurchetan Singh Cc: Gerd Hoffmann , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. The other resource management operations (e.g. creation, attaching a backing) don't take render contexts, and exporting a resource seems like the same sort of operation. It's not clear to me why exporting a resource would affect what render contexts a resource has been attached to, nor why the render contexts a resource has been attached to would affect exporting the resource. Also, from an implementation perspective, I don't see any struct virtio_gpu_fpriv to get the ctx_id from. -David