From: Oleksandr Grytsov <al1img@gmail.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Juergen Gross <jgross@suse.com>, Wei Liu <wei.liu2@citrix.com>,
Oleksandr Andrushchenko <andr2000@gmail.com>,
Oleksandr Grytsov <oleksandr_grytsov@epam.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v1 0/2] libxl: add PV display device driver interface
Date: Wed, 3 May 2017 18:08:53 +0300 [thread overview]
Message-ID: <CACvf2oU9NbZu2P_BBY182NOkXj9w9nqQfyjxQ1jPrHv8=src+Q@mail.gmail.com> (raw)
In-Reply-To: <22792.38771.362665.721333@mariner.uk.xensource.com>
On Tue, May 2, 2017 at 5:28 PM, Ian Jackson <ian.jackson@eu.citrix.com> wrote:
> Oleksandr Grytsov writes ("Re: [Xen-devel] [PATCH v1 0/2] libxl: add PV display device driver interface"):
>> On Thu, Apr 13, 2017 at 3:54 PM, Ian Jackson <ian.jackson@eu.citrix.com> wrote:
>> > Can you sketch out what the rest of the system does, then ?
>> > Presumably there has to be a different control protocol to your
>> > backend, to tell it where to put the actual displays. I think it
>> > would be good if that protocol were the same for different use cases,
>> > and documented somewhere.
>>
>> Well, yes there will be some protocol to communicate with the window
>> manager. We consider to use wayland and weston as display system.
>> The idea is the backend and other applications on the host render
>> content onto wayland surfaces. Each surface will have a unique
>> identifier or attribute (like multimedia, navigation etc.). The
>> window manager based on these attributes, configured policies and
>> scenarios will set positions and geometries for the surfaces.
>
> That seems to make some kind of sense. However, surely that means
> that the backend needs to be told the "identifier or attribute" to
> assign to the surfaces it is creating ?
>
> Ie that would have to be in here somewhere
> vdispl = [ 'backend=0, devId=0, beAlloc=1, connectors=800x600,1024x768' ]
>
>> > So for example, when a window manager moves a window, how is the
>> > backend told where to display the guest output ?
>>
>> The backend will create the wayland surface and tell the window manager
>> the attribute it has. All rest will be done by the window manager.
>
> Or to put my comment above another way: if there are several such
> surfaces, how does the window manager tell which is intended for
> what ?
>
>> In my opinion the details how the virtual displays are placed on the host
>> should be separated from xl configuration. Because it really depends on
>> backend implementation. We have generalized display protocol (displif.h).
>> There could be different frontend/backend implementations and each
>> implementation will require its own configuration.
>> That's why in xl.cfg should be only parameters related to display protocol
>> namely resolutions of virtual connectors.
>
> xl.cfg normally also contains information necessary for plumbing the
> virtual device back to some physical hardware.
>
> So for example, the disk specification specifies not only the names of
> the virtual devices, but also the corresponding host physical devices
> (or files), host data storage format, etc.
>
> As I say I think in this case we probably want the configuration file
> to assign names or ids to the backend surfaces.
>
> Ian.
>
> PS: Sorry for the slow reply.
I considered that frontend domain name and surface index is a unique surface
identifier. Like following:
Surface with index 0 from DomU should be placed at x, y, display 0 etc.
Surely, we can add identifier into xl.cfg to make it more generic or more
readable from user point of view. In this case the config line could look like:
vdispl = [ 'backend=0, devId=0, beAlloc=1,
connectors=id0:800x600,id1:1024x768' ]
id0, id1 could be either integer id or string name. For example in our case it
could be wayland surface id.
--
Best Regards,
Oleksandr Grytsov.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-05-03 15:08 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 10:03 [PATCH v1 0/2] libxl: add PV display device driver interface Oleksandr Grytsov
2017-04-05 10:03 ` [PATCH v1 1/2] " Oleksandr Grytsov
2017-04-05 10:03 ` [PATCH v1 2/2] xl: add PV display device commands Oleksandr Grytsov
2017-04-05 11:05 ` [PATCH v1 0/2] libxl: add PV display device driver interface Ian Jackson
2017-04-05 12:25 ` al1img .
2017-04-05 13:49 ` Ian Jackson
2017-04-05 14:00 ` Konrad Rzeszutek Wilk
2017-04-05 14:18 ` Oleksandr Grytsov
2017-04-05 14:28 ` Oleksandr Grytsov
2017-04-05 14:28 ` Ian Jackson
2017-04-05 14:53 ` Oleksandr Grytsov
2017-04-05 15:50 ` Ian Jackson
2017-04-06 9:22 ` Oleksandr Grytsov
2017-04-06 11:17 ` Ian Jackson
2017-04-06 12:42 ` Oleksandr Grytsov
2017-04-06 13:03 ` Ian Jackson
2017-04-06 13:27 ` Oleksandr Grytsov
2017-04-10 10:58 ` Oleksandr Grytsov
2017-04-12 16:48 ` Wei Liu
2017-04-13 8:41 ` Oleksandr Grytsov
2017-04-13 12:54 ` Ian Jackson
2017-04-14 10:12 ` Oleksandr Grytsov
2017-04-26 10:15 ` Oleksandr Grytsov
2017-05-02 14:28 ` Ian Jackson
2017-05-03 15:08 ` Oleksandr Grytsov [this message]
2017-05-03 15:13 ` Ian Jackson
2017-05-04 8:49 ` Oleksandr Grytsov
2017-05-12 12:12 ` Oleksandr Grytsov
2017-05-18 11:42 ` Oleksandr Grytsov
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='CACvf2oU9NbZu2P_BBY182NOkXj9w9nqQfyjxQ1jPrHv8=src+Q@mail.gmail.com' \
--to=al1img@gmail.com \
--cc=andr2000@gmail.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jgross@suse.com \
--cc=oleksandr_grytsov@epam.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).