From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: DANGER WILL ROBINSON, DANGER Date: Mon, 9 Sep 2019 19:00:07 +0200 Message-ID: <5b0966de-b690-fb7b-5a72-bc7906459168@redhat.com> References: <20190809160047.8319-1-alazar@bitdefender.com> <20190809160047.8319-72-alazar@bitdefender.com> <20190809162444.GP5482@bombadil.infradead.org> <1565694095.D172a51.28640.@15f23d3a749365d981e968181cce585d2dcb3ffa> <20190815191929.GA9253@redhat.com> <20190815201630.GA25517@redhat.com> <20190905180955.GA3251@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190905180955.GA3251@redhat.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Jerome Glisse , Mircea CIRJALIU - MELIU Cc: Tamas K Lengyel , Weijiang Yang , Yu C , "kvm@vger.kernel.org" , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Jan Kiszka , =?UTF-8?Q?Samuel_Laur=c3=a9n?= , Konrad Rzeszutek Wilk , Matthew Wilcox , "virtualization@lists.linux-foundation.org" , =?UTF-8?Q?Adalbert_Laz=c4=83r?= , "linux-mm@kvack.org" , Patrick Colp , Mathieu Tarral , Stefan Hajnoczi , =?UTF-8?Q?Mihai_Don=c8=9bu?= List-Id: virtualization@lists.linuxfoundation.org On 05/09/19 20:09, Jerome Glisse wrote: > Not sure i understand, you are saying that the solution i outline above > does not work ? If so then i think you are wrong, in the above solution > the importing process mmap a device file and the resulting vma is then > populated using insert_pfn() and constantly keep synchronize with the > target process through mirroring which means that you never have to look > at the struct page ... you can mirror any kind of memory from the remote > process. If insert_pfn in turn calls MMU notifiers for the target VMA (which would be the KVM MMU notifier), then that would work. Though I guess it would be possible to call MMU notifier update callbacks around the call to insert_pfn. Paolo