From: Oleksandr Andrushchenko <andr2000@gmail.com>
To: Julien Grall <julien.grall@arm.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <JBeulich@suse.com>
Cc: lars.kurth@citrix.com, iurii.konovalenko@globallogic.com,
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,
oleksandr.dmytryshyn@globallogic.com, joculator@gmail.com
Subject: Re: [PATCH v13] This is the ABI for the two halves of a para-virtualized sound driver to communicate with each to other.
Date: Tue, 29 Nov 2016 09:03:31 +0200 [thread overview]
Message-ID: <5466c2fe-8a87-1fbe-d0f7-e0280318a969@gmail.com> (raw)
In-Reply-To: <cae965f3-4559-4ec7-9266-4f4cdf2358cf@arm.com>
On 11/28/2016 07:12 PM, Julien Grall wrote:
>
>
> On 28/11/16 17:11, Andrew Cooper wrote:
>> On 28/11/16 16:59, Julien Grall wrote:
>>> Hi,
>>>
>>> On 28/11/16 15:43, Oleksandr Andrushchenko wrote:
>>>> On 11/28/2016 05:00 PM, Julien Grall wrote:
>>>>> Hi Oleksandr,
>>>>>
>>>>> On 28/11/16 14:56, Oleksandr Andrushchenko wrote:
>>>>>> On 11/28/2016 04:24 PM, Julien Grall wrote:
>>>>>>> Hi Oleksandr,
>>>>>>>
>>>>>>> On 28/11/16 14:12, Oleksandr Andrushchenko wrote:
>>>>>>>>
>>>>>>>> On 11/28/2016 03:27 PM, Jan Beulich wrote:
>>>>>>>>>> + *
>>>>>>>>>> + * gref_dir_next_page - grant_ref_t, reference to the next page
>>>>>>>>>> describing
>>>>>>>>>> + * page directory. Must be 0 if no more pages in the list.
>>>>>>>
>>>>>>> If I am not mistaken 0 is a valid grant.
>>>>>>>
>>>>>> Then I will remove this sentence, anyways BE knows how many grefs
>>>>>> there
>>>>>> are for the buffer size given
>>>> BTW, xen-blkfrint.c:
>>>> #define GRANT_INVALID_REF 0
>>>> this is from where I got "Must be 0 if no more pages in the list."
>>>
>>> GRANT_INVALID_REF is internally to Linux and never exposed in the PV
>>> driver. So for me it is implementation details because ref 0 could be
>>> allocated (log dump by Xen):
>>>
>>> (XEN) -------- active -------- -------- shared --------
>>> (XEN) [ref] localdom mfn pin localdom gmfn flags
>>> (XEN) grant-table for remote domain: 2 (v1)
>>> (XEN) [ 0] 0 0x99bf35 0x00000001 0 0x039000 0x19
>>> (XEN) [ 1] 0 0x99bf33 0x00000001 0 0x039001 0x19
>>
>> Grant reference 0 is reserved in the ABI for the paravirtual console.
>
> Oh, so considering grant ref 0 as invalid in a PV protocol would be fine?
Just to summarize: strictly speaking, grant reference 0 is valid, but
never exposed to a PV driver, because of the fact that it is already in
use/reserved for the PV console. Taking into account this fact we can
assume that 0 is GRANT_INVALID_REF and can be used in PV
drivers just like xen-blkfront.c
does.
I will add a note on this in the protocol
>
> Cheers,
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-11-29 7:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-28 12:30 [PATCH v13] sndif: add ABI for para-virtual sound Oleksandr Andrushchenko
2016-11-28 12:30 ` [PATCH v13] This is the ABI for the two halves of a para-virtualized sound driver to communicate with each to other Oleksandr Andrushchenko
2016-11-28 13:27 ` Jan Beulich
2016-11-28 14:12 ` Oleksandr Andrushchenko
2016-11-28 14:24 ` Julien Grall
2016-11-28 14:56 ` Oleksandr Andrushchenko
2016-11-28 15:00 ` Julien Grall
2016-11-28 15:43 ` Oleksandr Andrushchenko
2016-11-28 16:26 ` Julien Grall
2016-11-28 16:59 ` Julien Grall
2016-11-28 17:11 ` Andrew Cooper
2016-11-28 17:12 ` Julien Grall
2016-11-29 7:03 ` Oleksandr Andrushchenko [this message]
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=5466c2fe-8a87-1fbe-d0f7-e0280318a969@gmail.com \
--to=andr2000@gmail.com \
--cc=JBeulich@suse.com \
--cc=al1img@gmail.com \
--cc=andrew.cooper3@citrix.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=iurii.konovalenko@globallogic.com \
--cc=joculator@gmail.com \
--cc=julien.grall@arm.com \
--cc=lars.kurth@citrix.com \
--cc=oleksandr.dmytryshyn@globallogic.com \
--cc=olekstysh@gmail.com \
--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 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).