[Qemu-devel] [PATCH v0 0/2] enable/disable copy-on-read via qmp

Denis Plotnikov posted 2 patches 5 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180613154711.12977-1-dplotnikov@virtuozzo.com
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
block.c               |  4 +---
block/io.c            | 10 ++++++++--
block/stream.c        |  5 +++--
blockdev.c            | 38 ++++++++++++++++++++++++++++++++++++++
include/block/block.h |  2 +-
qapi/block-core.json  | 20 ++++++++++++++++++++
6 files changed, 71 insertions(+), 8 deletions(-)
[Qemu-devel] [PATCH v0 0/2] enable/disable copy-on-read via qmp
Posted by Denis Plotnikov 5 years, 10 months ago
In some cases there is a need to perform a special access pattern to a disk
backend. This may be done by providing disk reading access to external readers.
In this case there should be the ability to enable/disable the copy-on-read mode
for the disk during VM runtime. 
By the moment, there is no such ability. The patch set adds qmp command to 
enable/disable the copy-on-read mode.

Denis Plotnikov (2):
  block: check for read-only on copy-on-read setting
  qmp: add block-set-copy-on-read command

 block.c               |  4 +---
 block/io.c            | 10 ++++++++--
 block/stream.c        |  5 +++--
 blockdev.c            | 38 ++++++++++++++++++++++++++++++++++++++
 include/block/block.h |  2 +-
 qapi/block-core.json  | 20 ++++++++++++++++++++
 6 files changed, 71 insertions(+), 8 deletions(-)

-- 
2.17.0