From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omkar Bolla Subject: Re: Xen PV: Sample new PV driver for buffer sharing between domains Date: Thu, 27 Sep 2018 16:05:24 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4428069996853167348==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To: Oleksandr_Andrushchenko@epam.com Cc: jgross@suse.com, xen-devel@lists.xensource.com, andr2000@gmail.com, lars.kurth.xen@gmail.com, Julien Grall , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --===============4428069996853167348== Content-Type: multipart/alternative; boundary="00000000000031cf0b0576d7e6c5" --00000000000031cf0b0576d7e6c5 Content-Type: text/plain; charset="UTF-8" Hi, Sorry, I forgot, I used code from github chapter [2] from that link, and I just changed name "mydevice" to "vdevb" > Error 13 is EACCESS. I guess the access rights of the Xenstore nodes > are not sufficient to write the needed entries. Where I have to provide access rights, i.e from Kernel code or from from command line in domain-0 or modify in xen source? Any thing that I have to do/change in xenbits xen-4.8 sources code, to add new PV device? > Did you modify Xen tools (xl/libxl) for adding the new device type? No, is it needed to modify some thing in xl/libxl for adding new device type? > If not you need to setup the Xenstore nodes manually. Setup manually Xenstore means, using commands? Thanks, Omkar B On Thu, Sep 27, 2018 at 3:50 PM Oleksandr Andrushchenko < Oleksandr_Andrushchenko@epam.com> wrote: > On 09/27/2018 01:16 PM, Juergen Gross wrote: > > On 27/09/2018 12:07, Oleksandr Andrushchenko wrote: > >> Hi, > >> On 09/27/2018 12:39 PM, Lars Kurth wrote: > >>> Adding a few people who have recently been working on PV drivers, as > >>> well as Julien > >>> Lars > >>> > >>>> On 27 Sep 2018, at 06:44, Omkar Bolla > >>>> >>>> > wrote: > >>>> > >>>> Hi, > >>>> > >>>> I am using Debian as Domain-0 and Debian as Domain-U on Hikey960 > >>>> platform(ARMv8) and using Xen-4.8 stable release. Here I want to > >>>> create a PV frontend and backend to share memory between Domain-0 and > >>>> Domain-U. > >>>> > >>>> > >>>> > >>>> I used below link to create frontend and backend, > >>>> https://fnordig.de/2016/12/02/xen-a-backend-frontend-driver-example/ > >> The link above has another link to github [1] with 2 chapters. And it > >> looks like you have > >> already modified the sources ("mydevice" -> "vdevb" at least). > >> So, what are the sources you are using? > >> > >> You could probably take a look at the relatively small vkbd frontend > >> driver [2] > >> to get some hints. > >>>> But I am facing below errors while adding device vdevb to xenstore. > >>>> Below errors I am getting from xenbus_switch_state(). > >>>> vdevb vdevb-0: failed to write error node for device/vdevb/0 (13 > >>>> writing new state) > > Error 13 is EACCESS. I guess the access rights of the Xenstore nodes > > are not sufficient to write the needed entries. > > > > Did you modify Xen tools (xl/libxl) for adding the new device type? > > If not you need to setup the Xenstore nodes manually. > There is a script [1] which comes with the example implementation, > so I believe Omkar uses it with "mydevice" -> "vdevb" change > > > > > > Juergen > [1] > > https://github.com/badboy/xen-split-driver-example/blob/master/chapter02/activate.sh > -- This message contains confidential information and is intended only for the individual(s) named. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this mail and attached file/s is strictly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. --00000000000031cf0b0576d7e6c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

=
Sorry, I = forgot, I used code from github chapter [2] from that link, and
I just changed name &= quot;mydevice"=C2=A0 to "vdevb"

> Error 13 is EAC= CESS. I guess the access rights of the Xenstore nodes
> are not suffici= ent to write the needed entries.
Wh= ere I have to provide access rights, i.e from Kernel code or from from comm= and line in domain-0 or modify in xen source?
Any thing that I have to do/change = in xenbits xen-4.8 sources code, to add new PV device?

> Did you modify Xen tools (xl/li= bxl) for adding the new device type?
No, is it needed to modify some thing= in xl/libxl for adding new device type?

> If not you need to setup the Xenstore nodes m= anually.
Setup manually X= enstore means, using commands?

Thanks,
Omkar B




On Thu, Sep 27, 2018 at 3:50 PM Oleksandr Andrushchenko <Oleksandr_Andrushchenko@e= pam.com> wrote:
On 09/27/201= 8 01:16 PM, Juergen Gross wrote:
> On 27/09/2018 12:07, Oleksandr Andrushchenko wrote:
>> Hi,
>> On 09/27/2018 12:39 PM, Lars Kurth wrote:
>>> Adding a few people who have recently been working on PV drive= rs, as
>>> well as Julien
>>> Lars
>>>
>>>> On 27 Sep 2018, at 06:44, Omkar Bolla
>>>> <omkar.bolla@pathpartnertech.com
>>>> <mailto:omkar.bolla@pathpartnertech.com>> wrote: >>>>
>>>> Hi,
>>>>
>>>> I am using Debian as Domain-0 and Debian as Domain-U on Hi= key960
>>>> platform(ARMv8) and using Xen-4.8 stable release. Here I w= ant to
>>>> create a PV frontend and backend to share memory between D= omain-0 and
>>>> Domain-U.
>>>>
>>>>
>>>>
>>>> I used below link to create frontend and backend,
>>>> https://fnordig= .de/2016/12/02/xen-a-backend-frontend-driver-example/
>> The link above has another link to github [1] with 2 chapters. And= it
>> looks like you have
>> already modified the sources ("mydevice" -> "vde= vb" at least).
>> So, what are the sources you are using?
>>
>> You could probably take a look at the relatively small vkbd fronte= nd
>> driver [2]
>> to get some hints.
>>>> But I am facing below errors while adding device vdevb to = xenstore.
>>>> Below errors I am getting from=C2=A0xenbus_switch_state().=
>>>> vdevb vdevb-0: failed to write error node for device/vdevb= /0 (13
>>>> writing new state)
> Er= ror 13 is EACCESS. I guess the access rights of the Xenstore nodes
> are not sufficient to write the needed entries.
>
> Did you modify Xen tools (xl/libxl) for adding the new device type? > If not you need to setup the Xenstore nodes manually.
There is a script [1] which comes with the example implementation,
so I believe Omkar uses it with "mydevice" -> "vdevb"= ; change
>
>
> Juergen
[1]
https://github.c= om/badboy/xen-split-driver-example/blob/master/chapter02/activate.sh

This message contains confidential information and is intended only for the individual(s) named. If you are not the = intended recipient, you are notified that disclosing, copying, distributing or takin= g any action in reliance on the contents of this mail and attached file/s is stri= ctly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmis= sion cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or cont= ain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mai= l transmission.

--00000000000031cf0b0576d7e6c5-- --===============4428069996853167348== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============4428069996853167348==--