From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Garzarella Subject: Re: [PATCH v4 1/5] vsock/virtio: limit the memory used per-socket Date: Tue, 3 Sep 2019 09:45:54 +0200 Message-ID: <20190903074554.mq6spyivftuodahy__38347.389809654$1567496771$gmane$org@steredhat> References: <20190729143622-mutt-send-email-mst@kernel.org> <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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20190903003823-mutt-send-email-mst@kernel.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: "Michael S. Tsirkin" Cc: kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Stefan Hajnoczi , "David S. Miller" List-Id: virtualization@lists.linuxfoundation.org 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