From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: What are the semantics of BLKIF_OP_WRITE_BARRIER? Date: Thu, 22 Jul 2010 13:41:25 -0700 Message-ID: <4C48ACF5.209@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: "Xen-devel@lists.xensource.com" , Jake Wires List-Id: xen-devel@lists.xenproject.org What does BLKIF_OP_WRITE_BARRIER mean precisely? Presumably it prevents writes from being reordered past it. But does it also imply a flush, in that all previous writes are on stable storage? If not, is there another operation which does guarantee that? If the backend doesn't support barriers, is there any other way for a guest to force writes to stable storage? How does blktap(2) deal with devices with volatile write caches? Does it generate its own barriers/flushes/FUA requests to push things out to stable storage? Thanks, J