[PULL 22/35] virtio: Move HMP commands from monitor/ to hw/virtio/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "Human Monitor (HMP)" to "virtio". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-20-arm...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé --- hw/virtio/virtio-hmp-cmds.c | 321

[PULL 20/35] migration: Move HMP commands from monitor/ to migration/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "Migration". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-18-arm...@redhat.com> Reviewed-by: Juan Quintela --- migration/migration-hmp-cmds.c | 807 +

[PULL 26/35] stats: Move HMP commands from monitor/ to stats/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "Human Monitor (HMP)" to section "Stats". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-24-arm...@redhat.com> --- monitor/hmp-cmds.c | 234 -- stats/stats-hmp-cmds.c | 247

[PULL 09/35] readline: Extract readline_add_completion_of() from monitor

2023-02-03 Thread Markus Armbruster
monitor/misc.h has static add_completion_option(). It's useful elsewhere in the monitor. Since it's not monitor-specific, move it to util/readline.c renamed to readline_add_completion_of(), and put it to use. Signed-off-by: Markus Armbruster Message-Id:

[PULL 07/35] char: Factor out qmp_add_client() parts and move to chardev/

2023-02-03 Thread Markus Armbruster
Code moves from MAINTAINERS section "QMP" to "Character device backends". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-5-arm...@redhat.com> --- include/monitor/qmp-helpers.h | 3 +++ chardev/char.c| 20 monitor/qmp-cmds.c

[PULL 29/35] monitor: Split file descriptor passing stuff off misc.c

2023-02-03 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-27-arm...@redhat.com> --- monitor/fds.c | 468 monitor/misc.c | 434 monitor/meson.build | 1 + 3 files changed, 469

[PULL 08/35] hmp: Drop redundant argument check from add_completion_option()

2023-02-03 Thread Markus Armbruster
No need to check for null arguments, no caller passes them. Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-6-arm...@redhat.com> --- monitor/misc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/monitor/misc.c b/monitor/misc.c index c18a713d9c..d58a81c452 100644 ---

[PULL 10/35] hmp: Rename help_cmd() to hmp_help_cmd(), move declaration to hmp.h

2023-02-03 Thread Markus Armbruster
The next commit will move a caller of help_cmd() to a new file. Including monitor/monitor-internal.h there just for help_cmd() feels silly. Better to provide it in monitor/hmp.h suitably renamed. Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-8-arm...@redhat.com> ---

[PULL 27/35] acpi: Move the QMP command from monitor/ to hw/acpi/

2023-02-03 Thread Markus Armbruster
This moves the command from MAINTAINERS section "QMP" to section "ACPI/SMBIOS)". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-25-arm...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé --- hw/acpi/acpi-qmp-cmds.c | 30 ++ monitor/qmp-cmds.c

[PULL 12/35] machine: Move QMP commands from monitor/ to hw/core/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "QMP" to "Machine core". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-10-arm...@redhat.com> --- hw/core/machine-qmp-cmds.c | 144 + monitor/qmp-cmds.c | 140

[PULL 05/35] audio: Move HMP commands from monitor/ to audio/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "Overall Audio backends". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-3-arm...@redhat.com> --- include/monitor/hmp.h | 3 ++ audio/audio-hmp-cmds.c | 83

[PULL 33/35] monitor: Move remaining QMP stuff from misc.c to qmp-cmds.c

2023-02-03 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-31-arm...@redhat.com> --- monitor/misc.c | 51 monitor/qmp-cmds.c | 53 +- 2 files changed, 52 insertions(+), 52 deletions(-) diff

[PULL 17/35] hmp: Rewrite strlist_from_comma_list() as hmp_split_at_comma()

2023-02-03 Thread Markus Armbruster
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 Message-Id: <20230124121946.1139465-15-arm...@redhat.com> --- include/monitor/hmp.h | 1 + monitor/hmp-cmds.c| 27

[PULL 03/35] MAINTAINERS: Cover tpm.c again

2023-02-03 Thread Markus Armbruster
Commit 800d4deda0 "softmmu: move more files to softmmu/" (v5.2.0) updated MAINTAINERS for all moved files but one. Fix that. Fixes: 800d4deda04be016a95fbbf397c830a2d14ff9f6 Signed-off-by: Markus Armbruster Message-Id: <20230120170104.359690-1-arm...@redhat.com> --- MAINTAINERS | 2 +- 1 file

[PULL 02/35] MAINTAINERS: Cover include/sysemu/accel-blocker.h

2023-02-03 Thread Markus Armbruster
Commit bd688fc931 "accel: introduce accelerator blocker API" aded include/sysemu/accel-blocker.h and accel/accel-blocker.c. MAINTAINERS covers the latter in section "Guest CPU Cores (other accelerators) / Overall", but not the former. Fix that. Signed-off-by: Markus Armbruster Message-Id:

[PULL 31/35] monitor: Move target-dependent HMP commands to hmp-cmds-target.c

2023-02-03 Thread Markus Armbruster
Target-independent hmp_gpa2hva(), hmp_gpa2hpa() move along to stay next to hmp_gva2gpa(). Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-29-arm...@redhat.com> --- include/monitor/hmp-target.h | 6 + monitor/hmp-cmds-target.c| 380 +++

[PULL 21/35] migration: Move the QMP command from monitor/ to migration/

2023-02-03 Thread Markus Armbruster
This moves the command from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "Migration". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-19-arm...@redhat.com> Reviewed-by: Juan Quintela --- migration/migration.c | 30 ++ monitor/misc.c

[PULL 32/35] monitor: Move remaining HMP commands from misc.c to hmp-cmds.c

2023-02-03 Thread Markus Armbruster
This requires giving them external linkage. Rename do_help_cmd() to hmp_help(), and do_print() to hmp_print(). Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-30-arm...@redhat.com> --- include/monitor/hmp.h | 13 +++ monitor/hmp-cmds.c| 219

[PULL 23/35] tpm: Move HMP commands from monitor/ to softmmu/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "Human Monitor (HMP)" to "TPM". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-21-arm...@redhat.com> Reviewed-by: Stefan Berger --- MAINTAINERS| 2 +- monitor/hmp-cmds.c | 54

[PULL 13/35] machine: Move HMP commands from monitor/ to hw/core/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "Human Monitor (HMP)" to "Machine core". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-11-arm...@redhat.com> --- hw/core/machine-hmp-cmds.c | 208 monitor/hmp-cmds.c | 209

[PULL 35/35] monitor: Rename misc.c to hmp-target.c

2023-02-03 Thread Markus Armbruster
What's left in misc.c is exactly the target-dependent part of the HMP core. Rename accordingly. Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-33-arm...@redhat.com> --- monitor/{misc.c => hmp-target.c} | 2 +- monitor/meson.build | 2 +- 2 files changed, 2

[PULL 30/35] monitor: Move monitor_putc() next to monitor_puts & external linkage

2023-02-03 Thread Markus Armbruster
monitor_putc() will soon be used from more than one .c file. Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-28-arm...@redhat.com> --- include/monitor/monitor.h | 1 + monitor/misc.c| 27 --- monitor/monitor.c | 27

[PULL 16/35] rocker: Move HMP commands from monitor to hw/net/rocker/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "Human Monitor (HMP)" to "Rocker" and "Network devices". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-14-arm...@redhat.com> --- hw/net/rocker/rocker-hmp-cmds.c | 316 monitor/hmp-cmds.c

[PULL 06/35] char: Move HMP commands from monitor/ to chardev/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "Character device backends". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-4-arm...@redhat.com> --- chardev/char-hmp-cmds.c | 220

[PULL 00/35] Monitor patches for 2023-02-03

2023-02-03 Thread Markus Armbruster
The following changes since commit deabea6e88f7c4c3c12a36ee30051c6209561165: Merge tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu into staging (2023-02-02 10:10:07 +) are available in the Git repository at: https://repo.or.cz/qemu/armbru.git

[PULL 01/35] MAINTAINERS: Cover userfaultfd

2023-02-03 Thread Markus Armbruster
Commit 0e9b5cd6b2 "migration: introduce UFFD-WP low-level interface helpers" added util/userfaultfd.c without covering it in MAINTAINERS. Add it to section "Migration". Signed-off-by: Markus Armbruster Message-Id: <20230119091545.3116376-2-arm...@redhat.com> Reviewed-by: Dr. David Alan Gilbert

[PULL 25/35] stats: Move QMP commands from monitor/ to stats/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS section "QMP" to new section "Stats". Status is Orphan. Volunteers welcome! Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-23-arm...@redhat.com> --- MAINTAINERS | 5 + meson.build

[PULL 34/35] monitor: Loosen coupling between misc.c and monitor.c slightly

2023-02-03 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-32-arm...@redhat.com> --- monitor/misc.c | 8 +--- monitor/monitor.c| 2 +- storage-daemon/qemu-storage-daemon.c | 4 ++-- 3 files changed, 4 insertions(+), 10 deletions(-) diff

[PULL 04/35] monitor: Drop unnecessary includes

2023-02-03 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-2-arm...@redhat.com> Reviewed-by: Stefan Berger --- monitor/hmp-cmds.c | 4 monitor/hmp.c | 3 --- monitor/misc.c | 14 ++ monitor/monitor.c | 1 -

[PULL 19/35] net: Move hmp_info_network() to net-hmp-cmds.c

2023-02-03 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-17-arm...@redhat.com> --- include/monitor/hmp.h | 1 + include/net/net.h | 4 +++- monitor/hmp-cmds.c| 1 - monitor/misc.c| 1 - net/net-hmp-cmds.c| 28 net/net.c

[PULL 14/35] qom: Move HMP commands from monitor/ to qom/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "QOM". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-12-arm...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé --- monitor/hmp-cmds.c | 19 - monitor/misc.c | 49

[PULL 15/35] block: Factor out hmp_change_medium(), and move to block/monitor/

2023-02-03 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-13-arm...@redhat.com> Reviewed-by: Stefan Hajnoczi Reviewed-by: Stefan Berger --- include/monitor/hmp.h | 3 +++ block/monitor/block-hmp-cmds.c | 21 + monitor/hmp-cmds.c | 17

Re: [RFC PATCH] gitlab: call ninja directly and reduce build noise

2023-02-03 Thread Philippe Mathieu-Daudé
On 3/2/23 08:58, Thomas Huth wrote: On 02/02/2023 19.59, Alex Bennée wrote: Alex Bennée writes: A significant portion of our CI logs are just enumerating each successfully built object file. The current widespread versions of ninja don't have a quiet option so we use NINJA_STATUS to add a

[PULL 18/35] net: Move HMP commands from monitor to net/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "Network device backends". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-16-arm...@redhat.com> --- monitor/hmp-cmds.c | 61 --- monitor/misc.c | 56

[PULL 11/35] trace: Move HMP commands from monitor/ to trace/

2023-02-03 Thread Markus Armbruster
This moves these commands from MAINTAINERS sections "Human Monitor (HMP)" and "QMP" to "Tracing". Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-9-arm...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Hajnoczi --- include/monitor/hmp.h | 3 +

Re: [PATCH] hostmem-file: add offset option

2023-02-03 Thread David Hildenbrand
On 02.02.23 23:56, Alexander Graf wrote: Add an option for hostmem-file to start the memory object at an offset into the target file. This is useful if multiple memory objects reside inside the same target file, such as a device node. In particular, it's useful to map guest memory directly into

Re: [PATCH v10 3/5] riscv: Allow user to set the satp mode

2023-02-03 Thread Frank Chang
On Fri, Feb 3, 2023 at 2:01 PM Alexandre Ghiti wrote: > RISC-V specifies multiple sizes for addressable memory and Linux probes for > the machine's support at startup via the satp CSR register (done in > csr.c:validate_vm). > > As per the specification, sv64 must support sv57, which in turn must

Re: [PATCH v10 4/5] riscv: Introduce satp mode hw capabilities

2023-02-03 Thread Frank Chang
Reviewed-by: Frank Chang On Fri, Feb 3, 2023 at 2:02 PM Alexandre Ghiti wrote: > Currently, the max satp mode is set with the only constraint that it must > be > implemented in QEMU, i.e. set in valid_vm_1_10_[32|64]. > > But we actually need to add another level of constraint: what the hw is

<    1   2   3   4