From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleksandr Andrushchenko Subject: Re: [PATCH v15] sndif: add ABI for para-virtual sound Date: Wed, 11 Jan 2017 10:00:32 +0200 Message-ID: <936ccce1-49e6-14f2-b82a-4a27fd683d3e@gmail.com> References: <1480943129-20524-1-git-send-email-andr2000@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------520A4F102C0445AD0604BF7D" Return-path: In-Reply-To: <1480943129-20524-1-git-send-email-andr2000@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel@lists.xenproject.org Cc: lars.kurth@citrix.com, iurii.konovalenko@globallogic.com, vlad.babchuk@gmail.com, ian.jackson@eu.citrix.com, dario.faggioli@citrix.com, tim@xen.org, julien.grall@arm.com, andrii.anisov@gmail.com, olekstysh@gmail.com, embedded-pv-devel@lists.xenproject.org, al1img@gmail.com, david.vrabel@citrix.com, JBeulich@suse.com, oleksandr.dmytryshyn@globallogic.com, joculator@gmail.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------520A4F102C0445AD0604BF7D Content-Type: multipart/alternative; boundary="------------89984DDEBC92A5839C4E25BC" --------------89984DDEBC92A5839C4E25BC Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit As agreed on PV call PFA pahole results On 12/05/2016 03:05 PM, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Hi, all! > > Please find the next version of the ABI for the PV sound > after addressing review comments. > > Thank you, > Oleksandr Andrushchenko > Oleksandr Grytsov > > Oleksandr Andrushchenko (1): > This is the ABI for the two halves of a para-virtualized sound > driver to communicate with each to other. > > xen/include/public/io/sndif.h | 671 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 671 insertions(+) > create mode 100644 xen/include/public/io/sndif.h > --------------89984DDEBC92A5839C4E25BC Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit

As agreed on PV call PFA pahole results


On 12/05/2016 03:05 PM, Oleksandr Andrushchenko wrote:
From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>

Hi, all!

Please find the next version of the ABI for the PV sound
after addressing review comments.

Thank you,
Oleksandr Andrushchenko
Oleksandr Grytsov

Oleksandr Andrushchenko (1):
  This is the ABI for the two halves of a para-virtualized     sound
    driver to communicate with each to other.

 xen/include/public/io/sndif.h | 671 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 671 insertions(+)
 create mode 100644 xen/include/public/io/sndif.h


--------------89984DDEBC92A5839C4E25BC-- --------------520A4F102C0445AD0604BF7D Content-Type: text/x-patch; name="sndif.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sndif.diff" --------------520A4F102C0445AD0604BF7D Content-Type: text/plain; charset=UTF-8; name="sndif-x32.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sndif-x32.txt" struct xensnd_open_req { uint32_t pcm_rate; /* 0 4 */ uint8_t pcm_format; /* 4 1 */ uint8_t pcm_channels; /* 5 1 */ uint16_t reserved; /* 6 2 */ uint32_t buffer_sz; /* 8 4 */ grant_ref_t gref_directory_start; /* 12 4 */ /* size: 16, cachelines: 1, members: 6 */ /* last cacheline: 16 bytes */ }; struct xensnd_page_directory { grant_ref_t gref_dir_next_page; /* 0 4 */ grant_ref_t gref[1]; /* 4 4 */ /* size: 8, cachelines: 1, members: 2 */ /* last cacheline: 8 bytes */ }; struct xensnd_rw_req { uint32_t offset; /* 0 4 */ uint32_t len; /* 4 4 */ /* size: 8, cachelines: 1, members: 2 */ /* last cacheline: 8 bytes */ }; struct xensnd_req { uint16_t id; /* 0 2 */ uint8_t operation; /* 2 1 */ uint8_t stream_idx; /* 3 1 */ uint32_t reserved; /* 4 4 */ union { struct xensnd_open_req open; /* 16 */ struct xensnd_rw_req rw; /* 8 */ uint8_t reserved[24]; /* 24 */ } op; /* 8 24 */ /* size: 32, cachelines: 1, members: 5 */ /* last cacheline: 32 bytes */ }; struct xensnd_resp { uint16_t id; /* 0 2 */ uint8_t operation; /* 2 1 */ uint8_t stream_idx; /* 3 1 */ int8_t status; /* 4 1 */ uint8_t reserved[27]; /* 5 27 */ /* size: 32, cachelines: 1, members: 5 */ /* last cacheline: 32 bytes */ }; --------------520A4F102C0445AD0604BF7D Content-Type: text/plain; charset=UTF-8; name="sndif-x64.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sndif-x64.txt" struct xensnd_open_req { uint32_t pcm_rate; /* 0 4 */ uint8_t pcm_format; /* 4 1 */ uint8_t pcm_channels; /* 5 1 */ uint16_t reserved; /* 6 2 */ uint32_t buffer_sz; /* 8 4 */ grant_ref_t gref_directory_start; /* 12 4 */ /* size: 16, cachelines: 1, members: 6 */ /* last cacheline: 16 bytes */ }; struct xensnd_page_directory { grant_ref_t gref_dir_next_page; /* 0 4 */ grant_ref_t gref[1]; /* 4 4 */ /* size: 8, cachelines: 1, members: 2 */ /* last cacheline: 8 bytes */ }; struct xensnd_rw_req { uint32_t offset; /* 0 4 */ uint32_t len; /* 4 4 */ /* size: 8, cachelines: 1, members: 2 */ /* last cacheline: 8 bytes */ }; struct xensnd_req { uint16_t id; /* 0 2 */ uint8_t operation; /* 2 1 */ uint8_t stream_idx; /* 3 1 */ uint32_t reserved; /* 4 4 */ union { struct xensnd_open_req open; /* 16 */ struct xensnd_rw_req rw; /* 8 */ uint8_t reserved[24]; /* 24 */ } op; /* 8 24 */ /* size: 32, cachelines: 1, members: 5 */ /* last cacheline: 32 bytes */ }; struct xensnd_resp { uint16_t id; /* 0 2 */ uint8_t operation; /* 2 1 */ uint8_t stream_idx; /* 3 1 */ int8_t status; /* 4 1 */ uint8_t reserved[27]; /* 5 27 */ /* size: 32, cachelines: 1, members: 5 */ /* last cacheline: 32 bytes */ }; --------------520A4F102C0445AD0604BF7D Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --------------520A4F102C0445AD0604BF7D--