From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting Date: Tue, 19 Feb 2019 15:17:40 -0500 Message-ID: <20190219151552-mutt-send-email-mst@kernel.org> References: <20190218143819-mutt-send-email-mst@kernel.org> <58714908-f203-0b64-845b-5818e52a62fa@redhat.com> <20190218152021-mutt-send-email-mst@kernel.org> <18d87846-72c7-adf0-5ca3-7312540bb31b@redhat.com> <478a9574-a604-0aa9-d569-6a5cd98d7cdc@redhat.com> <77e71dc3-640b-bbf6-6a47-bb2371c06172@redhat.com> <20190219145241-mutt-send-email-mst@kernel.org> <0118482c-e633-3949-6797-94d7deb8a382@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Duyck , Nitesh Narayan Lal , kvm list , LKML , Paolo Bonzini , lcapitulino@redhat.com, pagupta@redhat.com, wei.w.wang@intel.com, Yang Zhang , Rik van Riel , dodgen@google.com, Konrad Rzeszutek Wilk , dhildenb@redhat.com, Andrea Arcangeli To: David Hildenbrand Return-path: Content-Disposition: inline In-Reply-To: <0118482c-e633-3949-6797-94d7deb8a382@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, Feb 19, 2019 at 09:02:52PM +0100, David Hildenbrand wrote: > On 19.02.19 20:58, Michael S. Tsirkin wrote: > > On Tue, Feb 19, 2019 at 10:06:35AM -0800, Alexander Duyck wrote: > >>> I tend to like an asynchronous reporting approach as discussed in this > >>> thread, we would have to see if Nitesh could get it implemented. > >> > >> I agree it would be great if it could work. However I have concerns > >> given that work on this patch set dates back to 2017, major issues > >> such as working around device assignment have yet to be addressed, > > > > BTW for device assignment to work, your idea of sending > > data directly to kvm won't work, will it? > > You need to update userspace so it can update VFIO right? > > Another blocker for assignment is ability to make holes > > an an existing mapping - supported by hardware but > > not by IOMMU drivers. > > I had the exact same thought and then realized that we decided to block > the balloon in user space until we figured out how to handle this properly. > > I wonder if MADV_FREE behaves differently compared to MADV_DONTNEED when > finding pinned pages, but I doubt it. Most probably we'll have to > disable hinting for device assignments as well. OK but let's recognize it as a bug not a feature. -- MST