From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38737 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu1c5-0001gH-S1 for qemu-devel@nongnu.org; Mon, 28 Feb 2011 06:50:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu1c4-0005Sb-OJ for qemu-devel@nongnu.org; Mon, 28 Feb 2011 06:50:05 -0500 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:56498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu1c4-0005Rw-1Y for qemu-devel@nongnu.org; Mon, 28 Feb 2011 06:50:04 -0500 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp09.in.ibm.com (8.14.4/8.13.1) with ESMTP id p1SAutTt011347 for ; Mon, 28 Feb 2011 16:26:55 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p1SBnxZt2363406 for ; Mon, 28 Feb 2011 17:19:59 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p1SBo1uu005684 for ; Mon, 28 Feb 2011 17:20:01 +0530 Date: Mon, 28 Feb 2011 17:19:56 +0530 From: Prerna Saxena Message-ID: <20110228171956.05a84fb9@zephyr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC][PATCH 0/2] Allow cache settings for block devices to be changed at runtime. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: kwolf@redhat.com, Anthony Liguori , Ananth Narayan , Stefan Hajnoczi The following patchset introduces monitor commands: 1. set_cache DEVICE CACHE-SETTING Change cache settings for block device, DEVICE, through the monitor. (Available options : 'none', 'writeback', 'writethrough') Eg, (qemu)set_cache ide0-hd0 none -> Changes cache setting for ide0-hd0 to 'none' 2. info block Now extended to display cache settings for available block devices. TODOS : ------- 1. Support 'unsafe' cache mode. 2. Display current cache setting for device, if the CACHE-SETTING option is not supplied by the user. Eg, (qemu)set_cache ide0-hd0 presently errors out. Ideally, it should display current cache setting for the given device ide0-hd0 -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India