diff options
author | Stefano Stabellini <sstabellini@kernel.org> | 2017-10-30 23:40:55 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-10-31 14:05:53 +0100 |
commit | cb1c7d9bbc878a67af270ccd2d23f6d1450579db (patch) | |
tree | 6c8da668a5439ca54d5c6dfb72137c665eb680bc /drivers/xen/pvcalls-front.h | |
parent | xen/pvcalls: implement socket command and handle events (diff) | |
download | linux-cb1c7d9bbc878a67af270ccd2d23f6d1450579db.tar.xz linux-cb1c7d9bbc878a67af270ccd2d23f6d1450579db.zip |
xen/pvcalls: implement connect command
Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for
the active socket.
Introduce fields in struct sock_mapping to keep track of active sockets.
Introduce a waitqueue to allow the frontend to wait on data coming from
the backend on the active socket (recvmsg command).
Two mutexes (one of reads and one for writes) will be used to protect
the active socket in and out rings from concurrent accesses.
Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen/pvcalls-front.h')
-rw-r--r-- | drivers/xen/pvcalls-front.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/pvcalls-front.h b/drivers/xen/pvcalls-front.h index b7dabedf5ccb..63b0417c31d3 100644 --- a/drivers/xen/pvcalls-front.h +++ b/drivers/xen/pvcalls-front.h @@ -4,5 +4,7 @@ #include <linux/net.h> int pvcalls_front_socket(struct socket *sock); +int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, + int addr_len, int flags); #endif |