All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksandr Andrushchenko <andr2000@gmail.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: lars.kurth@citrix.com, sstabellini@kernel.org,
	vlad.babchuk@gmail.com, tim@xen.org, dario.faggioli@citrix.com,
	ian.jackson@eu.citrix.com, andrii.anisov@gmail.com,
	olekstysh@gmail.com, embedded-pv-devel@lists.xenproject.org,
	al1img@gmail.com, david.vrabel@citrix.com,
	xen-devel@lists.xenproject.org, joculator@gmail.com
Subject: Re: [PATCH v1] displif: add ABI for para-virtual display
Date: Thu, 26 Jan 2017 20:39:07 +0200	[thread overview]
Message-ID: <3604de7c-e437-beca-41af-8667826d7a12@gmail.com> (raw)
In-Reply-To: <e9a0cf53-ec1b-afba-058f-a9c422e2e723@gmail.com>

Hi, Jan!

Does the below answer your question?

Thank you,
Oleksandr

On 01/05/2017 08:07 PM, Oleksandr Andrushchenko wrote:
> On 01/05/2017 06:12 PM, Jan Beulich wrote:
>>>>> On 05.01.17 at 17:03, <andr2000@gmail.com> wrote:
>>> On 01/05/2017 05:45 PM, Jan Beulich wrote:
>>>>>>> On 22.12.16 at 09:12, <andr2000@gmail.com> wrote:
>>>> Other than that the primary thing I'm missing (as I think I've
>>>> mentioned elsewhere already) is a rationale of why this new
>>>> protocol is needed (and the existing xenfb one can't be extended).
>>> "This protocol aims to provide a unified protocol which fits more
>>>
>>> sophisticated use-cases than a framebuffer device can handle. At the
>>> moment basic functionality is supported with the intention to extend:
>>>    o multiple dynamically allocated/destroyed framebuffers
>>>    o buffers of arbitrary sizes
>>>    o better configuration options including multiple display support"
>> Well, that's all stuff you had spelled out in the accompanying mail,
>> but that's all items which could be taken care of by a protocol
>> extension too.
> of course
>>> I tried to evaluate what would it be like to extend existing fbif...
>>> It looks like having 2 different protocols in a single file.
>> This is what I'd like you to expand on.
> To start with:
>
> 1. In/out event sizes
>  o fbif - 40 octets
>  o displif - 40 octets
> It fits now, but this is only the initial version of the displif protocol
> which means that there could be requests which will not fit
> (we are thinking of introducing some GPU related functionality
> later on). In that case we cannot alter fbif sizes as we need to
> be backward compatible an will be forced to handle those
> apart of fbif. This makes me believe if we extend fbif it is better
> to have separate structures/rings from the start.
>
> 2. Shared page
> Displif doesn't use anything like struct xenfb_page, but
> DEFINE_RING_TYPES(xen_displif, struct xendispl_req, struct 
> xendispl_resp);
> which I believe is a better and more common way.
> Output events use a shared page which only has in_cons and in_prod
> and all the rest is used for incoming events. Here struct xenfb_page
> could probably be used as is despite the fact that it only has a half
> of a page for incoming events which is only 50 events. (consider
> something like 60Hz display)
>
> 3. Amount of changes.
> fbif only provides XENFB_TYPE_UPDATE and XENFB_TYPE_RESIZE
> events, so it looks like it is easier to get fb support into displif
> than vice versa. displif at the moment has 6 requests and 1 event,
> multiple connector support, etc.
> BTW, I can add framebuffer's update and resize into displif, so
> it could  probably supersede fbif at some point
>
>>> What is more fbif can be used together with displif running at the
>>> same time, e.g. on Linux one provides framebuffer and another DRM
>> And this is certainly a valid argument (which hence should be
>> spelled out in the description).
> ok
>> Jan
>>
>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-01-26 18:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-22  8:12 [PATCH v1] displif: add ABI for para-virtual display Oleksandr Andrushchenko
2016-12-22  8:12 ` Oleksandr Andrushchenko
2017-01-05  6:33   ` Oleksandr Andrushchenko
2017-01-05 15:45   ` Jan Beulich
2017-01-05 16:03     ` Oleksandr Andrushchenko
2017-01-05 16:12       ` Jan Beulich
2017-01-05 18:07         ` Oleksandr Andrushchenko
2017-01-26 18:39           ` Oleksandr Andrushchenko [this message]
2017-01-27  7:56             ` Jan Beulich
2017-01-27  8:11               ` Oleksandr Andrushchenko
2017-01-27  8:19                 ` Jan Beulich
2017-01-11  7:59 ` Oleksandr Andrushchenko

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=3604de7c-e437-beca-41af-8667826d7a12@gmail.com \
    --to=andr2000@gmail.com \
    --cc=JBeulich@suse.com \
    --cc=al1img@gmail.com \
    --cc=andrii.anisov@gmail.com \
    --cc=dario.faggioli@citrix.com \
    --cc=david.vrabel@citrix.com \
    --cc=embedded-pv-devel@lists.xenproject.org \
    --cc=ian.jackson@eu.citrix.com \
    --cc=joculator@gmail.com \
    --cc=lars.kurth@citrix.com \
    --cc=olekstysh@gmail.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=vlad.babchuk@gmail.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 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.