From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdgQP-000401-Eb for qemu-devel@nongnu.org; Mon, 04 Jul 2011 06:30:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdgQN-0003uI-UK for qemu-devel@nongnu.org; Mon, 04 Jul 2011 06:30:45 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:40305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdgQN-0003tq-6n for qemu-devel@nongnu.org; Mon, 04 Jul 2011 06:30:43 -0400 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by e2.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p64A9nTe018835 for ; Mon, 4 Jul 2011 06:09:49 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p64AUe4g067076 for ; Mon, 4 Jul 2011 06:30:40 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p64AUdlR013275 for ; Mon, 4 Jul 2011 06:30:40 -0400 From: Supriya Kannery Date: Mon, 04 Jul 2011 16:12:37 +0530 Message-Id: <20110704104237.28170.97021.sendpatchset@skannery> Subject: [Qemu-devel] [V4 Patch 0/4]Qemu: Hostcache 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 , Supriya Kannery , 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' using which various parameters for block devices can be changed dynamically. Dynamic changing of host cache setting is implemented for now. This patchset also introduces 'hostcache', a new option for setting host cache from qemu command line. 'Hostcache and 'cache' options cannot be used simultaneously from commandline. Changes from patchset V3: 1. Added 'hostcache' option to '-drive' commandline option. New block command added: "block_set" -- Sets block device parameters while guest is running. Usage: block_set = block device = parameter (say, "hostcache") = on/off New 'hostcache' option added to -drive: -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n" .... " [,readonly=on|off][,hostcache=on|off]\n" 1/4 Enhance "info block" to display hostcache setting 2/4 New error classes for file reopen and device insertion 3/4 Command "block_set" for dynamic params change for block device 4/4 'hostcache' option added to -drive in qemu commandline qemu/block.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++---- qemu/block.h | 2 + qemu/blockdev.c | 43 +++++++++++++++++++++++++++++++++++++++++++++++ qemu/blockdev.h | 1 qemu/hmp-commands.hx | 15 ++++++++++++++ qemu/qemu-config.c | 4 +++ qemu/qemu-options.hx | 2 - qemu/qemu.pod | 5 ++++ qemu/qerror.c | 8 +++++++ qemu/qerror.h | 6 +++++ qemu/qmp-commands.hx | 30 +++++++++++++++++++++++++++ 11 files changed, 184 insertions(+), 5 deletions(-)