[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/5] scripts: qmp-shell: add transaction support
From: |
John Snow |
Subject: |
[Qemu-devel] [PATCH 0/5] scripts: qmp-shell: add transaction support |
Date: |
Tue, 21 Apr 2015 22:02:30 -0400 |
The qmp-shell is a little rudimentary, but it can be hacked
to give us some transactional support without too much difficulty.
(1) Prep.
(2) Add support for serializing json arrays
(3) Allow users to use 'single quotes' instead of "double quotes"
(4) Add a special transaction( ... ) syntax that lets users
build up transactional commands using the existing qmp shell
syntax to define each action.
(5) Add a verbose flag to display generated QMP commands.
The parsing is not as robust as one would like, but this suffices
without adding a proper parser.
Design considerations:
(1) Try not to disrupt the existing design of the qmp-shell. The existing
API is not disturbed.
(2) Pick a "magic token" such that it could not be confused for legitimate
QMP/JSON syntax. Parentheses are used for this purpose.
John Snow (5):
scripts: qmp-shell: refactor helpers
scripts: qmp-shell: add support for [] expressions
scripts: qmp-shell: allow single-quotes in JSON expressions
scripts: qmp-shell: add transaction subshell
scripts: qmp-shell: Add verbose flag
scripts/qmp/qmp-shell | 90 +++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 73 insertions(+), 17 deletions(-)
--
2.1.0
- [Qemu-devel] [PATCH 0/5] scripts: qmp-shell: add transaction support,
John Snow <=