qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Supriya Kannery <supriyak@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	Supriya Kannery <supriyak@linux.vnet.ibm.com>,
	Christoph Hellwig <hch@lst.de>
Subject: [Qemu-devel] [V3 0/3]block: Dynamically change hostcache setting using new "block_set" command
Date: Fri, 17 Jun 2011 22:07:10 +0530	[thread overview]
Message-ID: <20110617163710.2933.89020.sendpatchset@skannery> (raw)

  Currently host page cache setting for a block device cannot be changed
without restarting a running VM. Following patchset [V3] is for enabling
dynamic change of hostcache setting for block devices through qemu monitor
and QMP. Code changes are based on patches from Christoph Hellwig and 
Prerna Saxena.

Changes from patchset V2:
1. Command "block_set" added for changing block device params dynamically
2. Enhanced info-block to display hostcache setting of block device
3. Added qmp interfaces for setting and querying hostcache

New block command added:
"block_set" 
    -- Sets block device parameters while guest is running.

Usage:
 block_set <device> <param> <value> 
   <device> = block device
   <param>  = parameter (say, "hostcache")
   <value>  = on/off

 1/3 Enhance "info block" to display hostcache setting
 2/3 New error classes for file reopen and device insertion
 3/3 Command "block_set" for dynamic params change for block device

 qemu/block.c         |   62 +++++++++++++++++++++++++++++++++++++++++
                             +++++++++----
 qemu/block.h         |    2 ++
 qemu/blockdev.c      |   32 ++++++++++++++++++++++++++++++++
 qemu/blockdev.h      |    1 +
 qemu/hmp-commands.hx |   15 +++++++++++++++
 qemu/qerror.c        |    8 ++++++++
 qemu/qerror.h        |    6 ++++++
 qemu/qmp-commands.hx |    2 ++
 qmp-commands.hx      |   30 +++++++++++++++++++++++++++++-
 9 files changed, 153 insertions(+), 5 deletions(-)
~                                                        

~                                                                        
~                                                   
~                                                   

             reply	other threads:[~2011-06-17 16:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 16:37 Supriya Kannery [this message]
2011-06-17 16:37 ` [Qemu-devel] [V3 1/3] Enhance "info block" to display hostcache setting Supriya Kannery
2011-06-20 14:23   ` Kevin Wolf
2011-06-22 14:59     ` Supriya Kannery
2011-06-17 16:37 ` [Qemu-devel] [V3 2/3] Error classes for file reopen and device insertion Supriya Kannery
2011-06-20 14:23   ` Kevin Wolf
2011-06-17 16:38 ` [Qemu-devel] [V2 3/3] Command "block_set" for dynamic block params change Supriya Kannery
2011-06-17 17:23   ` [Qemu-devel] [V2 3/3] <Resend> " Supriya Kannery
2011-06-20 14:34   ` [Qemu-devel] [V2 3/3] " Kevin Wolf
2011-06-22 16:09     ` Supriya Kannery
2011-06-27  8:18       ` Kevin Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110617163710.2933.89020.sendpatchset@skannery \
    --to=supriyak@linux.vnet.ibm.com \
    --cc=hch@lst.de \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).