mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
QError: Introduce new errors for the migration command
The new errors are QERR_MIGRATION_ACTIVE and QERR_MIGRATION_NOT_SUPPORTED, which are going to be used by the QAPI converted migration command. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
ae7d54d489
commit
a4acc064f7
2 changed files with 14 additions and 0 deletions
6
qerror.h
6
qerror.h
|
@ -166,6 +166,12 @@ QError *qobject_to_qerror(const QObject *obj);
|
|||
#define QERR_KVM_MISSING_CAP \
|
||||
"{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }"
|
||||
|
||||
#define QERR_MIGRATION_ACTIVE \
|
||||
"{ 'class': 'MigrationActive', 'data': {} }"
|
||||
|
||||
#define QERR_MIGRATION_NOT_SUPPORTED \
|
||||
"{ 'class': 'MigrationNotSupported', 'data': {'device': %s} }"
|
||||
|
||||
#define QERR_MIGRATION_EXPECTED \
|
||||
"{ 'class': 'MigrationExpected', 'data': {} }"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue