From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNLcq-0006m2-Av for qemu-devel@nongnu.org; Mon, 07 Nov 2011 04:36:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNLcp-0003dw-AG for qemu-devel@nongnu.org; Mon, 07 Nov 2011 04:36:20 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:33223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNLco-0003dp-Bz for qemu-devel@nongnu.org; Mon, 07 Nov 2011 04:36:19 -0500 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp02.au.ibm.com (8.14.4/8.13.1) with ESMTP id pA79TCMC023367 for ; Mon, 7 Nov 2011 20:29:12 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pA79ZxDx1724458 for ; Mon, 7 Nov 2011 20:36:01 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pA79Zxir016375 for ; Mon, 7 Nov 2011 20:35:59 +1100 Message-ID: <4EB7A67D.1030906@linux.vnet.ibm.com> Date: Mon, 07 Nov 2011 15:05:57 +0530 From: Supriya Kannery MIME-Version: 1.0 References: <20111030103327.31685.17045.sendpatchset@skannery.in.ibm.com> <4EB79911.9050600@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [v8 Patch 0/6]Qemu: Host pagecache setting from cmdline and monitor Reply-To: supriyak@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Yong Wu Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel@nongnu.org, Christoph Hellwig On 11/07/2011 02:19 PM, Zhi Yong Wu wrote: > On Mon, Nov 7, 2011 at 4:38 PM, Supriya Kannery > wrote: >> On 11/04/2011 07:59 AM, Zhi Yong Wu wrote: >>> >>> On Sun, Oct 30, 2011 at 6:33 PM, Supriya Kannery >>> wrote: >>>> >>>> Currently cache setting of a block device cannot be changed >>>> without restarting a running VM. Following patchset is for >>>> enabling dynamic change of cache setting for block devices >>>> through qemu monitor. Code changes are based on patches >>>> from Christoph Hellwig and Prerna Saxena. >>>> >>>> This patchset introduces >>>> a. monitor command 'block_set_hostcache' using which host >>>> pagecache setting for a block device can be changed >>>> dynamically. >>> >>> I got a bit confusion. Is it used to change host pagecache setting on >>> hyperviser or on guest? >>> This block device said by you is for guest, right? >>> >> >> This command is used for changing pagecache setting of >> the image files in host which are acting as block devices >> for guest. > So what is the difference between it and cache option? > Cache=xx sets a combination of status flags for image files among which host pagecache is just one. Intention here is to gradually replace cache=xx with more explicit settings like hostcache, flush, WCE.