Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4760060imm; Mon, 11 Jun 2018 18:58:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLjvety9O3weBDeN0MLd9y7V/Ndhv04aaWHcgr8zLZjD8XSJxedWgPlE6XWIQrkPHLZ9N75 X-Received: by 2002:a17:902:b08a:: with SMTP id p10-v6mr137875plr.0.1528768724926; Mon, 11 Jun 2018 18:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528768724; cv=none; d=google.com; s=arc-20160816; b=Aldd1IOMWPNObfJgcN+1//GZxbB/2/uGvaf2nCKbxuocUrh1lF9A4/GXgKGuj1TJMt 6PG/EhctRYDo7ziBQtPXhww05eSt+uTz7s2X8pn6HQPY3h4Wr4gdqsXwLT86x/MWzXV4 Zna1vuXpSsQBZ2NsZLCWoOgXtM7FbzheRTnvN3HWpX1tU4HcznvoSvUiOcUzfvjB0z9P 1yhylGb4BoL3icB79p0hhjO4coH0Kvrw+K1UcNSrR/I/nHKrzDH90jcwInkXSWuDV7SA CzHdJUvLa4afKNr7DZwHRL61WIkQmk8+cCqrUsgG8NiNGRv3fzL72+qDRhbcbrgpWmS1 suoQ== 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 :arc-authentication-results; bh=EjOxbYXgC5FFbRdGATjnN6n1nljyVr139MOoi95VZJY=; b=oqdlNNrqqj50RCGzv6kylgE22bNgVwk10dXbnZaTYLYtsRBO2C1d9OZJ3GuD3oFvEf tPrMlJ/RC6h/J9rrLOO/i+ktlgaJjHRPYemLQAEhYBhRpM0p8UdsoyAPcggMlbrMI/do UyhiVNvSQI/cMILRlPmn7ScnqSs1sRYa82HU4sZEVkXwoZFvSXqQ5TZ7ny4DvJmOU0Hd PWO9vhVE+k+G7UPSGWoUJTD1cDOWKjd9dzYixFv4cMvnDMM52X3Ze/nShb7H8HN/topU dlEzA3ibeoHbUgZ+EIGP0MZNPGuxK0easGnb5RawY5m5EXPRqkiOx3dfCLZ/NYPdNEue UhUw== 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 f2-v6si40365775pli.6.2018.06.11.18.58.28; Mon, 11 Jun 2018 18:58:44 -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 S935016AbeFLB5y (ORCPT + 99 others); Mon, 11 Jun 2018 21:57:54 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934894AbeFLB5w (ORCPT ); Mon, 11 Jun 2018 21:57:52 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DF9357D84D; Tue, 12 Jun 2018 01:57:51 +0000 (UTC) Received: from redhat.com (ovpn-120-248.rdu2.redhat.com [10.10.120.248]) by smtp.corp.redhat.com (Postfix) with SMTP id 5EC3B39D60; Tue, 12 Jun 2018 01:57:51 +0000 (UTC) Date: Tue, 12 Jun 2018 04:57:51 +0300 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: KVM list , virtualization , Network Development , Linux Kernel Mailing List , Andrew Morton , Bjorn Andersson , wei.w.wang@intel.com, nilal@redhat.com Subject: Re: [PULL] vhost: cleanups and fixes Message-ID: <20180612043723-mutt-send-email-mst@kernel.org> References: <20180611192353-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 12 Jun 2018 01:57:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 12 Jun 2018 01:57:51 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 11:32:41AM -0700, Linus Torvalds wrote: > On Mon, Jun 11, 2018 at 9:24 AM Michael S. Tsirkin wrote: > > > > virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT > > Is this really a good idea? Well knowing which pages are unused does seem to be useful. Do you refer to this generally or to the idea of scanning the free list, or to the specific implementation issues you listed below? > Plus it seems entirely broken. > > The report_pfn_range() callback is done under the zone lock, but > virtio_balloon_send_free_pages() (which is the only callback used that > I can find) does add_one_sg(), which does virtqueue_add_inbuf(vq, &sg, > 1, vq, GFP_KERNEL); > > So now we apparently do a GFP_KERNEL allocation insider the mm zone > lock, which is broken on just _so_ many levels. > > Pulled and then unpulled again. > > Either somebody needs to explain why I'm wrong and you can re-submit > this, or this kind of garbage needs to go away. > > I do *not* want to be in the situation where I pull stuff from the > virtio people that adds completely broken core VM functionality. > > Because if I'm in that situation, I will stop pulling from you guys. > Seriously. You have *no* place sending me broken shit that is outside > the virtio layer. > > Subsystems that break code MM will get shunned. You just aren't > important enough to allow you breaking code VM. > > Linus So no, it doesn't do any allocations - GFP_KERNEL or otherwise, but I agree how it might be confusing. So I'll drop this for now, but it would be nice if there is a bit more direction on this feature since I know several people are trying to work on this. -- MST