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] [V2 0/2]Qemu: Enable dynamic hostcache change through monitor
Date: Thu, 19 May 2011 22:37:30 +0530	[thread overview]
Message-ID: <20110519170730.29027.44430.sendpatchset@skannery> (raw)

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

  Currently host page cache setting for a block device cannot be changed
without restarting a running VM. Following patchset [V2] is for enabling 
dynamic change of host cache setting for devices through qemu monitor.

Changes from patchset V1:
1. Support of dynamic cache change only for hostcache.
2. Monitor command "hostcache_get" added to display current cache setting
3. Backed off the changes for display of cache setting in "info block"

Two new monitor commands added.
1. hostcache_get 
    -- Displays hostcache setting of a block device.
Usage:
"hostcache_get <device>
   <device> = block device

2. hostcache_set
    -- Sets hostcache for the device to specified value.
Usage:
"hostcache_set <device> <cache>"
   <device> = block device      
   <cache> = "on"/"off"

1/2 New error classes for file reopen and device insertion
2/2 Add commands "hostcache_set" and "hostcache_get" 
     
 block.c         |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 block.h         |    2 ++
 blockdev.c      |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 blockdev.h      |    2 ++
 hmp-commands.hx |   29 +++++++++++++++++++++++++++++
 qerror.c        |    8 ++++++++
 qerror.h        |    6 ++++++
 qmp-commands.hx |   55 
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 198 insertions(+)
~                                                                        
~                                                   
~                                                   

             reply	other threads:[~2011-05-19 16:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 17:07 Supriya Kannery [this message]
2011-05-19 17:07 ` [Qemu-devel] [V2 1/2]Qemu: New error classes for file reopen and device insertion Supriya Kannery
2011-05-19 17:08 ` [Qemu-devel] [V2 2/2]Qemu: Add commands "hostcache_set" and "hostcache_get" Supriya Kannery
2011-05-20  8:20   ` Stefan Hajnoczi
2011-05-23  7:04     ` Supriya Kannery
2011-05-23 10:00       ` Stefan Hajnoczi
2011-05-23 12:58         ` Kevin Wolf
2011-05-23 15:32           ` Stefan Hajnoczi
2011-05-23 16:01           ` Markus Armbruster
2011-05-24  7:51             ` Kevin Wolf
2011-05-24  8:27               ` Markus Armbruster

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=20110519170730.29027.44430.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).