Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp869280ybl; Thu, 22 Aug 2019 06:12:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjwQep/pnBEGYxK4lwtK2+VgOYGPXqlr98znWtChM7QcHSsd9etGLdRJ0fQ2zUZX4Lm2P/ X-Received: by 2002:a63:6a81:: with SMTP id f123mr34269684pgc.348.1566479537928; Thu, 22 Aug 2019 06:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566479537; cv=none; d=google.com; s=arc-20160816; b=p0VEc+QwXWiVw25cEgwDlzqMnsI+tUKPtMRvICZ+Cd4fjeSJDD9xxfpDwCGDc1CZ9J 8EvnZQ8FyIK7s/Ihqdi5wRy5CxHVXG57Ahyv+QgSwgHHmS0pmqi7IDjKXINtzSAo/v/g skDY50bf0w6cCyrnmMJR1IOTGTd2oVKZVy5ngXg2t6Md2PJXF6wsjAfG52nxh64y+sms 9oQ0EHQ5oaaakGJRpMyIl29QTkxfeB6C67KV3TU8wfAyHswzWOPLJIcel63qE1Ox/m6h rtnQ6RvdOxKwIsVe/vPxn0CYGKR3Y3JeAguqsSFdbIc2okKEBHN5Uo1fbnA0x6Po0LCL ribQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+QZ6pW149hcLIfsZZS+dKkZglSU+Xi8vHC91tSDHm3c=; b=AAsw3yc2m3TBfmbvh6ihfQbvkTYjzmhg+k/lt5uNqKWmnauCFy+AWyZ0Dh7Mt+XdOn UTViF3xhrnJi1Z4/3ykMVSz227y9gmzfoXCkIAFLcZqMqHaWFaqaPKts8y7gPhxOpsHf 4CyQlloI17cepXoWxOOHJsV/ptIQbRria8jRIC3POCom1wvs8La6PYqbVHqpTINnp4yl uiLJCbY7g3iw4h1QEznu55U6esiKdPm8142YweL9FDdITqzIgi1FA2oaXVLrU88wMDXg GKeroeV8Q8PVLWninGNkt/K2KznJaheDQZq20z0sIsgNBbRpn3+UQASNMhjKyRC73QAL Z67w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si17966205plk.180.2019.08.22.06.12.01; Thu, 22 Aug 2019 06:12:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733030AbfHVKIn (ORCPT + 99 others); Thu, 22 Aug 2019 06:08:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46140 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732938AbfHVKIk (ORCPT ); Thu, 22 Aug 2019 06:08:40 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B172AC08EC17 for ; Thu, 22 Aug 2019 10:08:39 +0000 (UTC) Received: by mail-wm1-f71.google.com with SMTP id u21so2743440wml.4 for ; Thu, 22 Aug 2019 03:08:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+QZ6pW149hcLIfsZZS+dKkZglSU+Xi8vHC91tSDHm3c=; b=SgQkGq8Niq6XFZY2nHxX+A5Z0J3bu8oSplBLFwPQbMJdSOgO9g9+OaHlg1KNgeb38l aJSucUIm5ZG0WPUgOTaOZWoHQSU665XpZegTibOyQVyJY3p/Irqfi/9HKPkA3ZrNVutW 9Q4GHa6S1TF5LgiuUn4lD+pUpLqjRKttvidgVQcJPTQNvLDIDk5Dx01W1Tp+SPuJthBm gAM1LpWVsQ3FMIK/wXGoqsokec3ecB6NEtycboNhJWeDCGfnxSmd9vVJ+wA5+LpqSVr0 11PpmNwur1zt4G/nOSnjZ4K5gw5l2Pp4Kau3tANLJ0agd0qffKgUHnST9Mvh5dbzO2l5 k2lA== X-Gm-Message-State: APjAAAU3pWAwx+eVaoqiFVdTWgNFIm4VcfgV1J2/shpjAxQoh/CDLYIo JsRap3uG2A4zBlcWnipN7laLyBLnQOj4rHLLcEkP7COuPYDVe1aakA1MiIpuD3aB5cluH5ctthH r0g9ffjRmr8lsycqfyfN4md1d X-Received: by 2002:a1c:7513:: with SMTP id o19mr5210670wmc.126.1566468518282; Thu, 22 Aug 2019 03:08:38 -0700 (PDT) X-Received: by 2002:a1c:7513:: with SMTP id o19mr5210642wmc.126.1566468518041; Thu, 22 Aug 2019 03:08:38 -0700 (PDT) Received: from steredhat (host80-221-dynamic.18-79-r.retail.telecomitalia.it. [79.18.221.80]) by smtp.gmail.com with ESMTPSA id o129sm7596453wmb.41.2019.08.22.03.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 03:08:37 -0700 (PDT) Date: Thu, 22 Aug 2019 12:08:35 +0200 From: Stefano Garzarella To: Stefan Hajnoczi , Jorgen Hansen Cc: netdev@vger.kernel.org, kvm@vger.kernel.org, Dexuan Cui , virtualization@lists.linux-foundation.org, "David S. Miller" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/11] vsock_test: skip read() in test_stream*close tests on a VMCI host Message-ID: <20190822100835.7u27ijlaydk72orv@steredhat> References: <20190801152541.245833-1-sgarzare@redhat.com> <20190801152541.245833-11-sgarzare@redhat.com> <20190820083203.GB9855@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820083203.GB9855@stefanha-x1.localdomain> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 09:32:03AM +0100, Stefan Hajnoczi wrote: > On Thu, Aug 01, 2019 at 05:25:40PM +0200, Stefano Garzarella wrote: > > When VMCI transport is used, if the guest closes a connection, > > all data is gone and EOF is returned, so we should skip the read > > of data written by the peer before closing the connection. > > All transports should aim for identical semantics. I think virtio-vsock > should behave the same as VMCI since userspace applications should be > transport-independent. Yes, it is a good point! > > Let's view this as a vsock bug. Is it feasible to change the VMCI > behavior so it's more like TCP sockets? If not, let's change the > virtio-vsock behavior to be compatible with VMCI. I'm not sure it is feasible to change the VMCI behavior. IIUC reading the Jorgen's answer [1], this was a decision made during the implementation. @Jorgen: please, can you confirm? or not :-) If it is the case, I'll change virtio-vsock to the same behavior. Thanks, Stefano [1] https://patchwork.ozlabs.org/cover/847998/#1831400