mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
qmp: Remind users that you must first call ExecuteQMPCapabilities()
Before calling any other command it is necessary to call ExecuteQMPCapabilities() otherwise QEMU will not process the subsequent QMP commands. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
5a5e5b720f
commit
8515ae4817
@ -561,6 +561,10 @@ func (q *QMP) executeCommand(ctx context.Context, name string, args map[string]i
|
|||||||
// block until they have received a success or failure message from QMP,
|
// block until they have received a success or failure message from QMP,
|
||||||
// i.e., {"return": {}} or {"error":{}}, and in some cases certain events
|
// i.e., {"return": {}} or {"error":{}}, and in some cases certain events
|
||||||
// are received.
|
// are received.
|
||||||
|
//
|
||||||
|
// QEMU currently requires that the "qmp_capabilties" command is sent before any
|
||||||
|
// other command. Therefore you must call qmp.ExecuteQMPCapabilities() before
|
||||||
|
// you execute any other command.
|
||||||
func QMPStart(ctx context.Context, socket string, cfg QMPConfig, disconnectedCh chan struct{}) (*QMP, *QMPVersion, error) {
|
func QMPStart(ctx context.Context, socket string, cfg QMPConfig, disconnectedCh chan struct{}) (*QMP, *QMPVersion, error) {
|
||||||
if cfg.Logger == nil {
|
if cfg.Logger == nil {
|
||||||
cfg.Logger = qmpNullLogger{}
|
cfg.Logger = qmpNullLogger{}
|
||||||
|
Loading…
Reference in New Issue
Block a user