Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3751207ybl; Tue, 20 Aug 2019 01:33:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoqUidPWRwXBC8kpsZz2lW/qTS9mZwhq0/qQRCzsk2woPmFVMhQlI7OFUDpZAfC86w6v/D X-Received: by 2002:a17:90b:28f:: with SMTP id az15mr24808590pjb.18.1566290005418; Tue, 20 Aug 2019 01:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566290005; cv=none; d=google.com; s=arc-20160816; b=j/q4i+N/oG+y6Q/oR9JflsYT3PEAqCuEyOl0nlYGk1zBR+8rKlC5s2bFKAO0msOQue zQBZfD7jsYDWfsxhwGhbJu1ArAoKCQk3KJ0WdWs/iP+ezmlrlbkdmUKgjZ5PsxWjmpQ/ 2Kfkosge8/TugXQR8w4zpr620DNkwixoM5JubqXKRS4HcLEgDMvp6r7OqYRBH5jceMU2 kl6VAQN5HTdRKDkAIOrb2/2+6hpAWWmoAp7UMnllf0LIYX3AtWXA7rt+v0RKUIQlbzp/ RHXhW/yVEjEHLumLihft+YdY9bXC4icW6YXybuVujuFFaIUvM2NJD8guJpOfoX5TQYyE PKog== 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=sZb5kZW+0HJ5xI7nBF02qKxzHNLyhxW3wCT0ChO8/Ls=; b=vdogYulAw0YtTJnHjTJypZBkFdnrW3iSxOnjnXT3ItFeThYn5qXvRHMaR/oRbFRg1H Gog/4f45vJfCRcHeCG7LnLU1qkEHHdDtImzOPntuBJ7MF0jAbJSNHNZCmfr7pW25k3GP obTvupWZmy2UXNRepQG5gtJhQ8BpQ7j9PM9Rn+dJSjTOiyKe9nJlI9jjT8xdOhg5qdXT /uutzK035TdVHT5tG899/RpO1ZCmGLyFclAsoHeOsIw506jm5Rp+7G+wYuyvQA/GoLUh NrOdDYzo5aFowGPynMz0meqbwdkjJmsOPeBFkgwK4p1Rf1w6OGRnprNZ9tCQqXRbnVqd /VHw== 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 h19si8899191pjt.94.2019.08.20.01.33.10; Tue, 20 Aug 2019 01:33:25 -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 S1729444AbfHTIcF (ORCPT + 99 others); Tue, 20 Aug 2019 04:32:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55168 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728842AbfHTIcF (ORCPT ); Tue, 20 Aug 2019 04:32:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E947B300CB24; Tue, 20 Aug 2019 08:32:04 +0000 (UTC) Received: from localhost (ovpn-117-123.ams2.redhat.com [10.36.117.123]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63E448CBE6; Tue, 20 Aug 2019 08:32:04 +0000 (UTC) Date: Tue, 20 Aug 2019 09:32:03 +0100 From: Stefan Hajnoczi To: Stefano Garzarella Cc: netdev@vger.kernel.org, kvm@vger.kernel.org, Dexuan Cui , virtualization@lists.linux-foundation.org, "David S. Miller" , Jorgen Hansen , 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: <20190820083203.GB9855@stefanha-x1.localdomain> References: <20190801152541.245833-1-sgarzare@redhat.com> <20190801152541.245833-11-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qlTNgmc+xy1dBmNv" Content-Disposition: inline In-Reply-To: <20190801152541.245833-11-sgarzare@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Tue, 20 Aug 2019 08:32:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qlTNgmc+xy1dBmNv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. 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. --qlTNgmc+xy1dBmNv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl1bsAIACgkQnKSrs4Gr c8iy2wf9Hf2RT30SVoJTzJ+hX0eVKck7gc8yFdT08PLyaZW9ND3d2J7oYGhT3/kF 3IneL017fwh3nVZ9rcWcVH2ntn7Mq8+I0mTBH24UP0UMLMz/Ieq/6oRj3ySm/UbA 7/RZHJ2+he0dBgOPggnmNBPDTqAytUBaDouuIWJiXYnVX8g82C1qhcckeuIrxbc5 5hQPmjQnSmRVcclubheU+QAqqQbAySFDYbJp36sRGiAyJR31vQJGQWqk+r0uZvlt DT1YTMdU7EfmWoVp4nW2dDMnN+WlZA0qFZ2gv/7/ZiZ0etvXTPN8/owaW3HxTQOJ PPVwBTXGU+LNuAHvJOt9METVQX4+oQ== =YtHX -----END PGP SIGNATURE----- --qlTNgmc+xy1dBmNv--