[PULL 3/5] qmp: add new qmp display-reload

2021-03-23 Thread Gerd Hoffmann
From: Zihao Chang This patch provides a new qmp to reload display configuration without restart VM, but only reloading the vnc tls certificates is implemented. Example: {"execute": "display-reload", "arguments":{"type": "vnc", "tls-certs": true}} Signed-off-by: Zihao Chang Message-Id: <20210316

[PULL 5/5] edid: prefer standard timings

2021-03-23 Thread Gerd Hoffmann
Windows guests using the "Basic Display Adapter" don't parse the "Established timings III" block. They also don't parse any edid extension. So prefer the "Standard Timings" block to store the display resolutions in edid_fill_modes(). Also reorder the mode list, so more exotic resolutions (specif

[PULL 2/5] vnc: support reload x509 certificates for vnc

2021-03-23 Thread Gerd Hoffmann
From: Zihao Chang This patch add vnc_display_reload_certs() to support update x509 certificates. Signed-off-by: Zihao Chang Reviewed-by: Daniel P. Berrangé Message-Id: <20210316075845.1476-3-changzih...@huawei.com> Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 + ui/vnc.c

Re: [PATCH 25/28] tests/qapi-schema: Switch member name clash test to struct

2021-03-23 Thread Eric Blake
On 3/23/21 4:40 AM, Markus Armbruster wrote: > Test args-name-clash covers command parameter name clash. This > effectively covers struct member name clash as well. The next commit > will make paramater name clash impossible. Convert args-name-clash parameter > from testing command to testing

Re: [PATCH 06/28] tests/qapi-schema: Tweak to demonstrate buggy member name check

2021-03-23 Thread Markus Armbruster
John Snow writes: > On 3/23/21 5:40 AM, Markus Armbruster wrote: >> Member name 'u' and names starting with 'has-' or 'has_' are reserved >> for the generator. check_type() enforces this, covered by tests >> reserved-member-u and reserved-member-has. >> These tests neglect to cover optional memb

[PATCH] tests/migration: fix parameter of auto-converge migration

2021-03-23 Thread huangy81
From: Hyman Huang(黄勇) when execute the following test command: $ ./guestperf-batch.py --auto-converge \ --auto-converge-step {percent} ... test aborts and error message be throwed as the following: "Parameter 'x-cpu-throttle-increment' is unexpected" The reason is that 'x-cpu-throttle-increm

[RFC v11 09/55] target/arm: only build psci for TCG

2021-03-23 Thread Claudio Fontana
We do not move psci.c to tcg/ because we expect other hypervisors to use it (waiting for HVF enablement). Signed-off-by: Claudio Fontana Cc: Alexander Graf --- target/arm/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/target/arm/meson.build b/target/arm/meson.build index 01

[RFC v11 18/55] target/arm: move cpsr_read, cpsr_write to cpu_common

2021-03-23 Thread Claudio Fontana
we need as a result to move switch_mode too, so we put an implementation into cpu_user and cpu_sysemu. Signed-off-by: Claudio Fontana --- target/arm/cpu.h| 2 + target/arm/cpu-common.c | 192 +++ target/arm/cpu-sysemu.c | 30 ++ target/arm/cpu-user.

Re: [PATCH 26/28] qapi: Enforce struct member naming rules

2021-03-23 Thread Eric Blake
On 3/23/21 4:40 AM, Markus Armbruster wrote: > Struct members, including command arguments, event data, and union > inline base members, should use '-', not '_'. Enforce this. Fix the > fixable offenders (all in tests/), and add the remainder to pragma > member-name-exceptions. > > Signed-off-by

[RFC v11 17/55] target/arm: kvm: add stubs for some helpers

2021-03-23 Thread Claudio Fontana
at least the armv7m one should go away with proper configuration changes (only enabling possible boards for KVM). Signed-off-by: Claudio Fontana --- target/arm/kvm/helper-stubs.c | 27 +++ target/arm/kvm/meson.build| 3 +++ target/arm/meson.build| 1 + 3 fil

[RFC v11 10/55] target/arm: split off cpu-sysemu.c

2021-03-23 Thread Claudio Fontana
move work is needed later on to split things into tcg-specific portions and kvm-specific portions of this Signed-off-by: Claudio Fontana Reviewed-by: Alex Bennée --- target/arm/internals.h | 8 ++- target/arm/cpu-sysemu.c | 105 target/arm/cpu.c

[RFC v11 19/55] target/arm: add temporary stub for arm_rebuild_hflags

2021-03-23 Thread Claudio Fontana
this should go away once the configuration and hw/arm is clean Signed-off-by: Claudio Fontana --- hw/arm/boot.c | 5 - target/arm/arm-powerctl.c | 8 +--- target/arm/kvm/helper-stubs.c | 6 ++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/hw/arm/

[RFC v11 12/55] target/arm: cpu-mmu: fix comment style

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana --- target/arm/cpu-mmu.h| 3 +- target/arm/cpu-mmu-sysemu.c | 149 2 files changed, 101 insertions(+), 51 deletions(-) diff --git a/target/arm/cpu-mmu.h b/target/arm/cpu-mmu.h index fdedc8fb92..01b060613a 100644 --- a/

Re: [PATCH 27/28] qapi: Enforce enum member naming rules

2021-03-23 Thread Eric Blake
On 3/23/21 4:40 AM, Markus Armbruster wrote: > Enum members should use '-', not '_'. Enforce this. Fix the fixable > offenders (all in tests/), and add the remainder to pragma > member-name-exceptions. > > Signed-off-by: Markus Armbruster > --- Reviewed-by: Eric Blake -- Eric Blake, Princip

[RFC v11 21/55] target/arm: move arm_mmu_idx* to cpu-mmu

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana --- target/arm/cpu-mmu.c| 95 + target/arm/tcg/helper.c | 95 - 2 files changed, 95 insertions(+), 95 deletions(-) diff --git a/target/arm/cpu-mmu.c b/target/arm/cpu-mmu.c index f46

[RFC v11 15/55] target/arm: move cpu definitions to common cpu module

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana --- target/arm/cpu-common.c | 41 + target/arm/tcg/helper.c | 29 - target/arm/meson.build | 1 + 3 files changed, 42 insertions(+), 29 deletions(-) create mode 100644 target/arm/cpu-common.c di

[RFC v11 25/55] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code

2021-03-23 Thread Claudio Fontana
and arm_phys_excp_target_el since it is tied up inside the same #ifdef block. aarch64_sync_32_to_64 and aarch64_sync_64_to_32 are mixed in with the TCG helpers, but they shouldn't, as they are needed for KVM too. kvm_arch_get_registers() { if (!is_a64(env)) { aarch64_sync_64_to_32(env

[RFC v11 23/55] target/arm: move arm_sctlr away from tcg helpers

2021-03-23 Thread Claudio Fontana
this function is used for kvm too, add it to the cpu-common module. Signed-off-by: Claudio Fontana --- target/arm/cpu-common.c | 11 +++ target/arm/tcg/helper.c | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/target/arm/cpu-common.c b/target/arm/cpu-com

[RFC v11 24/55] target/arm: move arm_cpu_list to common_cpu

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana Reviewed-by: Richard Henderson --- target/arm/cpu-common.c | 42 + target/arm/tcg/helper.c | 41 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/target/arm/cpu-common.

[RFC v11 33/55] target/arm: cleanup cpu includes

2021-03-23 Thread Claudio Fontana
cpu.c, cpu32.c, cpu64.c, tcg/sysemu/tcg-cpu.c, all need a good cleanup when it comes to included header files. Signed-off-by: Claudio Fontana --- target/arm/cpu.c| 8 ++-- target/arm/cpu32.c | 14 -- target/arm/cpu64.c | 6 -- targ

[RFC v11 22/55] target/arm: move sve_zcr_len_for_el to common_cpu

2021-03-23 Thread Claudio Fontana
it is required by arch-dump.c and cpu.c, so apparently we need this for KVM too Signed-off-by: Claudio Fontana --- target/arm/cpu-common.c | 43 + target/arm/tcg/helper.c | 33 --- 2 files changed, 43 insertions(+), 33 deletions

[RFC v11 28/55] target/arm: refactor exception and cpu code

2021-03-23 Thread Claudio Fontana
move exception code out of tcg/ as we need part of it for KVM too. put the exception code into separate cpu modules as appropriate, including: cpu-sysemu.c tcg/tcg-cpu.c tcg/sysemu/tcg-cpu.c to avoid naming confusion with the existing cpu_tcg.c, containg cpu models definitions for 32bit TCG-only

[RFC v11 16/55] target/arm: only perform TCG cpu and machine inits if TCG enabled

2021-03-23 Thread Claudio Fontana
of note, cpreg lists were previously initialized by TCG first, and then thrown away and replaced with the data coming from KVM. Now we just initialize once, either for TCG or for KVM. Signed-off-by: Claudio Fontana --- target/arm/cpu.c | 32 ++-- target/arm/kvm.c

[RFC v11 26/55] target/arm: split a15 cpu model and 32bit class functions to cpu32.c

2021-03-23 Thread Claudio Fontana
provide helper functions there to initialize 32bit models, and export the a15 cpu model. We still need to keep around a15 until we sort out the board configurations. cpu.c will continue to contain the common parts between 32 and 64. Note that we need to build cpu32 also for TARGET_AARCH64, becau

[RFC v11 36/55] tests: restrict TCG-only arm-cpu-features tests to TCG builds

2021-03-23 Thread Claudio Fontana
sve_tests_sve_max_vq_8, sve_tests_sve_off, test_query_cpu_model_expansion all require TCG to run. Skip them for KVM-only builds. Signed-off-by: Claudio Fontana --- tests/qtest/arm-cpu-features.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tests/qtest/arm-cpu-features.c

[RFC v11 34/55] target/arm: remove broad "else" statements when checking accels

2021-03-23 Thread Claudio Fontana
There might be more than just KVM and TCG in the future, so where appropriate, replace broad "else" statements with the appropriate if (accel_enabled()) check. Also invert some checks for !kvm_enabled() or !tcg_enabled() where it seems appropriate to do so. Note that to make qtest happy we need t

[RFC v11 14/55] target/arm: cpregs: fix style (mostly just comments)

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana --- target/arm/cpregs.h | 54 ++--- target/arm/cpregs.c | 60 ++ target/arm/tcg/cpregs.c | 253 ++-- 3 files changed, 241 insertions(+), 126 deletions(-) diff --git a/target/arm/cpregs.h b/target/arm/cpregs.

[RFC v11 30/55] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled()

2021-03-23 Thread Claudio Fontana
After this patch it is possible to build only kvm: ./configure --disable-tcg --enable-kvm Signed-off-by: Claudio Fontana --- target/arm/cpu-sysemu.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/target/arm/cpu-sysemu.c b/target/arm/cpu-sysemu.c index eb928832a

[RFC v11 39/55] tests: do not run qom-test on all machines for ARM KVM-only

2021-03-23 Thread Claudio Fontana
on ARM we currently list and build all machines, even when building KVM-only, without TCG. Until we fix this (and we only list and build machines that are compatible with KVM), only test specifically using the "virt" machine in this case. Signed-off-by: Claudio Fontana Cc: Philippe Mathieu-Daudé

[RFC v11 40/55] Revert "target/arm: Restrict v8M IDAU to TCG"

2021-03-23 Thread Claudio Fontana
This reverts commit 6e937ba7f8fb90d66cb3781f7fed32fb4239556a This change breaks quickly at startup, as all interfaces in boards are checked in vl.c in select_machine(): { GSList *machines = object_class_get_list(TYPE_MACHINE, false); } In order to restrict v8M IDAU to TCG, we need to first disa

[RFC v11 31/55] target/arm: remove kvm include file for PSCI and arm-powerctl

2021-03-23 Thread Claudio Fontana
The QEMU PSCI implementation is not used for KVM, we do not need the kvm constants header. Signed-off-by: Claudio Fontana --- target/arm/arm-powerctl.h | 2 -- target/arm/psci.c | 1 - 2 files changed, 3 deletions(-) diff --git a/target/arm/arm-powerctl.h b/target/arm/arm-powerctl.h ind

[RFC v11 37/55] tests: do not run test-hmp on all machines for ARM KVM-only

2021-03-23 Thread Claudio Fontana
on ARM we currently list and build all machines, even when building KVM-only, without TCG. Until we fix this (and we only list and build machines that are compatible with KVM), only test specifically using the "virt" machine in this case. Signed-off-by: Claudio Fontana Cc: Philippe Mathieu-Daudé

[RFC v11 20/55] target/arm: split vfp state setting from tcg helpers

2021-03-23 Thread Claudio Fontana
cpu-vfp.c: vfp_get_fpsr and vfp_set_fpsr are needed also for KVM, so create a new cpu-vfp.c tcg/cpu-vfp.c: vfp_get_fpscr_from_host and vv are TCG-only, so we move the implementation to tcg/cpu-vfp.c kvm/helper-stubs.c: vfp_get_fpscr_from_host and vv stubs for KVM. Signe

[RFC v11 38/55] tests: device-introspect-test: cope with ARM TCG-only devices

2021-03-23 Thread Claudio Fontana
Skip the test_device_intro_concrete for now for ARM KVM-only build, as on ARM we currently build devices for ARM that are not compatible with a KVM-only build. We can remove this workaround when we fix this in KConfig etc, and we only list and build machines that are compatible with KVM for KVM-on

[RFC v11 35/55] tests/qtest: skip bios-tables-test test_acpi_oem_fields_virt for KVM

2021-03-23 Thread Claudio Fontana
test is TCG-only. Signed-off-by: Claudio Fontana Cc: Philippe Mathieu-Daudé --- tests/qtest/bios-tables-test.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index e020c83d2a..bd7b85909c 100644 --- a/tests/qtest/bios-ta

[RFC v11 27/55] target/arm: move sve_exception_el out of TCG helpers

2021-03-23 Thread Claudio Fontana
we need this for KVM too. Signed-off-by: Claudio Fontana --- target/arm/cpu-sysemu.c | 60 target/arm/cpu-user.c | 5 target/arm/tcg/helper.c | 61 - 3 files changed, 65 insertions(+), 61 deletions(-) diff

[RFC v11 41/55] target/arm: create kvm cpu accel class

2021-03-23 Thread Claudio Fontana
move init, realizefn and reset code into it. Signed-off-by: Claudio Fontana --- target/arm/internals.h | 1 - target/arm/cpu-sysemu.c| 32 -- target/arm/cpu.c | 48 ++ target/arm/kvm/kvm-cpu.c | 128 + target/arm/kvm

[RFC v11 43/55] target/arm: add tcg cpu accel class

2021-03-23 Thread Claudio Fontana
move init, realizefn and reset code into it. Signed-off-by: Claudio Fontana Cc: Paolo Bonzini --- target/arm/tcg/tcg-cpu.h| 4 ++- target/arm/cpu.c| 44 ++ target/arm/tcg/sysemu/tcg-cpu.c | 27 target/arm/tcg/tcg-cpu-models.c | 1

[RFC v11 29/55] target/arm: cpu: fix style

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana Reviewed-by: Philippe Mathieu-Daudé --- target/arm/cpu-sysemu.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/target/arm/cpu-sysemu.c b/target/arm/cpu-sysemu.c index 126263dbf4..eb928832a9 100644 --- a/target/arm/cpu-sysemu.

[RFC v11 50/55] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64

2021-03-23 Thread Claudio Fontana
restrict zcr_el1, zcr_el2, zcr_no_el2, zcr_el3 reginfo, as well as related SVE functions. Signed-off-by: Claudio Fontana --- target/arm/cpu.h | 7 --- target/arm/tcg/cpu-sve.h | 7 +++ linux-user/syscall.c | 4 target/arm/cpu-exceptions-aa64.c

[RFC v11 48/55] target/arm: arch_dump: restrict ELFCLASS64 to AArch64

2021-03-23 Thread Claudio Fontana
this will allow us to restrict more code to TARGET_AARCH64 Signed-off-by: Claudio Fontana --- target/arm/helper-a64.h | 2 ++ target/arm/helper.h | 1 - target/arm/arch_dump.c | 12 +++- target/arm/cpu.c| 1 - target/arm/cpu64.c | 4 target/arm/tcg/helper.c | 1

[RFC PATCH 00/13] blobs: Only install required (system emulation) files

2021-03-23 Thread Philippe Mathieu-Daudé
When building a subset of targets, we don't need to install a bunch of unrelated files. This series restrict the installed blobs to what is simply required. Combined with Paolo's series converting pc-bios/Makefile to Meson, this should reduce the (CI) build cycles some more. RFC because there is p

[RFC v11 32/55] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/

2021-03-23 Thread Claudio Fontana
and adapt the code including the header references, and trace-events / trace.h Signed-off-by: Claudio Fontana --- meson.build | 2 +- target/arm/cpu.h | 2 +- target/arm/{ => kvm}/kvm-consts.h | 0 target/arm/{ => kvm}/kvm_arm.h| 0 target/arm/kvm/t

[RFC v11 51/55] target/arm: cpu-pauth: new module for ARMv8.3 Pointer Authentication

2021-03-23 Thread Claudio Fontana
Pointer Authentication is an AARCH64-only ARMv8.3 optional extension, whose cpu properties can be separated out in its own module. Signed-off-by: Claudio Fontana --- target/arm/cpu.h | 13 +--- target/arm/tcg/cpu-pauth.h | 38 ++ target/arm/cpu.c | 3

[RFC v11 47/55] target/arm: make is_aa64 and arm_el_is_aa64 a macro for !TARGET_AARCH64

2021-03-23 Thread Claudio Fontana
when TARGET_AARCH64 is not defined, it is helpful to make is_aa64() and arm_el_is_aa64 macros defined to "false". This way we can make more code TARGET_AARCH64-only. Signed-off-by: Claudio Fontana --- target/arm/cpu.h| 37 - target/arm/cpu-mmu-sys

[RFC PATCH 01/13] blobs: Use Meson source_set to store blob files

2021-03-23 Thread Philippe Mathieu-Daudé
As we want to conditionally install blob files, declare them using a source set. Signed-off-by: Philippe Mathieu-Daudé --- pc-bios/meson.build | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pc-bios/meson.build b/pc-bios/meson.build index f2b32598af7..1c4074bcb0d 1

[RFC v11 42/55] target/arm: move kvm post init initialization to kvm cpu accel

2021-03-23 Thread Claudio Fontana
Signed-off-by: Claudio Fontana --- target/arm/cpu.c | 4 target/arm/kvm/kvm-cpu.c | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 5a76461e5b..5e0f6bd01d 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -778,10 +778

[RFC v11 54/55] target/arm: tcg: remove superfluous CONFIG_TCG check

2021-03-23 Thread Claudio Fontana
modules under tcg/ are only built for CONFIG_TCG anyway. Signed-off-by: Claudio Fontana --- target/arm/tcg/vfp_helper.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/target/arm/tcg/vfp_helper.c b/target/arm/tcg/vfp_helper.c index 521719f327..0cc6c85270 100644 --- a/target/arm/tcg/vfp_

[RFC v11 49/55] target/arm: cpu-exceptions: new module

2021-03-23 Thread Claudio Fontana
extract the exception handling code from cpu-sysemu, and split it into general arm code and an AArch64-specific part. Signed-off-by: Claudio Fontana --- target/arm/cpu-exceptions-aa64.h | 32 + target/arm/cpu.h | 4 - target/arm/arch_dump.c | 1 + target/arm/cpu-ex

[RFC PATCH 02/13] blobs: Only install EDK2 license file if EDK2 blobs are installed

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Laszlo Ersek Cc: Philippe Mathieu-Daudé --- pc-bios/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pc-bios/meson.build b/pc-bios/meson.build index 1c4074bcb0d..d270d8516c9 100644 --- a/pc-bios/meson.build +++ b/pc-

[RFC v11 44/55] target/arm: move TCG gt timer creation code in tcg/

2021-03-23 Thread Claudio Fontana
we need to be careful not to use if (tcg_enabled()) here, because of the VMSTATE definitions in machine.c, which are only protected by CONFIG_TCG, and thus it would break the --enable-tcg --enable-kvm build. Signed-off-by: Claudio Fontana --- target/arm/tcg/tcg-cpu.h| 1 + target/arm/

[RFC v11 53/55] XXX target/arm: experiment refactoring cpu "max"

2021-03-23 Thread Claudio Fontana
XXX Someone who really understands which properties should be added where should review this attentively. What goes into cpu leaf class initialization? What goes into arm_post_init / accel_cpu? What goes into arm_cpu_finalize_features / aarch64_cpu_finalize_features? Should there be shift of more

[Bug 1920934] Re: Heap-use-after-free in io_writex / cputlb.c results in Linux kernel crashes

2021-03-23 Thread Marco Elver
Yes, I have: commit 5ca634afcf83215a9a54ca6e66032325b5ffb5f6 (HEAD -> master, origin/master, origin/HEAD) Merge: c95bd5ff16 cffb446e8f Author: Peter Maydell Date: Mon Mar 22 18:50:25 2021 + Or another branch? -- You received this bug notification becau

[RFC v11 46/55] target/arm: cpu-sve: split TCG and KVM functionality

2021-03-23 Thread Claudio Fontana
put the KVM-specific and TCG-specific functionality in the respective subdirectories kvm/ and tcg/ Signed-off-by: Claudio Fontana --- target/arm/cpu-sve.h | 2 +- target/arm/kvm/cpu-sve.h | 30 +++ target/arm/tcg/cpu-sve.h | 24 ++ target/arm/cpu-sve.c | 166 +

[RFC PATCH 03/13] blobs: Only install qemu-nsis.bmp on Windows host

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Stefan Weil --- pc-bios/meson.build | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pc-bios/meson.build b/pc-bios/meson.build index d270d8516c9..007cf9d2afb 100644 --- a/pc-bios/meson.build +++ b/pc-bios/meson.build @@ -60,7

Re: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"

2021-03-23 Thread Willian Rampazzo
Hi Peter, On Tue, Mar 23, 2021 at 12:28 PM Peter Maydell wrote: > > I just got this running 'make check-acceptance': does it > ring a bell with anybody? > > [etc] > Fetching asset from > tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio > Fetching asset from > tests

[RFC PATCH 06/13] blobs: Only install PA-RISC SeaBIOS if hppa system target is built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Richard Henderson Cc: Helge Deller --- meson.build | 2 ++ pc-bios/meson.build | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 10c21ef52af..a7f3b60d08e 100644 --- a/meson.build +++ b

[RFC v11 45/55] target/arm: cpu-sve: new module

2021-03-23 Thread Claudio Fontana
extract the SVE-related cpu object properties and functions, and move them to a separate module. Disentangle SVE from pauth that is a separate, TCG-only feature. Signed-off-by: Claudio Fontana --- target/arm/cpu-sve.h | 40 + target/arm/cpu.h | 22 +-- target/arm/cpu-sve.c

[RFC PATCH 07/13] blobs: Only install DT blobs if microblaze system targets are built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Edgar E. Iglesias --- meson.build | 2 ++ pc-bios/meson.build | 9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index a7f3b60d08e..e3418815b04 100644 --- a/meson.build +++ b/meson.build @@

Re: [PATCH 07/28] qapi: Fix to reject optional members with reserved names

2021-03-23 Thread Markus Armbruster
John Snow writes: > On 3/23/21 5:40 AM, Markus Armbruster wrote: >> check_type() fails to reject optional members with reserved names, >> because it neglects to strip off the leading '*'. Fix that. >> The stripping in check_name_str() is now useless. Drop. >> Also drop the "no leading '*'" asse

[RFC PATCH 09/13] blobs: Only install firmware blobs if riscv system targets are built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Palmer Dabbelt Cc: Alistair Francis Cc: Sagar Karandikar Cc: Bastian Koppelmann Cc: qemu-ri...@nongnu.org --- meson.build | 2 ++ pc-bios/meson.build | 13 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/meso

[RFC v11 52/55] target/arm: refactor arm_cpu_finalize_features into cpu64

2021-03-23 Thread Claudio Fontana
all the features in arm_cpu_finalize_features are actually TARGET_AARCH64-only, since KVM is now only supported on 64bit. Therefore move the function to cpu64, and rename it to aarch64_cpu_finalize_features. Signed-off-by: Claudio Fontana --- target/arm/cpu.h | 3 +- target/arm/kvm/kvm

[RFC PATCH 04/13] blobs: Only install PALcode blob if alpha system target is built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Richard Henderson --- meson.build | 2 ++ pc-bios/meson.build | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5c85a15364d..b5b8892fe7a 100644 --- a/meson.build +++ b/meson.build @@ -9

[RFC PATCH 08/13] blobs: Only install blobs if powerpc system targets are built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: David Gibson Cc: Greg Kurz Cc: qemu-...@nongnu.org Cc: Mark Cave-Ayland Cc: Hervé Poussineau Cc: Cédric Le Goater Cc: BALATON Zoltan --- meson.build | 2 ++ pc-bios/meson.build | 21 + 2 files changed, 15 insertions(

[RFC v11 55/55] target/arm: remove v7m stub function for !CONFIG_TCG

2021-03-23 Thread Claudio Fontana
it is needed just once, so just move the CONFIG_TCG check in place. Signed-off-by: Claudio Fontana --- target/arm/cpu-mmu.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/target/arm/cpu-mmu.c b/target/arm/cpu-mmu.c index c6ac90a61e..9969bc9d30 100644 --- a/target/ar

[RFC PATCH 05/13] blobs: Only install npcm7xx bootrom if ARM system targets are built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Havard Skinnemoen Cc: Tyrone Ting Cc: qemu-...@nongnu.org --- meson.build | 2 ++ pc-bios/meson.build | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index b5b8892fe7a..10c21ef52af 100644

[RFC PATCH 13/13] meson: Only build ROM/BIOS when system emulation is built

2021-03-23 Thread Philippe Mathieu-Daudé
As it is pointless to build ROMs/BIOS for user-only emulation, restrict this directory to system-mode emulation. Signed-off-by: Philippe Mathieu-Daudé --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e484670c5b7..457a07047b1 1

[PATCH v3 0/3] exec: Build page-vary-common.c with -fno-lto

2021-03-23 Thread Richard Henderson
I think there's additional cleanup to be done here, where we can move these two files from top-level to either accel/tcg/ or softmmu/. But that will have to wait for the next devel cycle. Changes from Phil's v2: Update MAINTAINERS. r~ Richard Henderson (3): exec: Rename exec-vary.c as page-v

[RFC PATCH 10/13] blobs: Only install s390x firmwares if s390x system target is built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Cornelia Huck Cc: Thomas Huth Cc: qemu-s3...@nongnu.org --- meson.build | 2 ++ pc-bios/meson.build | 9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4b614b30ed9..fccda30ffc7 100644

Re: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"

2021-03-23 Thread Cleber Rosa
- Original Message - > From: "Peter Maydell" > To: "QEMU Developers" > Cc: "Cleber Rosa" > Sent: Tuesday, March 23, 2021 11:23:30 AM > Subject: 'make check-acceptance' odd error: "'bytes' object has no attribute > 'encode'" > > I just got this running 'make check-acceptance': does i

[RFC PATCH 11/13] blobs: Only install SPARC firmwares if sparc system targets are built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Mark Cave-Ayland Cc: Artyom Tarasenko --- meson.build | 2 ++ pc-bios/meson.build | 9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index fccda30ffc7..addea8c39d7 100644 --- a/meson.build

Re: [PATCH 08/28] qapi: Support flat unions tag values with leading digit

2021-03-23 Thread Markus Armbruster
John Snow writes: > On 3/23/21 5:40 AM, Markus Armbruster wrote: >> Flat union tag values get checked twice: as enum member name, and as >> union branch name. The former accepts leading digits, the latter >> doesn't. The restriction feels arbitrary. Skip the latter check. >> This can expose c_

Re: [RFC PATCH 03/13] blobs: Only install qemu-nsis.bmp on Windows host

2021-03-23 Thread Stefan Weil
Am 23.03.21 um 16:51 schrieb Philippe Mathieu-Daudé: Signed-off-by: Philippe Mathieu-Daudé --- Cc: Stefan Weil --- pc-bios/meson.build | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pc-bios/meson.build b/pc-bios/meson.build index d270d8516c9..007cf9d2afb 100644 --

[RFC PATCH 12/13] blobs: Only install x86 blobs if x86 system targets are built

2021-03-23 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- Cc: Paolo Bonzini Cc: Eduardo Habkost Cc: Michael S. Tsirkin Cc: Marcel Apfelbaum --- meson.build | 2 ++ pc-bios/meson.build | 23 ++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.bu

Re: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"

2021-03-23 Thread Philippe Mathieu-Daudé
Cc'ing avocado-devel@ On 3/23/21 4:23 PM, Peter Maydell wrote: > I just got this running 'make check-acceptance': does it > ring a bell with anybody? > > [etc] > Fetching asset from > tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio > Fetching asset from > tests/ac

Re: [PATCH 28/28] qapi: Enforce union and alternate branch naming rules

2021-03-23 Thread Eric Blake
On 3/23/21 4:40 AM, Markus Armbruster wrote: > Union branche names should use '-', not '_'. Enforce this. The only branch > offenders are in tests/. Fix them. > > Signed-off-by: Markus Armbruster > --- Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: [PATCH 1/4] qemu-iotests: allow passing unittest.main arguments to the test scripts

2021-03-23 Thread Vladimir Sementsov-Ogievskiy
23.03.2021 18:29, Paolo Bonzini wrote: On 23/03/21 15:34, Vladimir Sementsov-Ogievskiy wrote: +    def __init__(self, *args, **kwargs): +    super().__init__(stream=ReproducibleTextTestRunner.output, *args, **kwargs) over-79 line (PEP8) Ok, thanks. + +def execute_unittest(argv, debug=

[PATCH v2 1/3] hw/display/bcm2835_fb: Resize console on reset

2021-03-23 Thread Philippe Mathieu-Daudé
We want to remove the bcm2835_fb_reset() call in bcm2835_fb_realize() but doing triggers: hw/display/bcm2835_fb.c:131:13: runtime error: store to null pointer of type 'uint32_t' (aka 'unsigned int') SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior hw/display/bcm2835_fb.c:131:13 in A

[PATCH v2 08/22] linux-user/riscv: initialise the TaskState heap/stack info

2021-03-23 Thread Alex Bennée
Arguably the target_cpu_copy_regs function for each architecture is misnamed as a number of the architectures also take the opportunity to fill out the TaskState structure. This could arguably be factored out into common code but that would require a wider audit of the architectures. For now just r

Re: [PATCH v8] drivers/misc: sysgenid: add system generation id driver

2021-03-23 Thread Catangiu, Adrian Costin
Hi Greg, After your previous reply on this thread we started considering to provide this interface and framework/functionality through a userspace service instead of a kernel interface. The latest iteration on this evolving patch-set doesn’t have strong reasons for living in the kernel anymore

[PATCH v2 0/3] hw/display/bcm2835_fb: Remove DeviceReset() call in DeviceRealize()

2021-03-23 Thread Philippe Mathieu-Daudé
Since v1: Resize console on reset to create the surface, see: https://www.mail-archive.com/qemu-devel@nongnu.org/msg794307.html Philippe Mathieu-Daudé (3): hw/display/bcm2835_fb: Resize console on reset hw/display/bcm2835_fb: Use bcm2835_fb_reconfigure in bcm2835_fb_reset hw/display/bcm2835_

[PATCH v2 06/22] semihosting/arm-compat-semi: unify GET/SET_ARG helpers

2021-03-23 Thread Alex Bennée
>>From the semihosting point of view what we want to know is the current mode of the processor. Unify this into a single helper and allow us to use the same GET/SET_ARG helpers for the rest of the code. Having the helper will also be useful later. Note: we aren't currently testing riscv32 due to m

[PATCH v2 2/3] hw/display/bcm2835_fb: Use bcm2835_fb_reconfigure in bcm2835_fb_reset

2021-03-23 Thread Philippe Mathieu-Daudé
Directly use bcm2835_fb_reconfigure() instead of open coding it. Signed-off-by: Philippe Mathieu-Daudé --- hw/display/bcm2835_fb.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c index 3e63d58e0b2..a9c2e57d1c6 100644 ---

[PATCH v2 3/3] hw/display/bcm2835_fb: Remove DeviceReset() call in DeviceRealize()

2021-03-23 Thread Philippe Mathieu-Daudé
When QDev objects have their DeviceReset handler set, they shouldn't worry about calling it at realization stage (it is handled by hw/core/qdev.c::device_set_realized). Remove the pointless/confusing bcm2835_fb_reset() call. Signed-off-by: Philippe Mathieu-Daudé --- hw/display/bcm2835_fb.c | 2

Re: [PATCH 2/4] qemu-iotests: move command line and environment handling from TestRunner to TestEnv

2021-03-23 Thread Vladimir Sementsov-Ogievskiy
23.03.2021 16:06, Paolo Bonzini wrote: In the next patch, "check" will learn how to execute a test script without going through TestRunner. To enable this, keep only the text output and subprocess handling in the TestRunner; move into TestEnv the logic to prepare for running a subprocess. Signe

Ways to deal with broken machine types

2021-03-23 Thread Igor Mammedov
On Tue, 23 Mar 2021 16:04:11 +0100 Thomas Lamprecht wrote: > On 23.03.21 15:55, Vitaly Cheptsov wrote: > >> 23 марта 2021 г., в 17:48, Michael S. Tsirkin написал(а): > >> > >> The issue is with people who installed a VM using 5.1 qemu, > >> migrated to 5.2, booted there and set a config on a dev

Re: [RFC PATCH 02/13] blobs: Only install EDK2 license file if EDK2 blobs are installed

2021-03-23 Thread Laszlo Ersek
On 03/23/21 16:51, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > Cc: Laszlo Ersek > Cc: Philippe Mathieu-Daudé > --- > pc-bios/meson.build | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/pc-bios/meson.build b/pc-bios/meson.build > inde

Re: [RFC PATCH 13/13] meson: Only build ROM/BIOS when system emulation is built

2021-03-23 Thread Thomas Huth
On 23/03/2021 16.51, Philippe Mathieu-Daudé wrote: As it is pointless to build ROMs/BIOS for user-only emulation, restrict this directory to system-mode emulation. Signed-off-by: Philippe Mathieu-Daudé --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mes

Re: [RFC PATCH 04/13] blobs: Only install PALcode blob if alpha system target is built

2021-03-23 Thread Paolo Bonzini
On 23/03/21 16:51, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- Cc: Richard Henderson --- meson.build | 2 ++ pc-bios/meson.build | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5c85a15364d..b5b889

[PATCH v2 21/22] iotests: iothreads need ioeventfd

2021-03-23 Thread Alex Bennée
From: Laurent Vivier And ioeventfd are only available with virtio-scsi-pci or virtio-scsi-ccw, use the alias but add a rule to require virtio-scsi-pci or virtio-scsi-ccw for the tests that use iothreads. Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth Message-Id: <20210319202335.2397060

Re: [RFC PATCH 01/13] blobs: Use Meson source_set to store blob files

2021-03-23 Thread Paolo Bonzini
On 23/03/21 16:51, Philippe Mathieu-Daudé wrote: As we want to conditionally install blob files, declare them using a source set. Signed-off-by: Philippe Mathieu-Daudé --- pc-bios/meson.build | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pc-bios/meson.build b

[PATCH v3 1/3] exec: Rename exec-vary.c as page-vary.c

2021-03-23 Thread Richard Henderson
exec-vary.c is about variable page size handling, rename it page-vary.c. Currently this file is target specific (built once for each target), comment this. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210322112427.4045204-2-f4...@amsat.org> [rth: Update MAINTAINERS] Signed-off-by: Richard

RE: [PATCH-for-5.2] target/mips: Deprecate nanoMIPS ISA

2021-03-23 Thread Vince Del Vecchio

[PATCH v2 18/22] blockdev: with -drive if=virtio, use generic virtio-blk

2021-03-23 Thread Alex Bennée
From: Laurent Vivier Rather than checking if the machine is an s390x to use virtio-blk-ccw instead of virtio-blk-pci, use the alias virtio-blk that is set to the expected target. This also enables the use of virtio-blk-device for targets without PCI or CCW. Signed-off-by: Laurent Vivier Tested

Re: [PATCH 14/28] qapi: Enforce type naming rules

2021-03-23 Thread Markus Armbruster
Eric Blake writes: > On 3/23/21 4:40 AM, Markus Armbruster wrote: >> Type names should be CamelCase. Enforce this. The only offenders are >> in tests/. Fix them. Add test type-case to cover the new error. >> >> Signed-off-by: Markus Armbruster >> --- > >> +++ b/scripts/qapi/expr.py >> @@ -6

[PATCH v3 2/3] exec: Extract 'page-vary.h' header

2021-03-23 Thread Richard Henderson
In the next commit we will extract the generic code out of page-vary.c, only keeping the target specific code. Both files will use the same TargetPageBits structure, so make its declaration in a shared header. As the common header can not use target specific types, use a uint64_t to hold the page

[PATCH v2 22/22] gitlab: default to not building the documentation

2021-03-23 Thread Alex Bennée
In d0f26e68a0 ("gitlab: force enable docs build in Fedora, Ubuntu, Debian") we made sure we can build the documents on more than one system. However we don't want to build documents all the time as it's a waste of cycles (and energy). So lets reduce the total amount of documentation we build while

[PATCH] hw/pci/pci.c: Assert that pci_irq_handler() inputs are valid

2021-03-23 Thread Peter Maydell
pci_irq_handler documents that it must be called with 0 <= irq_num <= 3 and level either 0 or 1. Add assertions that the caller has passed us in valid arguments. In particular, if a device model fails to set the PCI_INTERRUPT_PIN field in its config space correctly to indicate that it has an inte

[PATCH v3 3/3] exec: Build page-vary-common.c with -fno-lto

2021-03-23 Thread Richard Henderson
In bbc17caf81f, we used an alias attribute to allow target_page to be declared const, and yet be initialized late. This fails when using LTO with several versions of gcc. The compiler looks through the alias and decides that the const variable is statically initialized to zero, then propagates tha

Re: [PATCH v8] drivers/misc: sysgenid: add system generation id driver

2021-03-23 Thread Greg KH
On Tue, Mar 23, 2021 at 04:10:27PM +, Catangiu, Adrian Costin wrote: > Hi Greg, > > After your previous reply on this thread we started considering to provide > this interface and framework/functionality through a userspace service > instead of a kernel interface. > The latest iteration on t

<    1   2   3   4   5   6   >