From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [RFC][Patch v9 0/6] KVM: Guest Free Page Hinting Date: Thu, 7 Mar 2019 13:46:16 -0500 Message-ID: <20190307134455-mutt-send-email-mst@kernel.org> References: <20190306155048.12868-1-nitesh@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nitesh Narayan Lal , kvm list , LKML , linux-mm , Paolo Bonzini , lcapitulino@redhat.com, pagupta@redhat.com, wei.w.wang@intel.com, Yang Zhang , Rik van Riel , David Hildenbrand , dodgen@google.com, Konrad Rzeszutek Wilk , dhildenb@redhat.com, Andrea Arcangeli To: Alexander Duyck Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, Mar 06, 2019 at 10:00:05AM -0800, Alexander Duyck wrote: > I have been thinking about this. Instead of stealing the page couldn't > you simply flag it that there is a hint in progress and simply wait in > arch_alloc_page until the hint has been processed? The problem is in > stealing pages you are going to introduce false OOM issues when the > memory isn't available because it is being hinted on. Can we not give them back in an OOM notifier? -- MST