Kernel KVM virtualization development
 help / color / mirror / Atom feed
* passing FDs across domains
@ 2017-11-13 14:18 Tomeu Vizoso
  2017-11-14  8:02 ` Gerd Hoffmann
  0 siblings, 1 reply; 22+ messages in thread
From: Tomeu Vizoso @ 2017-11-13 14:18 UTC (permalink / raw)
  To: kvm; +Cc: kraxel, Stefan Hajnoczi, Zach Reizner, Helen Mae Koike Fornazier

Hi,

I'm looking at what would be the best way for Wayland clients running in 
a VM to communicate with a Wayland compositor in the host.

The base Wayland protocol is fairly self-contained, with little or no 
references to objects outside the client and the server, so it lends 
itself very well to virtualization.

But there's a problem when passing references to pixel buffers around 
with FD passing, as SCM_RIGHTS isn't currently implemented in AF_VSOCK.

The Wayland project is willing to consider adding AF_VSOCK support to 
the libwayland libraries alongside existing support for AF_UNIX, both on 
client and server.

Any opinions on whether adding SCM_RIGHTS support to AF_VSOCK is a good 
idea? Or other options for letting processes in the host to access shmem 
buffers allocated within the guest?

Regarding the mechanics of mapping guest buffers in the host, I was 
hoping the approach described below would work:

http://www.fp7-save.eu/papers/SCALCOM2016.pdf

Thanks,

Tomeu

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-04-18  7:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-13 14:18 passing FDs across domains Tomeu Vizoso
2017-11-14  8:02 ` Gerd Hoffmann
2017-11-14  8:08   ` Tomeu Vizoso
2017-11-14  9:33     ` Gerd Hoffmann
2017-11-14 14:01       ` Tomeu Vizoso
2017-11-14 14:19         ` Gerd Hoffmann
2017-11-15  8:21           ` Tomeu Vizoso
2017-11-15  9:47             ` Tomeu Vizoso
2017-11-16  9:57           ` Tomeu Vizoso
2017-11-16 10:49             ` Gerd Hoffmann
2017-11-16 14:36               ` Tomeu Vizoso
2017-11-16 15:51                 ` Gerd Hoffmann
2017-11-22 10:54                   ` Stefan Hajnoczi
2017-11-22 15:47                     ` Stefan Hajnoczi
2017-11-23  8:17                       ` Tomeu Vizoso
2017-11-27 10:59                         ` Stefan Hajnoczi
2017-11-27 11:59                           ` cross-domain Wayland (Re: passing FDs across domains) Tomeu Vizoso
     [not found]                     ` <bf6ce187-46b6-f01d-4eba-79b035c94426@collabora.com>
     [not found]                       ` <CAAFQd5AJFtK524sh1RStOeE8yagknW_hoJVr6mzMXb=+eL03Bg@mail.gmail.com>
     [not found]                         ` <20190320121132.ysny44krkgw6jlje@sirius.home.kraxel.org>
     [not found]                           ` <CAAFQd5BmAfYzF0JprqWjpkmk-_PGAGXzy7HOa-QJJBxfqigVkg@mail.gmail.com>
     [not found]                             ` <20190401161940.c32mxs7locfzlp6z@sirius.home.kraxel.org>
2019-04-16  5:29                               ` passing FDs across domains Tomasz Figa
2019-04-17  9:30                                 ` Gerd Hoffmann
2019-04-17 10:12                                   ` Tomasz Figa
2019-04-18  6:56                                     ` Tomasz Figa
2019-04-18  7:07                                       ` Lepton Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox