Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp840948imj; Fri, 15 Feb 2019 07:41:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IbZyzogHncU3yQpY5AoM1StFWdy39iMQ9x7I7WKIpuhfY7xPn0TC3KJCFI4cLHuQGVhI2av X-Received: by 2002:a63:2586:: with SMTP id l128mr6025980pgl.104.1550245261591; Fri, 15 Feb 2019 07:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550245261; cv=none; d=google.com; s=arc-20160816; b=XerBnr3mmrz95UlAoJWe0fEmtXkhpX6zwzChOmoQ/dkJT8k7JIACWpqK/aze4YBqq0 A3asYS/JgDKlgUO09/4u2V7sA/FY6OeMZb4l+e6kNdp2FmaOwDAF6XcWafkqE4bpfoB0 otXfP4nmvddkH06W++NSv7MXV6eqihxuVkmtAJd42YE0FLkF4vmZmAFI523/Uhgnu8o8 f7A9ZzmPa7VN8r8LSGyjmuy/VVbCGw48R8Xwp+ISABhh60a/qbzLA1iGi3Tn+4zvSxZI hgyMw/BsoipBfKw214WteQsJ47n21aZhx0VSNOZ9TH3OT0Mqsb6SSLTC74opHN0fc1sE QiWA== 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:to:from; bh=d8UmM/x92eKau5YYqVqF3D4Ff3A86f5mTkr9aMGI8Qw=; b=e4i4OKUN7iGo+VT11khKSFMcnSAb/KFd6CbRhNqbBKQLWH19s4E0UZIsK+3teYmyag BqtaY7g/cCE/qlwy+4EhBTu8Zj+SGgSYP9WxUg//jVlJbvv92luUc3W+iSbUPgHRYO9J PMiyD6MyiqXxnITKP/gBZjf5/4hQiL1mDgwg45F8uRVXLrtBj/95YSaPJVNZZGafp3IS g1qOGsIXKUJRDVO0WhVQ1Hz0ofA+CZNArID6Ev5uwl+md3ncd3muZUyWWd8ui0U2L3uR +7lGXJjGw0ABI15+ydBVhZ/4ySi2DTT4+ZVdTI4uf13lSB/p4wH/kknj+BcWSOiX2G+9 Tb3Q== 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 v9si5426263pgr.369.2019.02.15.07.40.46; Fri, 15 Feb 2019 07:41:01 -0800 (PST) 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 S2404184AbfBOJFP convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Feb 2019 04:05:15 -0500 Received: from mga06.intel.com ([134.134.136.31]:23918 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfBOJFO (ORCPT ); Fri, 15 Feb 2019 04:05:14 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2019 01:05:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,372,1544515200"; d="scan'208";a="116435412" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 15 Feb 2019 01:05:12 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 15 Feb 2019 01:05:12 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.207]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.109]) with mapi id 14.03.0415.000; Fri, 15 Feb 2019 17:05:10 +0800 From: "Wang, Wei W" To: 'David Hildenbrand' , 'Nitesh Narayan Lal' , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "pbonzini@redhat.com" , "lcapitulino@redhat.com" , "pagupta@redhat.com" , "yang.zhang.wz@gmail.com" , "riel@surriel.com" , "mst@redhat.com" , "dodgen@google.com" , "konrad.wilk@oracle.com" , "dhildenb@redhat.com" , "aarcange@redhat.com" Subject: RE: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting Thread-Topic: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting Thread-Index: AQHUvMb57IQCd72gCkOm4okDUKYrcaXdemAg//+vEwCAAWxXYP///cqAgAHz/UA= Date: Fri, 15 Feb 2019 09:05:10 +0000 Message-ID: <286AC319A985734F985F78AFA26841F73DF71F38@shsmsx102.ccr.corp.intel.com> References: <20190204201854.2328-1-nitesh@redhat.com> <286AC319A985734F985F78AFA26841F73DF6B56A@shsmsx102.ccr.corp.intel.com> <286AC319A985734F985F78AFA26841F73DF6F0E3@shsmsx102.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTZkMjU1YWQtZGU2Ny00OGVjLTllNjYtMDRhNGY0MDdhZGYwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZ2FEVlllUHZYOHRRVnZmbExCZXVySU5KTmtwOHpQNHNmYzFtZjgrRFR0UG54cXhHUXNnZzRrQVwvZWhETHVSckMifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 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 Thursday, February 14, 2019 5:43 PM, David Hildenbrand wrote: > Yes indeed, that is the important bit. They must not be put pack to the > buddy before they have been processed by the hypervisor. But as the pages > are not in the buddy, no one allocating a page will stumble over such a page > and try to allocate it. Threads trying to allocate memory will simply pick > another buddy page instead of "busy waiting" for that page to be finished > reporting. What if a guest thread try to allocate some pages but the buddy cannot satisfy because all the pages are isolated? Would it be the same case that the guest thread gets blocked by waiting all the isolated pages to get madvised by the host and returned to the guest buddy, or even worse, some guest threads get killed due to oom? Best, Wei