From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753216AbdGFHYa (ORCPT ); Thu, 6 Jul 2017 03:24:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:47044 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752040AbdGFHY3 (ORCPT ); Thu, 6 Jul 2017 03:24:29 -0400 Subject: Re: [PATCH v7 08/18] xen/pvcalls: implement connect command To: Stefano Stabellini , xen-devel@lists.xen.org Cc: linux-kernel@vger.kernel.org, boris.ostrovsky@oracle.com, Stefano Stabellini References: <1499291458-30231-1-git-send-email-sstabellini@kernel.org> <1499291458-30231-8-git-send-email-sstabellini@kernel.org> From: Juergen Gross Message-ID: <6d6ced3f-a659-0210-64bb-13fece829dc5@suse.com> Date: Thu, 6 Jul 2017 09:24:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1499291458-30231-8-git-send-email-sstabellini@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/07/17 23:50, Stefano Stabellini wrote: > Allocate a socket. Keep track of socket <-> ring mappings with a new data > structure, called sock_mapping. Implement the connect command by calling > inet_stream_connect, and mapping the new indexes page and data ring. > Allocate a workqueue and a work_struct, called ioworker, to perform > reads and writes to the socket. > > When an active socket is closed (sk_state_change), set in_error to > -ENOTCONN and notify the other end, as specified by the protocol. > > sk_data_ready and pvcalls_back_ioworker will be implemented later. > > Signed-off-by: Stefano Stabellini Reviewed-by: Juergen Gross Thanks, Juergen