All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC Patch 0/3]Qemu: Enable dynamic cache change through qemu monitor
@ 2011-05-16 18:10 Supriya Kannery
  2011-05-16 18:10 ` [Qemu-devel] [RFC Patch 1/3]Qemu: Enhance "info block" to display cache setting Supriya Kannery
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Supriya Kannery @ 2011-05-16 18:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Supriya Kannery, Christoph Hellwig, Prerna Saxena

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]


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.

Monitor command "info block" is extended to display cache setting of 
block devices. New monitor command "cache_set" is added using which 
cache setting can be dynamically changed
Usage:
"cache_set <device> <cache>"
   <device> = block device      
   <cache> = "off"/"none", "on"/"writeback", "writethrough", "unsafe"
      
 1/3 Enhance "info block" to display cache setting
 2/3 New error classes for file reopen and device insertion
 3/3 Add monitor command "cache_set" for dynamic cache change

 qemu/block.c         |   71
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 qemu/block.h         |    2 +
 qemu/blockdev.c      |   20 +++++++++++++++++++
 qemu/blockdev.h      |    1
 qemu/hmp-commands.hx |   14 +++++++++++++
 qemu/qerror.c        |    8 +++++++
 qemu/qerror.h        |    6 +++++
 qemu/qmp-commands.hx |   28 ++++++++++++++++++++++++++
 8 files changed, 148 insertions(+), 2 deletions(-)

~                                                   

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-05-20  5:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 18:10 [Qemu-devel] [RFC Patch 0/3]Qemu: Enable dynamic cache change through qemu monitor Supriya Kannery
2011-05-16 18:10 ` [Qemu-devel] [RFC Patch 1/3]Qemu: Enhance "info block" to display cache setting Supriya Kannery
2011-05-17  8:39   ` Kevin Wolf
2011-05-17  9:00     ` supriya kannery
2011-05-16 18:10 ` [Qemu-devel] [RFC Patch 2/3]Qemu: New error classes for file reopen and device insertion Supriya Kannery
2011-05-16 18:11 ` [Qemu-devel] [RFC Patch 3/3]Qemu: Add command "cache_set" for dynamic cache change Supriya Kannery
2011-05-16 20:23 ` [Qemu-devel] [RFC Patch 0/3]Qemu: Enable dynamic cache change through qemu monitor Christoph Hellwig
2011-05-16 21:10   ` Anthony Liguori
2011-05-17  9:27     ` supriya kannery
2011-05-17 15:41     ` Christoph Hellwig
2011-05-20  5:41       ` Supriya Kannery
2011-05-17  9:18   ` supriya kannery

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.