xen/pvcalls: handle commands from the frontend
authorStefano Stabellini <sstabellini@kernel.org>
Thu, 6 Jul 2017 18:00:00 +0000 (11:00 -0700)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 31 Aug 2017 13:45:55 +0000 (09:45 -0400)
commitb1efa69317e5e7e813620af180f262a0fc1db47c
treed538393302d418beb79f502447520514e02bab2a
parentd0e4d560c2433d29d11219567958b12bfe596d22
xen/pvcalls: handle commands from the frontend

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 for now.

[ boris: fixed whitespaces ]

Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/pvcalls-back.c