From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: sync guest calls made async on host - SQLite performance Date: Wed, 14 Oct 2009 19:02:15 +0200 Message-ID: <20091014170215.GA22621@lst.de> References: <4ACE0196.9010904@gmail.com> <4ACF89CB.5020406@gmail.com> <4AD1A27A.4060307@redhat.com> <20091013223714.GB16152@lst.de> <4AD5B00D.102@redhat.com> <20091014134122.GA14235@lst.de> <4AD602C8.4090603@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Matthew Tippett , Dustin Kirkland , Anthony Liguori , RW , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from verein.lst.de ([213.95.11.210]:47131 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933539AbZJNRDI (ORCPT ); Wed, 14 Oct 2009 13:03:08 -0400 Content-Disposition: inline In-Reply-To: <4AD602C8.4090603@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Oct 15, 2009 at 01:56:40AM +0900, Avi Kivity wrote: > Does virtio say it has a write cache or not (and how does one say it?)? Historically it didn't and the only safe way to use virtio was in cache=writethrough mode. Since qemu git as of 4th Sempember and Linux 2.6.32-rc there is a virtio-blk feature to communicate the existance of a volatile write cache, and the support for a cache flush command. With the combination of these two data=writeback and data=none modes are safe for the first time.