Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4251411ybp; Mon, 14 Oct 2019 01:23:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzduUKGweBO7/rYolnOCBZp0fiQtC63mYMqoFnnkMboHimIGj3jiWJfi8muQK5N/AS67gP/ X-Received: by 2002:a50:9eac:: with SMTP id a41mr27023761edf.237.1571041425335; Mon, 14 Oct 2019 01:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571041425; cv=none; d=google.com; s=arc-20160816; b=LLBnFSBa7uKK8MvqwhspkA0DApGdhyUVpegAL4DQ83r5Y7ny5ogReS+qqSn6UwX9CR 87Th2odpuBOaaDgo60xFmMB7rjfXm7LqIMwOg6hwKkPpxe3AD51B6zVH+EHRrTUOczOM IttTKHqgeZX+tyPUMy40UtIZv4QhOlNv9b/5zLFQC0rC/yt6iARMchp7TOW7/0eGpSW4 vbJ44jmX6m/jDphH5IkgMlR+f3LoWeWNuWvrSdKPmwa/4maC6I9vIx3yTBZduTTdYtPU UkXYS/UFXJi5boD07U/noFGNFWzgQ6GovQu7N30OHk+9EnBCC8LbsJbkovpRQ19Q4yCE uSLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=cylf7H6RzDWvFmEht+w7LwgX6XH4Ym/JZd9eybHf0qs=; b=liFy2/KCbbRgT++2q9dKfCglSi89DDclpHVGyUP5kBvLxpzoW4Z8gRVeZJme09rmJK hCevPVC+6Tud60MUFIDjXE5hEBLEQoQGq9cpyUf56xeNueLly+SMsiMl0jwapD46dKFy 1JNfnZyG66n8RWiVX9kLw7NNhjgMIITJaqI3IMkjrlYd83c2EbBSivbpMTAxHlEm7UK5 NG1Us49MWpuVnvppZKiZ2+1m/zbMlhLYbofDa478/ah0PA/s+b8BVkk9IZkrX5WqFomD xZamaOqtEQEVRWGDb7nVSjCdHxT+pgfxaEZ1P4G113XrSEypoy0qWLG8o51TQMGGq0Z5 5x6A== 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 e49si13102122edb.87.2019.10.14.01.23.22; Mon, 14 Oct 2019 01:23:45 -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 S1730397AbfJNIVw (ORCPT + 99 others); Mon, 14 Oct 2019 04:21:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50490 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729923AbfJNIVw (ORCPT ); Mon, 14 Oct 2019 04:21:52 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65465859FC; Mon, 14 Oct 2019 08:21:52 +0000 (UTC) Received: from [10.72.12.241] (ovpn-12-241.pek2.redhat.com [10.72.12.241]) by smtp.corp.redhat.com (Postfix) with ESMTP id CD2ED1001938; Mon, 14 Oct 2019 08:21:39 +0000 (UTC) Subject: Re: [PATCH v4 1/5] vsock/virtio: limit the memory used per-socket To: Stefan Hajnoczi , Stefano Garzarella Cc: "Michael S. Tsirkin" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , virtualization@lists.linux-foundation.org, kvm References: <20190717113030.163499-1-sgarzare@redhat.com> <20190717113030.163499-2-sgarzare@redhat.com> <20190729095956-mutt-send-email-mst@kernel.org> <20190830094059.c7qo5cxrp2nkrncd@steredhat> <20190901024525-mutt-send-email-mst@kernel.org> <20191014081724.GD22963@stefanha-x1.localdomain> From: Jason Wang Message-ID: <2398c960-b6d7-8af3-fa25-d75344335db7@redhat.com> Date: Mon, 14 Oct 2019 16:21:35 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191014081724.GD22963@stefanha-x1.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 14 Oct 2019 08:21:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/14 下午4:17, Stefan Hajnoczi wrote: > SO_VM_SOCKETS_BUFFER_SIZE might have been useful for VMCI-specific > applications, but we should use SO_RCVBUF and SO_SNDBUF for portable > applications in the future. Those socket options also work with other > address families. > > I guess these sockopts are bypassed by AF_VSOCK because it doesn't use > the common skb queuing code in net/core/sock.c:(. But one day we might > migrate to it... > > Stefan +1, we should really consider to reuse the exist socket mechanism instead of re-inventing wheels. Thanks