* Paravitrualization drivers query [not found] <CANS8LXW26tg3LAy2G0pJWiTtNGGsFn4tkfezSo5NvQZGgaUGsQ@mail.gmail.com> @ 2017-07-20 14:59 ` shishir tiwari 2017-07-20 16:50 ` Wei Liu 0 siblings, 1 reply; 5+ messages in thread From: shishir tiwari @ 2017-07-20 14:59 UTC (permalink / raw) To: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 453 bytes --] Hi I am trying understand Xen Pv drivers and i writing my own pv fronend and backend driver. 1. For driver internal communication how do i create/write node in backend driver and how to read in fronted drivers. 2.how do i create one shared page in backend driver to write/read data in frontend driver. I gone-through kernel code and but its tittle bit confusing to me. someone share set api for this it would help me lot. Thanks Shishir tiwari [-- Attachment #1.2: Type: text/html, Size: 524 bytes --] [-- Attachment #2: Type: text/plain, Size: 127 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Paravitrualization drivers query 2017-07-20 14:59 ` Paravitrualization drivers query shishir tiwari @ 2017-07-20 16:50 ` Wei Liu [not found] ` <CANS8LXV9Tu9YciUr0M9EOzY53ha9QFtwW4SDcrQ5mKmPNYm=0A@mail.gmail.com> 0 siblings, 1 reply; 5+ messages in thread From: Wei Liu @ 2017-07-20 16:50 UTC (permalink / raw) To: shishir tiwari; +Cc: Wei Liu, xen-devel On Thu, Jul 20, 2017 at 08:29:48PM +0530, shishir tiwari wrote: > Hi > > I am trying understand Xen Pv drivers and i writing my own pv fronend and > backend driver. > > 1. For driver internal communication how do i create/write node in backend > driver and how to read in fronted drivers. > 2.how do i create one shared page in backend driver to write/read data in > frontend driver. > Depending on where your driver lives (kernel or userspace), the APIs are going to be different. > I gone-through kernel code and but its tittle bit confusing to me. Which bits do you find confusing? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CANS8LXV9Tu9YciUr0M9EOzY53ha9QFtwW4SDcrQ5mKmPNYm=0A@mail.gmail.com>]
[parent not found: <CANS8LXVU_M7ezMuP5VmYgWo5e6GLBNedoR-u2TSHQdkQE8thhQ@mail.gmail.com>]
* Re: Paravitrualization drivers query [not found] ` <CANS8LXVU_M7ezMuP5VmYgWo5e6GLBNedoR-u2TSHQdkQE8thhQ@mail.gmail.com> @ 2017-07-21 7:12 ` shishir tiwari 2017-07-21 7:34 ` Dongli Zhang 2017-07-21 8:22 ` Wei Liu 0 siblings, 2 replies; 5+ messages in thread From: shishir tiwari @ 2017-07-21 7:12 UTC (permalink / raw) To: Wei Liu; +Cc: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 776 bytes --] > Hi > > I am trying understand Xen Pv drivers and i writing my own pv fronend and > backend driver. > > 1. For driver internal communication how do i create/write node in backend > driver and how to read in fronted drivers. > 2.how do i create one shared page in backend driver to write/read data in > frontend driver. > >Depending on where your driver lives >(kernel or userspace), the APIs are >going to be different. My driver will be in kernel space. I want to create some Node and shared page or queue. So I can transfer data for domu to dom0. > I gone-through kernel code and but its tittle bit confusing to me. >>Which bits do you find confusing? I am not able to understand who first create Node and shared memory by xen or domO or may be by frontend drivers [-- Attachment #1.2: Type: text/html, Size: 1640 bytes --] [-- Attachment #2: Type: text/plain, Size: 127 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Paravitrualization drivers query 2017-07-21 7:12 ` shishir tiwari @ 2017-07-21 7:34 ` Dongli Zhang 2017-07-21 8:22 ` Wei Liu 1 sibling, 0 replies; 5+ messages in thread From: Dongli Zhang @ 2017-07-21 7:34 UTC (permalink / raw) To: shishir tiwari, xen-devel; +Cc: Wei Liu On 07/21/2017 03:12 PM, shishir tiwari wrote: > > > Hi > > > > I am trying understand Xen Pv drivers and i writing my own pv fronend and > > backend driver. > > > > 1. For driver internal communication how do i create/write node in backend > > driver and how to read in fronted drivers. > > 2.how do i create one shared page in backend driver to write/read data in > > frontend driver. > > > > >Depending on where your driver lives >(kernel or userspace), the APIs are > >going to be different. > > > My driver will be in kernel space. I want to create some Node and shared page or > queue. So I can transfer data for domu to dom0. Hi Shishir I suggest you read about drivers/net/xen-netfront.c and drivers/net/xen-netback/* in linux kernel. You would rely on xenbus/xenstore to read/write node in frontend or backend and the corresponding APIs are xenbus_write, xenbus_printf, xenbus_read, etc. To create shared page between frontend and backend, you create use grant tale mechanism. Generally, each grant table reference is used to indicate one shared memory page. The frontend allocates a page to share and bind this page to a grant table reference. This reference is then passed to backend via xenstore or ring buffer. Backend maps the shared page with this reference via APIs like gnttab_map_refs(). I suggest you read about the book "Definitive Guide to Xen Hypervisor" and read about linux paravirtual driver code. Dongli Zhang > > > > I gone-through kernel code and but its tittle bit confusing to me. > > >>Which bits do you find confusing? > > > I am not able to understand who first create Node and shared memory by xen or > domO or may be by frontend drivers > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > https://lists.xen.org/xen-devel > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Paravitrualization drivers query 2017-07-21 7:12 ` shishir tiwari 2017-07-21 7:34 ` Dongli Zhang @ 2017-07-21 8:22 ` Wei Liu 1 sibling, 0 replies; 5+ messages in thread From: Wei Liu @ 2017-07-21 8:22 UTC (permalink / raw) To: shishir tiwari; +Cc: Wei Liu, xen-devel On Fri, Jul 21, 2017 at 12:42:04PM +0530, shishir tiwari wrote: > > Hi > > > > I am trying understand Xen Pv drivers and i writing my own pv fronend and > > backend driver. > > > > 1. For driver internal communication how do i create/write node in backend > > driver and how to read in fronted drivers. > > 2.how do i create one shared page in backend driver to write/read data in > > frontend driver. > > > > >Depending on where your driver lives >(kernel or userspace), the APIs are > >going to be different. > > > My driver will be in kernel space. I want to create some Node and shared > page or queue. So I can transfer data for domu to dom0. > > > > I gone-through kernel code and but its tittle bit confusing to me. > > >>Which bits do you find confusing? > > > I am not able to understand who first create Node and shared memory by xen > or domO or may be by frontend drivers The nodes are first created by the toolstack, then filled in by backend and frontend. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-21 8:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CANS8LXW26tg3LAy2G0pJWiTtNGGsFn4tkfezSo5NvQZGgaUGsQ@mail.gmail.com>
2017-07-20 14:59 ` Paravitrualization drivers query shishir tiwari
2017-07-20 16:50 ` Wei Liu
[not found] ` <CANS8LXV9Tu9YciUr0M9EOzY53ha9QFtwW4SDcrQ5mKmPNYm=0A@mail.gmail.com>
[not found] ` <CANS8LXVU_M7ezMuP5VmYgWo5e6GLBNedoR-u2TSHQdkQE8thhQ@mail.gmail.com>
2017-07-21 7:12 ` shishir tiwari
2017-07-21 7:34 ` Dongli Zhang
2017-07-21 8:22 ` Wei Liu
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).