Skip to content
  • Stefano Stabellini's avatar
    xen/pvcalls: implement bind command · 331a63e6
    Stefano Stabellini authored
    
    
    Allocate a socket. Track the allocated passive sockets with a new data
    structure named sockpass_mapping. It contains an unbound workqueue to
    schedule delayed work for the accept and poll commands. It also has a
    reqcopy field to be used to store a copy of a request for delayed work.
    Reads/writes to it are protected by a lock (the "copy_lock" spinlock).
    Initialize the workqueue in pvcalls_back_bind.
    
    Implement the bind command with inet_bind.
    
    The pass_sk_data_ready event handler will be added later.
    
    Signed-off-by: default avatarStefano Stabellini <stefano@aporeto.com>
    Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
    CC: boris.ostrovsky@oracle.com
    CC: jgross@suse.com
    Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
    331a63e6