Markus Armbruster
864a3fa439
monitor: Rename misc.c to hmp-target.c
...
What's left in misc.c is exactly the target-dependent part of the HMP
core. Rename accordingly.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-33-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
9d2b5f2ce4
monitor: Loosen coupling between misc.c and monitor.c slightly
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-32-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
e6e108d138
monitor: Move remaining QMP stuff from misc.c to qmp-cmds.c
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-31-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
cbf819979b
monitor: Move remaining HMP commands from misc.c to hmp-cmds.c
...
This requires giving them external linkage. Rename do_help_cmd() to
hmp_help(), and do_print() to hmp_print().
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-30-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
e22455664b
monitor: Move target-dependent HMP commands to hmp-cmds-target.c
...
Target-independent hmp_gpa2hva(), hmp_gpa2hpa() move along to stay
next to hmp_gva2gpa().
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-29-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
dd00d7fa65
monitor: Move monitor_putc() next to monitor_puts & external linkage
...
monitor_putc() will soon be used from more than one .c file.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-28-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
7ef88b5334
monitor: Split file descriptor passing stuff off misc.c
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-27-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
9c9c5ce7f7
qdev: Move HMP command completion from monitor to softmmu/
...
This moves the completion code from MAINTAINERS sections "Human
Monitor (HMP)" and "QMP" to section "QOM".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-26-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
5bd26d78d9
acpi: Move the QMP command from monitor/ to hw/acpi/
...
This moves the command from MAINTAINERS section "QMP" to section
"ACPI/SMBIOS)".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-25-armbru@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2023-02-04 07:56:54 +01:00
Markus Armbruster
6a5fcf6c1e
stats: Move HMP commands from monitor/ to stats/
...
This moves these commands from MAINTAINERS section "Human
Monitor (HMP)" to section "Stats".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-24-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
aa09b3d5f8
stats: Move QMP commands from monitor/ to stats/
...
This moves these commands from MAINTAINERS section "QMP" to new
section "Stats". Status is Orphan. Volunteers welcome!
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-23-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
bab46b8180
runstate: Move HMP commands from monitor/ to softmmu/
...
This moves these commands from MAINTAINERS section "Human
Monitor (HMP)" and "QMP" to "Main loop".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-22-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
0801062c1b
tpm: Move HMP commands from monitor/ to softmmu/
...
This moves these commands from MAINTAINERS section "Human
Monitor (HMP)" to "TPM".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-21-armbru@redhat.com >
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
fa1cea9d0f
virtio: Move HMP commands from monitor/ to hw/virtio/
...
This moves these commands from MAINTAINERS section "Human
Monitor (HMP)" to "virtio".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-20-armbru@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2023-02-04 07:56:54 +01:00
Markus Armbruster
27be86351e
migration: Move the QMP command from monitor/ to migration/
...
This moves the command from MAINTAINERS sections "Human Monitor (HMP)"
and "QMP" to "Migration".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-19-armbru@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
119f50ce30
migration: Move HMP commands from monitor/ to migration/
...
This moves these commands from MAINTAINERS sections "Human
Monitor (HMP)" and "QMP" to "Migration".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-18-armbru@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
ae71d13d4e
net: Move hmp_info_network() to net-hmp-cmds.c
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-17-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
2030ca36bf
net: Move HMP commands from monitor to net/
...
This moves these commands from MAINTAINERS sections "Human
Monitor (HMP)" and "QMP" to "Network device backends".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-16-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
0d79271b57
hmp: Rewrite strlist_from_comma_list() as hmp_split_at_comma()
...
Use g_strsplit() for the actual splitting. Give external linkage, so
the next commit can move one of its users to another source file.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-15-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
52cafcea43
rocker: Move HMP commands from monitor to hw/net/rocker/
...
This moves these commands from MAINTAINERS section "Human
Monitor (HMP)" to "Rocker" and "Network devices".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-14-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
fa1d2f8f63
block: Factor out hmp_change_medium(), and move to block/monitor/
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-13-armbru@redhat.com >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
cffaca0fab
qom: Move HMP commands from monitor/ to qom/
...
This moves these commands from MAINTAINERS sections "Human
Monitor (HMP)" and "QMP" to "QOM".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-12-armbru@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2023-02-04 07:56:54 +01:00
Markus Armbruster
85ea9dfedd
machine: Move HMP commands from monitor/ to hw/core/
...
This moves these commands from MAINTAINERS section "Human
Monitor (HMP)" to "Machine core".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-11-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
d9c631ea9f
machine: Move QMP commands from monitor/ to hw/core/
...
This moves these commands from MAINTAINERS section "QMP" to "Machine
core".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-10-armbru@redhat.com >
2023-02-04 07:56:54 +01:00
Markus Armbruster
29b62a1063
trace: Move HMP commands from monitor/ to trace/
...
This moves these commands from MAINTAINERS sections "Human
Monitor (HMP)" and "QMP" to "Tracing".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20230124121946.1139465-9-armbru@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
2023-02-04 07:56:54 +01:00