Received: from eggs.gnu.org ([208.118.235.92]:36300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTCE0-00081t-4g for qemu-devel@nongnu.org; Fri, 19 Apr 2013 10:23:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTCDv-0002xa-49 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 10:23:40 -0400 Received: from mga03.intel.com ([143.182.124.21]:42082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTCDu-0002x5-Pa for qemu-devel@nongnu.org; Fri, 19 Apr 2013 10:23:35 -0400 From: Keith Busch In-Reply-To: <20130419092528.GA29826@stefanha-thinkpad.redhat.com> Message-ID: References: <1365624994-10219-1-git-send-email-keith.busch@intel.com> <20130419092528.GA29826@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] [PATCH] NVMe: Initial commit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Fri, 19 Apr 2013 14:23:46 -0000 To: Stefan Hajnoczi Cc: Keith Busch , qemu-devel@nongnu.org, Keith Busch On Fri, 19 Apr 2013, Stefan Hajnoczi wrote: > I don't see bdrv_aio_flush() in this patch. How does the guest ensure > that data is safely on persistent storage (e.g. protected against data > loss by power failure). Great point! This is to be consistent with the NVMe spec. This commit is the bare minimum, and an NVMe flush command is supported only if the device reports having a Volatile Write Cache and it being enabled. Both of these things are optional so they are ommitted in this commit. My branch of QEMU supports the entirety of the specification including flush and I hope to make it publicly available, but that was just too big a commit to send for consideration.