Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp876752imm; Fri, 15 Jun 2018 07:39:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdQ9NOsGMtE0Gx0oW9D5bKMsNVgkSncdj/h5itSUEl2RT6L/IMtlBRQ3Helpi9rzLWBL2i X-Received: by 2002:a63:77c9:: with SMTP id s192-v6mr1869073pgc.140.1529073554928; Fri, 15 Jun 2018 07:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529073554; cv=none; d=google.com; s=arc-20160816; b=xYwtSD/DUDTljXr0wXHic0i4jTD9pbfE73BUeqaPe2/lr4KyMGwR2xs0cgHuCwVkLO VQw7W2ocDXqrsVauFivGMz1Y18LnIA9AZ8uHuSYamaus/syeMexfG5jLeV3T5NCZsOE2 gIE+1diK4HtwLb8kivDrU8kOF+4HdMMRt2aBH7TtiDi95w0hjqR2c8E7AWMSRLEGy00j PiAykxD7xTKnT5ik6UtC4rc3nBeaC4DyT+HCmiuaklsmLFBbd2Yqft3F6zUQkm6R+EXX TtY2oPEXVk+V/QHM0khgmdTjRc7q65++4qmnuQTgseZzPkl3uBvtwrU2jubS4Obys2mq pvuw== 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=UtaWtxL3MgWjnWZiIpJVQjJ4NtOfs6Jjt6PJVWnUjnY=; b=Fu54mvRqNrvZgc5HKTBpi3pAvaSxM5jDVkWrN17kAt66gAyjJ3N3jd1cnbDakdBytF mz2QsSMgySu2L5+Hxu1Q4KgFvIO5GLXSpn+qKtdE0RTd6C2yR5pn926bxOGYgguPj7x5 ExXWbvwuvmJweWkr2et6wxn1AHEvn5uMW0CUsbsHqG5DihDD6zbOgamtbwb+YKxEU6kH WZKreLJYw/U5jHQ+Fk2hAGzGu2lcNLr4I5+XkwZShBbln0yLukNIlsQB90eMuYy1ALSS 6Q8IyKQFwaJxjZ69xstqivBhsBydoZMds2YCCH89bmg/wlv3ZicxfOj+/B+uFp00V741 LUrw== 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 m22-v6si8200756pls.147.2018.06.15.07.39.00; Fri, 15 Jun 2018 07:39:14 -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 S1756256AbeFOOie (ORCPT + 99 others); Fri, 15 Jun 2018 10:38:34 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756167AbeFOOid (ORCPT ); Fri, 15 Jun 2018 10:38:33 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ADD7E8A6FA; Fri, 15 Jun 2018 14:38:32 +0000 (UTC) Received: from redhat.com (ovpn-120-46.rdu2.redhat.com [10.10.120.46]) by smtp.corp.redhat.com (Postfix) with SMTP id F3E4520284D6; Fri, 15 Jun 2018 14:38:31 +0000 (UTC) Date: Fri, 15 Jun 2018 17:38:31 +0300 From: "Michael S. Tsirkin" To: "Wang, Wei W" Cc: "virtio-dev@lists.oasis-open.org" , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "linux-mm@kvack.org" , "mhocko@kernel.org" , "akpm@linux-foundation.org" , "torvalds@linux-foundation.org" , "pbonzini@redhat.com" , "liliang.opensource@gmail.com" , "yang.zhang.wz@gmail.com" , "quan.xu0@gmail.com" , "nilal@redhat.com" , "riel@redhat.com" , "peterx@redhat.com" Subject: Re: [PATCH v33 0/4] Virtio-balloon: support free page reporting Message-ID: <20180615172933-mutt-send-email-mst@kernel.org> References: <1529037793-35521-1-git-send-email-wei.w.wang@intel.com> <20180615142610-mutt-send-email-mst@kernel.org> <286AC319A985734F985F78AFA26841F7396A3DC9@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <286AC319A985734F985F78AFA26841F7396A3DC9@shsmsx102.ccr.corp.intel.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 15 Jun 2018 14:38:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 15 Jun 2018 14:38:32 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 Fri, Jun 15, 2018 at 02:28:49PM +0000, Wang, Wei W wrote: > On Friday, June 15, 2018 7:30 PM, Michael S. Tsirkin wrote: > > On Fri, Jun 15, 2018 at 12:43:09PM +0800, Wei Wang wrote: > > > - remove the cmd id related interface. Now host can just send a free > > > page hint command to the guest (via the host_cmd config register) > > > to start the reporting. > > > > Here we go again. And what if reporting was already started previously? > > I don't think it's a good idea to tweak the host/guest interface yet again. > > This interface is much simpler, and I'm not sure if that would be an > issue here now, because now the guest delivers the whole buffer of > hints to host once, instead of hint by hint as before. And the guest > notifies host after the buffer is delivered. In any case, the host > doorbell handler will be invoked, if host doesn't need the hints at > that time, it will just give back the buffer. There will be no stale > hints remained in the ring now. > > Best, > Wei I still think all the old arguments for cmd id apply. -- MST