Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp867437imm; Fri, 15 Jun 2018 07:30:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgnSHIqgK+L261klBDFfMkR2pyGRW0DPjtiLSLbH/Tuc9lko9LTwcuzoLhmoiJVasI4nvy X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr2371657plb.146.1529073057614; Fri, 15 Jun 2018 07:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529073057; cv=none; d=google.com; s=arc-20160816; b=jkMYT4oRi7GxnXAuTgJ1xANb711JnhHiKaU7Xp6esoCn0g6ZJlRtiPFZXlL655qJLC GMnIMiEirGnCBrch8lIZyC09p3c8qhVEn3mGcgr26887LGUo7arkuEj+IP1/3IyYIkrX qFwp4GgULPk0OPPoLgaldH9e6FHuVniRoUI0B/L/WbfK0a94yA+dAwJgrFVYOw4KM4zi tG9YdhNH8EfEJWojoaUZrUz3oc5fTHUD4CdaGpCmuVnHRaiQfkANj+Zf5jwBpi9XnI78 BCmH2zVEtg3er6Qrh2s1d67A6quI5edMyI3GjrKu6LsGeFR3o4ReNFONougJyY2gKfko L+9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=KabvRA+AeeZ4uOMcOjWQ3eeKJ3lXYvjpY/VmSRVUHSM=; b=C1oqls5jtB3wGvC180dFiWVopDxAmZEKVeWM4NMiwm5hLyuYHFXAmg5gelP6FEqtEK P1COzz61kIEuBZIERAKvTr6svRF3KFs/smC879YINnslwE3Fz1KB8Ky9q8Zj2uBQrurB jadHMt63CTLX4sXzGIUyxPrUVGtjET7X2glJKbuUkx8oFtma/TIV/obBSLdJ01KBHFbo JIRK7HkdWnf7hIKEsipKyLIUcUBCTR6tpFyypvC2QtustpdRm5wK8T0mHewmRWvk6xWH yhjA1Qhd1DlDHWswCQeLTnwc9d5+C+v6O0JcjCfEtAJ/6M9tDz+YArrQuDiirEgHCCGH W8Nw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14-v6si6791131pgr.419.2018.06.15.07.30.42; Fri, 15 Jun 2018 07:30:57 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965834AbeFOO25 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Jun 2018 10:28:57 -0400 Received: from mga12.intel.com ([192.55.52.136]:18813 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965738AbeFOO2y (ORCPT ); Fri, 15 Jun 2018 10:28:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jun 2018 07:28:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,227,1526367600"; d="scan'208";a="59508245" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 15 Jun 2018 07:28:52 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 15 Jun 2018 07:28:51 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 15 Jun 2018 07:28:51 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.223]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.87]) with mapi id 14.03.0319.002; Fri, 15 Jun 2018 22:28:49 +0800 From: "Wang, Wei W" To: "Michael S. Tsirkin" 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 Thread-Topic: [PATCH v33 0/4] Virtio-balloon: support free page reporting Thread-Index: AQHUBGby+/C9AzCksEOKTvSxk6HhoKRgqWWAgACziqA= Date: Fri, 15 Jun 2018 14:28:49 +0000 Message-ID: <286AC319A985734F985F78AFA26841F7396A3DC9@shsmsx102.ccr.corp.intel.com> References: <1529037793-35521-1-git-send-email-wei.w.wang@intel.com> <20180615142610-mutt-send-email-mst@kernel.org> In-Reply-To: <20180615142610-mutt-send-email-mst@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTdlYmQ1ZDQtOTUzMS00ODdhLWFkOTEtYmFkODE1NzY3NTY2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNmhFaGk2WnBwOEpwMFNNemZkQUJVSFNVMmxtWndBN1k2dUlZWjZsYTFpdlppUFRoVURtZFprT0tkNDRVS1wvd2YifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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