Return-Path: Subject: Re: KVM "fake DAX" flushing interface - discussion References: <1455443283.33337333.1500618150787.JavaMail.zimbra@redhat.com> <1501104453.26846.45.camel@redhat.com> <1501112787.4073.49.camel@redhat.com> <0a26793f-86f7-29e7-f61b-dc4c1ef08c8e@gmail.com> <378b10f3-b32f-84f5-2bbc-50c2ec5bcdd4@gmail.com> <86754966-281f-c3ed-938c-f009440de563@gmail.com> <1511288389.1080.14.camel@redhat.com> From: Paolo Bonzini Message-ID: <654f8935-258e-22ef-fae4-3e14e91e8fae@redhat.com> Date: Thu, 23 Nov 2017 17:28:05 +0100 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams , Xiao Guangrong Cc: Kevin Wolf , Pankaj Gupta , Rik van Riel , Jan Kara , kvm-devel , Stefan Hajnoczi , Ross Zwisler , Qemu Developers , Stefan Hajnoczi , "linux-nvdimm@lists.01.org" , Nitesh Narayan Lal List-ID: On 23/11/2017 17:14, Dan Williams wrote: > On Wed, Nov 22, 2017 at 8:05 PM, Xiao Guangrong > wrote: >> >> >> On 11/22/2017 02:19 AM, Rik van Riel wrote: >> >>> We can go with the "best" interface for what >>> could be a relatively slow flush (fsync on a >>> file on ssd/disk on the host), which requires >>> that the flushing task wait on completion >>> asynchronously. >> >> >> I'd like to clarify the interface of "wait on completion >> asynchronously" and KVM async page fault a bit more. >> >> Current design of async-page-fault only works on RAM rather >> than MMIO, i.e, if the page fault caused by accessing the >> device memory of a emulated device, it needs to go to >> userspace (QEMU) which emulates the operation in vCPU's >> thread. >> >> As i mentioned before the memory region used for vNVDIMM >> flush interface should be MMIO and consider its support >> on other hypervisors, so we do better push this async >> mechanism into the flush interface design itself rather >> than depends on kvm async-page-fault. > > I would expect this interface to be virtio-ring based to queue flush > requests asynchronously to the host. Could we reuse the virtio-blk device, only with a different device id? Thanks, Paolo _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm