Re: [Xen-devel] [PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-15 Thread Stefano Stabellini
On Thu, 15 Jun 2017, Boris Ostrovsky wrote: > On 06/14/2017 05:03 PM, Stefano Stabellini wrote: > > On Mon, 12 Jun 2017, Boris Ostrovsky wrote: > >>> + > >>> static void pvcalls_back_work(struct work_struct *work) > >>> { > >>> + struct pvcalls_fedata *priv = container_of(work, > >>> +

Re: [Xen-devel] [PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-15 Thread Boris Ostrovsky
On 06/14/2017 05:03 PM, Stefano Stabellini wrote: > On Mon, 12 Jun 2017, Boris Ostrovsky wrote: >>> + >>> static void pvcalls_back_work(struct work_struct *work) >>> { >>> + struct pvcalls_fedata *priv = container_of(work, >>> + struct pvcalls_fedata, register_work); >>> + int

Re: [Xen-devel] [PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-14 Thread Stefano Stabellini
On Mon, 12 Jun 2017, Boris Ostrovsky wrote: > > + > > static void pvcalls_back_work(struct work_struct *work) > > { > > + struct pvcalls_fedata *priv = container_of(work, > > + struct pvcalls_fedata, register_work); > > + int notify, notify_all = 0, more = 1; > > + struct

Re: [Xen-devel] [PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-12 Thread Boris Ostrovsky
> + > static void pvcalls_back_work(struct work_struct *work) > { > + struct pvcalls_fedata *priv = container_of(work, > + struct pvcalls_fedata, register_work); > + int notify, notify_all = 0, more = 1; > + struct xen_pvcalls_request req; > + struct xenbus_device

[Xen-devel] [PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-02 Thread Stefano Stabellini
When the other end notifies us that there are commands to be read (pvcalls_back_event), wake up the backend thread to parse the command. The command ring works like most other Xen rings, so use the usual ring macros to read and write to it. The functions implementing the commands are empty stubs