-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu-storage-daemon: Add --monitor option
This adds and parses the --monitor option, so that a QMP monitor can be used in the storage daemon. The monitor offers commands defined in the QAPI schema at storage-daemon/qapi/qapi-schema.json. The --monitor options currently allows to create multiple monitors with the same ID. This part of the interface is considered unstable. We will reject such configurations as soon as we have a design for the monitor subsystem to perform these checks. (In the system emulator, we depend on QemuOpts rejecting duplicate IDs.) Signed-off-by: Kevin Wolf <[email protected]> Message-Id: <[email protected]> Acked-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
- Loading branch information
Showing
10 changed files
with
121 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# = Transactions | ||
## | ||
|
||
{ 'include': 'block.json' } | ||
{ 'include': 'block-core.json' } | ||
|
||
## | ||
# @Abort: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
storage-daemon-obj-y += qapi/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
storage-daemon-obj-y += qapi-commands.o qapi-init-commands.o qapi-introspect.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- Mode: Python -*- | ||
|
||
# Note that modules are shared with the QEMU main schema under the assumption | ||
# that the storage daemon schema is a subset of the main schema. For the shared | ||
# modules, no code is generated here, but we reuse the code files generated | ||
# from the main schema. | ||
# | ||
# If you wish to extend the storage daemon schema to contain things that are | ||
# not in the main schema, be aware that array types of types defined in shared | ||
# modules are only generated if an array of the respective type is already used | ||
# in the main schema. Therefore, if you use such arrays, you may need to define | ||
# the array type in the main schema, even if it is unused outside of the | ||
# storage daemon. | ||
|
||
{ 'include': '../../qapi/pragma.json' } | ||
|
||
{ 'include': '../../qapi/block-core.json' } | ||
{ 'include': '../../qapi/char.json' } | ||
{ 'include': '../../qapi/common.json' } | ||
{ 'include': '../../qapi/control.json' } | ||
{ 'include': '../../qapi/crypto.json' } | ||
{ 'include': '../../qapi/introspect.json' } | ||
{ 'include': '../../qapi/job.json' } | ||
{ 'include': '../../qapi/qom.json' } | ||
{ 'include': '../../qapi/sockets.json' } | ||
{ 'include': '../../qapi/transaction.json' } |