From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpEA5-0007aw-2g for qemu-devel@nongnu.org; Fri, 05 Aug 2011 02:45:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpEA4-0002Qe-3E for qemu-devel@nongnu.org; Fri, 05 Aug 2011 02:45:37 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:53631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpEA3-0002Qa-Sq for qemu-devel@nongnu.org; Fri, 05 Aug 2011 02:45:36 -0400 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by e34.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p756jZvq016558 for ; Fri, 5 Aug 2011 00:45:35 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p756iKbL169842 for ; Fri, 5 Aug 2011 00:44:20 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p750iI9b025395 for ; Thu, 4 Aug 2011 18:44:19 -0600 From: Supriya Kannery Date: Fri, 05 Aug 2011 12:26:03 +0530 Message-Id: <20110805065603.5829.56173.sendpatchset@skannery> Subject: [Qemu-devel] [v6 Patch 0/4]Qemu: Set host pagecache from cmdline and monitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Christoph Hellwig 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 monitor command 'block_set_hostcache' using which host pagecache setting for a block device can be changed dynamically. This patchset also introduces 'hostcache', a new option for setting host cache from qemu command line. Note: 'Hostcache and 'cache' options cannot be used simultaneously from commandline. v6: 1. "block_set_hostcache" to replace "block_set" command v5: 1. Defined qerror class for incorrect command syntax. 2. Changed error_report() calls to qerror_report() v4: Added 'hostcache' option to '-drive' commandline option. v3: 1. Command "block_set" for changing various block params 2. Enhanced info-block to display hostcache setting 3. Added qmp interfaces for setting and querying hostcache v2: 1. Support of dynamic cache change only for hostcache. 2. Monitor command "hostcache_get" added to display cache setting 3. Backed off the changes for display of cache setting in "info block" v1: Dynamic cache change through monitor New block command added: "block_set_hostcache" -- Sets hostcache parameter for block device while guest is running. Usage: block_set_hostcache