Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754259AbeALELH (ORCPT + 1 other); Thu, 11 Jan 2018 23:11:07 -0500 Received: from mail-lf0-f42.google.com ([209.85.215.42]:39896 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752735AbeALELG (ORCPT ); Thu, 11 Jan 2018 23:11:06 -0500 X-Google-Smtp-Source: ACJfBouIlyzAnF42FpWKBmSKc+KUVQk5uCIAhw2sCRbMCOZC50CGmbNcZBUY+WWhF/7luzI8CnUo/yI9imAc28+ueZE= MIME-Version: 1.0 In-Reply-To: <20171228115333.12289-1-tomeu.vizoso@collabora.com> References: <20171228115333.12289-1-tomeu.vizoso@collabora.com> From: Dave Airlie Date: Fri, 12 Jan 2018 14:11:04 +1000 Message-ID: Subject: Re: [PATCH] drm/virtio: Add window server support To: Tomeu Vizoso Cc: dri-devel , "Michael S. Tsirkin" , David Airlie , Jason Wang , LKML , "open list:VIRTIO CORE, NET..." , Gerd Hoffmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > > this work is based on the virtio_wl driver in the ChromeOS kernel by > Zach Reizner, currently at: > > https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-4.4/drivers/virtio/virtio_wl.c > > There's two features missing in this patch when compared with virtio_wl: > > * Allow the guest access directly host memory, without having to resort > to TRANSFER_TO_HOST > > * Pass FDs from host to guest (Wayland specifies that the compositor > shares keyboard data with the guest via a shared buffer) > > I plan to work on this next, but I would like to get some comments on > the general approach so I can better choose which patch to follow. Shouldn't qemu expose some kind of capability to enable this so we know to look for the extra vqs? What happens if you run this on plain qemu, does it fallback correctly? Are there any scenarios where we don't want to expose this API because there is nothing to back it. Dave.