Received: from eggs.gnu.org ([140.186.70.92]:59750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROktW-0005UU-7M for qemu-devel@nongnu.org; Fri, 11 Nov 2011 01:47:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROktV-0002Mb-63 for qemu-devel@nongnu.org; Fri, 11 Nov 2011 01:47:22 -0500 Received: from e32.co.us.ibm.com ([32.97.110.150]:34904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROktU-0002MU-Qb for qemu-devel@nongnu.org; Fri, 11 Nov 2011 01:47:21 -0500 Received: from /spool/local by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Nov 2011 23:47:15 -0700 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAB6lCvY151858 for ; Thu, 10 Nov 2011 23:47:12 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAB6lBGl026553 for ; Thu, 10 Nov 2011 23:47:12 -0700 From: Supriya Kannery Date: Fri, 11 Nov 2011 12:17:07 +0530 Message-Id: <20111111064707.15024.69847.sendpatchset@skannery.in.ibm.com> Subject: [Qemu-devel] [v9 Patch 0/6]Qemu: Host pagecache setting 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 , Luiz Capitulino Following patchset is for enabling dynamic change of host pagecache setting of block devices through qemu monitor. This patchset introduces a. monitor command 'block_set_hostcache' using which host pagecache setting for a block device can be changed dynamically. b. a new option for setting host cache from qemu commandline option -drive "hostcache=on/off". c. BDRVReopenState, a generic structure which can be extended by each of the block drivers to reopen respective image files. Extension of this structure for drivers raw-posix is done here. Note: 'hostcache and 'cache' options when used together, cache=xx will override hostcache=yy. v9: 1. Rebased patchset to use qapi interfaces 2. Approach of extending BDRVReopenState changed to use container_of() v8: 1. Mandate implementation of all three reopen related functions by block drivers. 2. If 'cache=xx' and 'hostcache=yy' specified in cmdline, 'cache=' overrides 'hostcache='. v7: 1. Added structure BDRVReopenState to support safe reopening of image files. 2. Implemented reopen functions for raw-posix driver 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