Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1628904ybe; Tue, 3 Sep 2019 00:53:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvt5mUqb+sriYqwv7Nd2283H0KTbh4eR1MqatZjAYLrqAtAz4WalcfsTtflPtDG9wdw+j9 X-Received: by 2002:aa7:8498:: with SMTP id u24mr39327857pfn.61.1567497230722; Tue, 03 Sep 2019 00:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567497230; cv=none; d=google.com; s=arc-20160816; b=wkEdfTA45dDlPYYk6/IG8iIUlXY9gSn+CNczf5Ym/DP7UyEaGzztgFQo36yft/sNFt NXf/bX48xoVL1SmmVSuAgpgvCAXGzv/SJcEFM+ZfNzmomDmULwjAtmsxnKogBuJUHbTc QRSkOwGOOlVjKRT6r0Laccwno/H2dUERR/RHK7nuy4CRM/44q7Jo8ShogX2VNGtUTFRJ MczH/CrkAJxIcsJl8iM0aGGtBqNl6z3XvOG+wjVAJRP2FBv9Thk47Xka5YbopTOTxJ08 4WKyIc/t/0Ga9fdIIiuxdCv2RWf82qtGIouhcTulm7odimLT34nQ2wBXDqSPR+45HfgY qakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xgXUEt0EG11zEupkHnOGVQFJLT+xonOin/Bks/3F7us=; b=CdTMEMSDxqyEq/31LE44xYY+fz+3C+Ts2fNMs9JOsvmf5tlDR6BS/OeWjG4vsQm+hr /27M8GvBYEd5mTGldutqtgIiDzGNw1jg+uHmVKaGn0xPQXL+M/EDReZYe6PScRYcrqry JH5ZtvA0VshY2Kh2baEU+gm7uz9KyczXJ6q4DxdkJUIp2GOcziS473D75M5cwgwMi7Gq yObriK39E3/1EzTsYdWKChQF9GvFFYWGLB8bW4IPRaol+ol2bePrOq6FssKFw8oax+kH bYDt3NIgN6d81GXGcSuFyAHulXZwmaOFMaU3aen2M1m0kR8iKrOywMDPmBTLVC4vFqDv SE/A== 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 j185si13373902pge.91.2019.09.03.00.53.35; Tue, 03 Sep 2019 00:53:50 -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 S1728057AbfICHwb (ORCPT + 99 others); Tue, 3 Sep 2019 03:52:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55610 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbfICHwb (ORCPT ); Tue, 3 Sep 2019 03:52:31 -0400 Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (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 D54E22A09A2 for ; Tue, 3 Sep 2019 07:52:30 +0000 (UTC) Received: by mail-qk1-f200.google.com with SMTP id k68so18191314qkb.19 for ; Tue, 03 Sep 2019 00:52:30 -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; bh=xgXUEt0EG11zEupkHnOGVQFJLT+xonOin/Bks/3F7us=; b=dLmsJ1JL+vAUWXQGzkRSlYkrF7WstJ33903eoBEzX7t165aMbRT4AZmyamkDKJMu77 WjtPy//l8nRqvuViv6V8ChKimSQH5GtRZ2I3TUHBaEfvdoIeQrY16DAJMQ7wbPRZPf0R akCulXfJRzhkJm//4BuHjLV3g82LGmOfT/cA/eIA8kpAQkXU0+wtu0z6jpgA2RWJU1bg gRFgwSe8CgKPFyn5z31uancz6ohpCm76u9KrT8FkByNfiRvMV3+rWGYqYUrwhdzgPss/ 4LZu0DW++kct2RFI4VdFs6aZfQQe9LZYJZ1rlXY8lND6O6ccHBt4jEPtgTzolBqG7JgZ ELHA== X-Gm-Message-State: APjAAAVlItYUiAT6r7O+PZZtpaUYrO9nQMRJ885SXQkfIXF4TVTHqiwa D6o2TS+zxErma2g/6Th0tn+iaBkiXyjfPDjQdWNsy3+cQuiVDhI7W0klTw0+XsqaMIaUg99/HxA TlAhnkT9eKgjqRaXWDy9Mn3b5 X-Received: by 2002:a37:5844:: with SMTP id m65mr11138654qkb.8.1567497150226; Tue, 03 Sep 2019 00:52:30 -0700 (PDT) X-Received: by 2002:a37:5844:: with SMTP id m65mr11138647qkb.8.1567497150074; Tue, 03 Sep 2019 00:52:30 -0700 (PDT) Received: from redhat.com (bzq-79-180-62-110.red.bezeqint.net. [79.180.62.110]) by smtp.gmail.com with ESMTPSA id d45sm5358006qtc.70.2019.09.03.00.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 00:52:29 -0700 (PDT) Date: Tue, 3 Sep 2019 03:52:24 -0400 From: "Michael S. Tsirkin" To: Stefano Garzarella Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Hajnoczi , "David S. Miller" , virtualization@lists.linux-foundation.org, Jason Wang , kvm@vger.kernel.org Subject: Re: [PATCH v4 1/5] vsock/virtio: limit the memory used per-socket Message-ID: <20190903034747-mutt-send-email-mst@kernel.org> References: <20190730093539.dcksure3vrykir3g@steredhat> <20190730163807-mutt-send-email-mst@kernel.org> <20190801104754.lb3ju5xjfmnxioii@steredhat> <20190801091106-mutt-send-email-mst@kernel.org> <20190801133616.sik5drn6ecesukbb@steredhat> <20190901025815-mutt-send-email-mst@kernel.org> <20190901061707-mutt-send-email-mst@kernel.org> <20190902095723.6vuvp73fdunmiogo@steredhat> <20190903003823-mutt-send-email-mst@kernel.org> <20190903074554.mq6spyivftuodahy@steredhat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190903074554.mq6spyivftuodahy@steredhat> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 09:45:54AM +0200, Stefano Garzarella wrote: > On Tue, Sep 03, 2019 at 12:39:19AM -0400, Michael S. Tsirkin wrote: > > On Mon, Sep 02, 2019 at 11:57:23AM +0200, Stefano Garzarella wrote: > > > > > > > > Assuming we miss nothing and buffers < 4K are broken, > > > > I think we need to add this to the spec, possibly with > > > > a feature bit to relax the requirement that all buffers > > > > are at least 4k in size. > > > > > > > > > > Okay, should I send a proposal to virtio-dev@lists.oasis-open.org? > > > > How about we also fix the bug for now? > > This series unintentionally fix the bug because we are introducing a way > to split the packet depending on the buffer size ([PATCH 4/5] vhost/vsock: > split packets to send using multiple buffers) and we removed the limit > to 4K buffers ([PATCH 5/5] vsock/virtio: change the maximum packet size > allowed). > > I discovered that there was a bug while we discussed memory accounting. > > Do you think it's enough while we introduce the feature bit in the spec? > > Thanks, > Stefano Well locking is also broken (patch 3/5). It seems that 3/5 and 4/5 work by themselves, right? So how about we ask Dave to send these to stable? Also, how about 1/5? Also needed for stable? -- MST