All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: Dave Airlie <airlied@gmail.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	David Airlie <airlied@linux.ie>, Jason Wang <jasowang@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>,
	"open list:VIRTIO CORE,
	NET..."  <virtualization@lists.linux-foundation.org>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH] drm/virtio: Add window server support
Date: Fri, 12 Jan 2018 08:59:35 +0100	[thread overview]
Message-ID: <c25f1abf-d00d-c1ed-0aea-9a701c61a570@collabora.com> (raw)
In-Reply-To: <CAPM=9twT_jtfJteuUpRvu1Xn3nNfxG-5oLfcbHYVnHVeS9TzcA@mail.gmail.com>

On 01/12/2018 05:11 AM, Dave Airlie wrote:
>>
>> 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?

Sounds good. I'm unsure though on whether it should be done 
unconditionally if the hypervisor's code supports this, or if only if 
the user pass the -proxy-wayland switch and the hypervisor was able to 
open the socket to the compositor. I'm leaning towards the latter.

> What happens if you run this on plain qemu, does it fallback correctly?

Will work on this.

> Are there any scenarios where we don't want to expose this API because there
> is nothing to back it.

I'm not sure what the overhead of the extra queues is, but I guess the 
ioctls could immediately return -ENODEV if the hypervisor doesn't have 
that capability.

Happy to see that there aren't any major concerns with the general approach.

Thanks,

Tomeu

  parent reply	other threads:[~2018-01-12  7:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-28 11:53 [PATCH] drm/virtio: Add window server support Tomeu Vizoso
2017-12-28 11:53 ` Tomeu Vizoso
2018-01-09 12:56 ` Tomeu Vizoso
2018-01-09 12:56   ` Tomeu Vizoso
2018-01-09 12:56 ` Tomeu Vizoso
2018-01-12  4:11 ` Dave Airlie
2018-01-12  4:11   ` Dave Airlie
2018-01-12  7:59   ` Tomeu Vizoso
2018-01-12  7:59   ` Tomeu Vizoso [this message]
2018-01-12  7:59     ` Tomeu Vizoso
2018-01-12  4:11 ` Dave Airlie
  -- strict thread matches above, loose matches on Subject: below --
2017-12-28 11:53 Tomeu Vizoso
2017-12-14 12:43 Tomeu Vizoso
2017-12-14 12:43 ` Tomeu Vizoso
2017-12-16  0:50 ` kbuild test robot
2017-12-16  0:50 ` kbuild test robot
2017-12-16  0:50   ` kbuild test robot
2017-12-16  0:58 ` kbuild test robot
2017-12-16  0:58   ` kbuild test robot
2017-12-14 12:43 Tomeu Vizoso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c25f1abf-d00d-c1ed-0aea-9a701c61a570@collabora.com \
    --to=tomeu.vizoso@collabora.com \
    --cc=airlied@gmail.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jasowang@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.