Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1623964ybe; Tue, 3 Sep 2019 00:48:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzanjGXrzHInTFbdv5jyua2/uNLYYCOWPoRqa3Xyt4Vb1Uhj0Wy44NhkghcaE9RB9pe45er X-Received: by 2002:a17:902:fe01:: with SMTP id g1mr33684716plj.154.1567496887575; Tue, 03 Sep 2019 00:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567496887; cv=none; d=google.com; s=arc-20160816; b=0mEhA2Lc6fvrWDoJqeRt0/iD3QleKsg7TPsiRcOQx//i0eencq2WcR32tywYuJca5o f62wMXVlHXIQ6+ewivVu7AJ2H7kSqleISnkzfFTWZFonoXZ4JO2Ryvyr/dIaqLJx+fNw FjpGNxavVA7z9ZKaD/BU7sJBxM94K6bffgSfm/3oksCeCH8ksLzcnm+SJ/We+LzHo2o0 mebHp0IzvC4TiaeuIkjDcdpjwNoJZnRGMZHE1kyXGuBG7YLcLn2gM8n4v1E/QFIa9Gas REPdRKCy5GEDUhVqzHJxO55N2JYlGWk2lxE9RLOT4Twt1ZVbDahJQmvyv2CFdYc4X/2R l4ng== 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=afLRR+Y6/XWNAyGbBu630m0eglXDmP7UhfuV7wpot38=; b=C7Ojg7BHtvy+vHkG8WycH/R/H1XCSCw7IOYxX+s+sTcdtzIsYokLZiS0EEKFPc+85R 1PPvOiGLCpwIUZkmpET0O9DSVQpskl0TJUCK87S9IGplv3tIcm3nCvVKExuDGY7wHuEo pxEeQHUwzH9/cyv3UUFuLeeTYJG2g3aOF2z9HidOGov38J57fNMrrWzfBN7IQ8dLFChY sPss+/RlUVxzlATzgF6+lGfbETJc4g+lnK4Tn8tFJ+QzJhZG2ZF43G68jTL12PHKYBLj p39xj/HeyWGkrhAw9rQwFM32G4TflCfioh8gR8jZ2kKCEsE3PygytSqy1nzp73VSmsy+ AeMw== 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 q13si14063488pjb.13.2019.09.03.00.47.52; Tue, 03 Sep 2019 00:48:07 -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 S1727658AbfICHqB (ORCPT + 99 others); Tue, 3 Sep 2019 03:46:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41756 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727536AbfICHqA (ORCPT ); Tue, 3 Sep 2019 03:46:00 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (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 B20487BDAC for ; Tue, 3 Sep 2019 07:45:59 +0000 (UTC) Received: by mail-wr1-f69.google.com with SMTP id o11so9957550wrq.22 for ; Tue, 03 Sep 2019 00:45:59 -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=afLRR+Y6/XWNAyGbBu630m0eglXDmP7UhfuV7wpot38=; b=RiFvnDPR3lDt1dYRmP2FXyZBFTO7N7yK2p9ZslIRIcg3RuPPq5+Bz0v/Vgr+bDTED4 Y9j9ywpFVKURXNnqh9C0cwoXcfdR1Bu8Vmtp+yGsOsbg/xcbWnF4F+kGK55AzmXj20r6 jUp9mRt7uE7o02Kt69zDewmsXOMsGqJMvV8LcBnREzl3OL8nciPV54sdqtqd+DpShKh7 nABLqZP43ajd/HGoKhDKaG6J1OP5zSUo3GN/NHf5c9JXuNIZgqDEBQ1BmW0ljL8P3tYO v7Do2bymiOtkGRWxg4a8cwbNrY9LvcjwCIDUu21G7ppQ97ur2pa0b5OICvMzhhxKj5Yn sBlw== X-Gm-Message-State: APjAAAUWWMcrUw+/jhAOBEdTknPowbjjGIgTzm10ZtHFAp5o0JXmhKhT BE8L9y4jZNmIHxx/jM/I2sqcQN+NlENXn/lvZB99JrnBLv93NS2t6SCvEq/s5D0ahzFCCiufCzj sgEEw49MTagG8e9Zv9bQydksU X-Received: by 2002:a1c:984b:: with SMTP id a72mr15750242wme.149.1567496758381; Tue, 03 Sep 2019 00:45:58 -0700 (PDT) X-Received: by 2002:a1c:984b:: with SMTP id a72mr15750224wme.149.1567496758176; Tue, 03 Sep 2019 00:45:58 -0700 (PDT) Received: from steredhat (host170-61-dynamic.36-79-r.retail.telecomitalia.it. [79.36.61.170]) by smtp.gmail.com with ESMTPSA id l62sm41378400wml.13.2019.09.03.00.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 00:45:57 -0700 (PDT) Date: Tue, 3 Sep 2019 09:45:54 +0200 From: Stefano Garzarella To: "Michael S. Tsirkin" 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: <20190903074554.mq6spyivftuodahy@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-Disposition: inline In-Reply-To: <20190903003823-mutt-send-email-mst@kernel.org> 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, 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