s390x/migration: Monitor commands for storage attributes

Add an "info" monitor command to non-destructively inspect the state of
the storage attributes of the guest, and a normal command to toggle
migration mode (useful for debugging).

Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
Claudio Imbrenda 2016-08-15 18:44:04 +02:00 committed by Christian Borntraeger
parent 903fd80b03
commit f860d49753
5 changed files with 99 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#define S390_STORAGE_ATTRIBUTES_H
#include <hw/qdev.h>
#include "monitor/monitor.h"
#define TYPE_S390_STATTRIB "s390-storage_attributes"
#define TYPE_QEMU_S390_STATTRIB "s390-storage_attributes-qemu"
@ -74,4 +75,7 @@ static inline Object *kvm_s390_stattrib_create(void)
}
#endif
void hmp_info_cmma(Monitor *mon, const QDict *qdict);
void hmp_migrationmode(Monitor *mon, const QDict *qdict);
#endif /* S390_STORAGE_ATTRIBUTES_H */