mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
s390x: Dump-skeys hmp support
Add dump-skeys command to the human monitor. Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
7ee0c3e33a
commit
a4538a5cc5
4 changed files with 34 additions and 0 deletions
|
@ -66,6 +66,18 @@ static void write_keys(QEMUFile *f, uint8_t *keys, uint64_t startgfn,
|
|||
}
|
||||
}
|
||||
|
||||
void hmp_dump_skeys(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
const char *filename = qdict_get_str(qdict, "filename");
|
||||
Error *err = NULL;
|
||||
|
||||
qmp_dump_skeys(filename, &err);
|
||||
if (err) {
|
||||
monitor_printf(mon, "%s\n", error_get_pretty(err));
|
||||
error_free(err);
|
||||
}
|
||||
}
|
||||
|
||||
void qmp_dump_skeys(const char *filename, Error **errp)
|
||||
{
|
||||
S390SKeysState *ss = s390_get_skeys_device();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue