qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH 0/4] nvdimm: enable flush hint address struc


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] nvdimm: enable flush hint address structure
Date: Fri, 7 Apr 2017 15:31:23 +0100
User-agent: Mutt/1.8.0 (2017-02-23)

On Thu, Apr 06, 2017 at 07:32:01AM -0700, Dan Williams wrote:
> On Thu, Apr 6, 2017 at 2:43 AM, Stefan Hajnoczi <address@hidden> wrote:
> > On Fri, Mar 31, 2017 at 04:41:43PM +0800, Haozhong Zhang wrote:
> * I don't think we can just skip implementing support for this flush.
> Yes it's virtualization unfriendly, but it completely defeats the
> persistence of persistent memory if the host filesystem is free to
> throw away writes that the guest expects to find after a surprise
> power loss.

Right, if we don't implement Address Flush Hints then the only safe
option for configurations that require them would be to print an error
and refuse to start.

This synchronous fsync(2) business is like taking a host page fault or
being scheduled out by the host scheduler.  It means the vcpu is stuck
for a little bit.  Hopefully not long enough to upset the guest kernel
or the application.

One of the things that guest software can do to help minimize the
performance impact is to avoid holding locks across the address flush
mmio write instruction.

Stefan

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]