Re: [PATCH 0/2] tcg/aarch64: Fixes to vector ops

2021-02-21 Thread Stefan Weil
Am 20.02.21 um 22:29 schrieb Richard Henderson: I guess it has been a while since I've run aa32 risu on aa64 host. The launchpad bug is something that should have been seen from the beginning, but the similar aa64 operations are expanded as integer code, not vector code. The aa32 neon code has

Re: who's using the ozlabs patchwork install for QEMU patches ?

2021-02-21 Thread Cédric Le Goater
On 2/19/21 5:26 PM, Peter Maydell wrote: > Does anybody use the ozlabs patchwork install for QEMU patches, > either occasionally or on a regular basis ? > http://patchwork.ozlabs.org/project/qemu-devel/list/ > The admins for that system are trying to identify which of > the various projects are rea

[PATCH] migration: Remove time_t cast for OpenBSD

2021-02-21 Thread Brad Smith
OpenBSD has supported 64-bit time_t across all archs since 5.5 released in 2014. Remove a time_t cast that is no longer necessary. Signed-off-by: Brad Smith diff --git a/migration/savevm.c b/migration/savevm.c index 52e2d72e4b..9557f85ba9 100644 --- a/migration/savevm.c +++ b/migration/savevm.

Re: who's using the ozlabs patchwork install for QEMU patches ?

2021-02-21 Thread Greg Kurz
On Fri, 19 Feb 2021 17:51:02 +0100 Thomas Huth wrote: > On 19/02/2021 17.26, Peter Maydell wrote: > > Does anybody use the ozlabs patchwork install for QEMU patches, > > either occasionally or on a regular basis ? > > http://patchwork.ozlabs.org/project/qemu-devel/list/ > > The admins for that sy

[PATCH 3/3] hw/block/nvme: report non-mdts command size limit for dsm

2021-02-21 Thread Klaus Jensen
From: Gollu Appalanaidu Dataset Management is not subject to MDTS, but exceeded a certain size per range causes internal looping. Report this limit (DMRSL) in the NVM command set specific identify controller data structure. Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen --- hw/b

[PATCH 1/3] hw/block/nvme: nvme_identify fixes

2021-02-21 Thread Klaus Jensen
From: Gollu Appalanaidu Remove an unnecessary le_to_cpu conversion and add trace event for Identify. Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 5 - hw/block/trace-events | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/

[PATCH 0/3] hw/block/nvme: misc fixes

2021-02-21 Thread Klaus Jensen
From: Klaus Jensen Small set of misc fixes from Gollu. Gollu Appalanaidu (3): hw/block/nvme: nvme_identify fixes hw/block/nvme: fix potential compilation error hw/block/nvme: report non-mdts command size limit for dsm hw/block/nvme.h | 1 + include/block/nvme.h | 11 +++

[PATCH 2/3] hw/block/nvme: fix potential compilation error

2021-02-21 Thread Klaus Jensen
From: Gollu Appalanaidu assert may be compiled to a noop and we could end up returning an uninitialized status. Fix this by always returning Internal Device Error as a fallback. Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 11 +-- 1 file changed,

Re: [PATCH v4 70/71] tests/tcg: Increase timeout for TCI

2021-02-21 Thread Richard Henderson
On 2/17/21 10:09 PM, Thomas Huth wrote: >> -ifeq ($(CONFIG_DEBUG_TCG),y) >> +# If TCG debugging, or TCI is enabled things are a lot slower >> +ifneq ($(CONFIG_TCG_INTERPRETER),) >> +TIMEOUT=90 >> +else ifneq ($(CONFIG_DEBUG_TCG),) >>   TIMEOUT=60 >>   else >>   TIMEOUT=15 > > Reviewed-by: Thomas H

Re: [PATCH v5 3/4] Jobs based on custom runners: docs and gitlab-runner setup playbook

2021-02-21 Thread Erik Skultety
On Fri, Feb 19, 2021 at 04:58:37PM -0500, Cleber Rosa wrote: > To have the jobs dispatched to custom runners, gitlab-runner must > be installed, active as a service and properly configured. The > variables file and playbook introduced here should help with those > steps. > > The playbook introduc

Re: [RFC v1 08/38] target/arm/tcg: split softmmu parts of v8_cp_reginfo and el2_cp_reginfo

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > since ats_write64 is only used there, make it softmmu-only. > > gt_cntvoff_write, gt_hyp_*_write and gt_hyp_timer_reset are only used > in el2_cp_reginfo, so they can be softmmu-only too. > > Signed-off-by: Claudio Fontana

Re: tests: n810 arm failing

2021-02-21 Thread Thomas Huth
On 21/02/2021 20.33, Peter Maydell wrote: On Sun, 21 Feb 2021 at 17:26, Philippe Mathieu-Daudé wrote: Hi, The n810 arm test failed on latest master: https://gitlab.com/qemu-project/qemu/-/jobs/1045015424/artifacts/browse/build/tests/results/latest/test-results/26-tests_acceptance_machine_arm

Re: [RFC v1 05/38] target/arm: wrap arm_cpu_exec_interrupt in CONFIG_TCG

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > +#ifdef CONFIG_TCG > bool arm_cpu_exec_interrupt(CPUState *cs, int interrupt_request) > { > CPUClass *cc = CPU_GET_CLASS(cs); > @@ -607,6 +608,7 @@ bool arm_cpu_exec_interrupt(CPUState *cs, int > interrupt_request) > cc->tcg_ops->do_interrup

Re: [RFC v1 03/38] arm: tcg: only build under CONFIG_TCG

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > target/arm/tcg/meson.build | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Richard Henderson r~

Re: [RFC v1 02/38] target/arm: move helpers to tcg/

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > meson.build | 1 + > target/arm/tcg/trace.h | 1 + > target/arm/{ => tcg}/crypto_helper.c | 0 > target/arm/{ => tcg}/debug_helper.c | 0 > target/arm/{ => tcg}/helper-a

Re: [RFC v1 01/38] target/arm: move translate modules to tcg/

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > --- > target/arm/{ => tcg}/translate-a64.h | 0 > target/arm/{ => tcg}/translate.h | 0 > target/arm/{ => tcg}/a32-uncond.decode| 0 > target/arm/{ => tcg}/a32.decode | 0 > target/arm/{

Re: [RFC v1 32/38] target/arm: cpu: do not initialize TCG PMU for KVM

2021-02-21 Thread Richard Henderson
On 2/21/21 1:53 AM, Philippe Mathieu-Daudé wrote: > On 2/21/21 10:24 AM, Claudio Fontana wrote: >> From: Claudio Fontana >> >> KVM uses its own PMU initialization. >> >> Signed-off-by: Claudio Fontana >> --- >> target/arm/cpu.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/target

Re: [RFC v1 28/38] target/arm: make arm_pmu_timer_cb TCG-only, starting tcg-stub

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > @@ -634,10 +635,11 @@ static int cpu_pre_save(void *opaque) > { > ARMCPU *cpu = opaque; > > -if (!kvm_enabled()) { > +#ifdef CONFIG_TCG > +if (tcg_enabled()) { > pmu_op_start(&cpu->env); > } > - > +#endif /* CONFIG_TCG */ W

Re: [PULL SUBSYSTEM qemu-pseries] pseries: Update SLOF firmware image

2021-02-21 Thread David Gibson
On Fri, Feb 19, 2021 at 03:13:33PM +1100, Alexey Kardashevskiy wrote: > The following changes since commit ef450767d7d162dec67ec4674f85f9044a3d80cc: > > spapr_drc.c: do not call spapr_drc_detach() in drc_isolate_logical() > (2021-02-17 11:50:21 +1100) > > are available in the Git repository at

Re: [RFC v1 27/38] target/arm: move sve_zcr_len_for_el to common_cpu

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > it is needed for KVM too. > > Signed-off-by: Claudio Fontana > --- > target/arm/cpu-common.c | 33 + > target/arm/tcg/helper.c | 33 - > 2 files changed, 33 in

Re: [RFC v1 26/38] target/arm: move sve_exception_el to cpu

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > it is needed for KVM too, move away from tcg helpers. > > Signed-off-by: Claudio Fontana > --- > target/arm/cpu-softmmu.c| 60 + > target/arm/cpu-user.c | 5 +++ > target/a

Re: [RFC v1 25/38] target/arm: move fp_exception_el outside of tcg helpers

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > it is needed also for KVM. > > Signed-off-by: Claudio Fontana > --- > target/arm/cpu-softmmu.c| 95 + > target/arm/cpu-user.c | 9 > target/arm/tcg/softmmu/helper.c |

Re: [RFC v1 24/38] target/arm: move aa64_va_parameter_tbi,tbid,tcma and arm_rebuild_hflags

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > they are needed for KVM too, move them out of TCG helpers. > > Signed-off-by: Claudio Fontana > --- > target/arm/internals.h | 37 + > target/arm/tcg/helper-tcg.h | 32 - > target/arm/cpu-common.c | 252 +

[Bug 1836501] Re: cpu_address_space_init fails with assertion

2021-02-21 Thread Ravishankar
When I use gdb i see that the assert line uses: /* KVM cannot currently support multiple address spaces. */ assert(asidx == 0 || !kvm_enabled()); the asidx is 1. So since KVM is not supporting multiple addresses spaces that the Raspi3 requires the assertion occurs. I wonder what the worka

Re: [PATCH v3 7/7] spapr_drc.c: use DRC reconfiguration to cleanup DIMM unplug state

2021-02-21 Thread David Gibson
On Fri, Feb 19, 2021 at 06:31:46PM -0300, Daniel Henrique Barboza wrote: > > > On 2/16/21 11:31 PM, David Gibson wrote: > > On Thu, Feb 11, 2021 at 07:52:46PM -0300, Daniel Henrique Barboza wrote: > > > Handling errors in memory hotunplug in the pSeries machine is more complex > > > than any othe

Re: [RFC PATCH v2 06/11] hw/ppc: Restrict KVM to various PPC machines

2021-02-21 Thread David Gibson
On Fri, Feb 19, 2021 at 06:38:42PM +0100, Philippe Mathieu-Daudé wrote: > Restrit KVM to the following PPC machines: > - 40p > - bamboo > - g3beige > - mac99 > - mpc8544ds > - ppce500 > - pseries > - sam460ex > - virtex-ml507 Hrm. The reason this list is kind of surprising is because there are 3

Re: [PATCH v3 7/7] spapr_drc.c: use DRC reconfiguration to cleanup DIMM unplug state

2021-02-21 Thread David Gibson
On Fri, Feb 19, 2021 at 05:04:23PM -0300, Daniel Henrique Barboza wrote: > > > On 2/16/21 11:31 PM, David Gibson wrote: > > On Thu, Feb 11, 2021 at 07:52:46PM -0300, Daniel Henrique Barboza wrote: > > > Handling errors in memory hotunplug in the pSeries machine is more complex > > > than any othe

Re: [RFC v1 23/38] target/arm: move arm_mmu_idx_el to common-cpu

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > Signed-off-by: Claudio Fontana > --- > target/arm/cpu-common.c | 51 + > target/arm/tcg/helper.c | 51 - > 2 files changed, 51 insertions(+), 51

Re: [RFC v1 20/38] target/arm: move arm_hcr_el2_eff to common_cpu

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > From: Claudio Fontana > > extract it from the tcg helpers, as functionality is needed > for KVM too. > > Signed-off-by: Claudio Fontana > --- > target/arm/cpu-common.c | 68 + > target/arm/tcg/helper.c | 68 --

Re: [PATCH v2] configure: fix --enable-fuzzing linker failures

2021-02-21 Thread Thomas Huth
On 21/02/2021 18.45, Alexander Bulekov wrote: With --enable-fuzzing, QEMU_CFLAGS include -fsanitize=fuzzer-no-link. This should allow us to build non-fuzzer binaries using objects instrumented for fuzzing. However, to do that, we also need to link with -fsanitize=fuzzer-no-link. We were not doing

[Bug 1836501] Re: cpu_address_space_init fails with assertion

2021-02-21 Thread Ravishankar
I am having a similar problem. I want to use KVM on jetson nano and boot Raspbian Buster 32bit OS with native machine emulation. Run into a similar problem. I used latest QEMU. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://

Re: [RFC v1 00/38] arm cleanup experiment for kvm-only build

2021-02-21 Thread Richard Henderson
On 2/21/21 1:24 AM, Claudio Fontana wrote: > target/arm: move psci.c into tcg/softmmu/ Terminology: the opposite of user-only is not "softmmu" but "system". One glorious day in the far future user-only will, as an option, use softmmu. It will fix all sorts of problems with alignment faults and

Re: [PATCH] gitlab-ci: Remove unused container images

2021-02-21 Thread Thomas Huth
On 20/02/2021 22.10, Alex Bennée wrote: Thomas Huth writes: We're building a lot of containers in the gitlab-CI that we never use. This takes away network bandwidth and CPU time from other jobs for no use, so let's remove them for now. The individual containers could be re-added later when we

Re: [RFC PATCH 0/5] target/arm: Add MTE support to KVM guest

2021-02-21 Thread Haibo Xu
On Tue, 16 Feb 2021 at 19:20, Peter Maydell wrote: > > Adding the migration maintainers to the cc list, because > the real meat of this patchset is "how should the migration > of MTE tags be integrated into the migration/ram.c code", > which is pretty well out of my area of expertise... > > thanks

[Bug 1916344] Re: User mode networking not working properly on QEMU on Mac OS X host

2021-02-21 Thread Ven Karri
I am not sure if a separate slirp installation via macports is necessary. When you install qemu via homebrew, it's supposed to install any slirp related libarries as part of qemu installation. Having said that, I haven't noticed a slirp package installed on my mac when I did a `brew list`. So, I d

[Bug 1916344] Re: User mode networking not working properly on QEMU on Mac OS X host

2021-02-21 Thread John Arbuckle
I built QEMU from the git repo. My Windows XP and Mac OS 10.4 guests cannot access the internet. I'm on a M1 Mac running Mac OS 11.1. I use qemu-system-i386 and qemu-system-ppc. I tried installing slirp from MacPorts but it is broken. It might have been broken for years. See https://trac.macports.

Re: [PATCH] linux-user: fix O_NONBLOCK in signalfd4() and eventfd2() syscalls

2021-02-21 Thread Helge Deller
Dear qemu-stable, can you please consider adding this patch to the qemu-stable branch. Upstream commit 78721301138114cf37fb179a6cf73a27c1b3a927 Thanks, Helge On 2/13/21 8:16 PM, Laurent Vivier wrote: Le 10/02/2021 à 07:12, Helge Deller a écrit : On the hppa target userspace binaries may call

Re: [PATCH v2] linux-user: fix O_NONBLOCK usage for hppa target

2021-02-21 Thread Helge Deller
Dear qemu-stable, can you please consider adding this patch to the qemu-stable branch. Upstream commit 2bdc74f3d7c4cacb65dbde910471c62992640275 Thanks, Helge On 2/13/21 5:25 PM, Laurent Vivier wrote: Le 01/02/2021 à 23:05, Helge Deller a écrit : Historically the parisc linux port tried to be

Re: [PATCH] linux-user: Add missing TARGET___O_TMPFILE for hppa and alpha

2021-02-21 Thread Helge Deller
Dear qemu-stable, can you please consider adding this patch to the qemu-stable branch. Upstream commit 23b311155078bdd5bacc016ff3b3ebb5462b10c0 Thanks, Helge On 2/1/21 4:59 PM, Helge Deller wrote: The hppa and alpha targets miss the #define of the TARGET___O_TMPFILE and as such fail to run a t

Re: [PATCH 0/2] tcg/aarch64: Fixes to vector ops

2021-02-21 Thread Richard Henderson
On 2/21/21 4:12 AM, Peter Maydell wrote: > On Sat, 20 Feb 2021 at 21:29, Richard Henderson > wrote: >> >> I guess it has been a while since I've run aa32 risu on aa64 host. >> >> The launchpad bug is something that should have been seen from the >> beginning, but the similar aa64 operations are ex

Can we run QEMU Avocado tests without root access?

2021-02-21 Thread Philippe Mathieu-Daudé
Hi, On a system I want to run the QEMU integration tests I got: $ make check-venv GIT ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc capstone slirp VENVbuild/tests/venv The virtual environment was not created successfully because ensurepip is not avail

Re: [PATCH v4 01/71] tcg/tci: Use exec/cpu_ldst.h interfaces

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/17/21 9:19 PM, Richard Henderson wrote: > Use the provided cpu_ldst.h interfaces. This fixes the build vs > the unconverted uses of g2h(), adds missed memory trace events, > and correctly recognizes when a SIGSEGV belongs to the guest via > set_helper_retaddr(). > > Fixes: 3e8f1628e864 > Sig

[PATCH v2 3/3] hw/lm32/Kconfig: Have MILKYMIST select LM32_DEVICES

2021-02-21 Thread Philippe Mathieu-Daudé
The Milkymist board requires more than the PTIMER. Directly select the LM32_DEVICES. This fixes: /usr/bin/ld: libqemu-lm32-softmmu.fa.p/target_lm32_gdbstub.c.o: in function `lm32_cpu_gdb_read_register': target/lm32/gdbstub.c:46: undefined reference to `lm32_pic_get_im' target/lm32/gdbstub

[PATCH v2 2/3] hw/lm32/Kconfig: Rename CONFIG_LM32 -> CONFIG_LM32_DEVICES

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'LM32' config for architecture specific features. As CONFIG_LM32 is only used to select peripherals, rename it CONFIG_LM32_DEVICES. Reviewed-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- hw/char/meson.build | 4 ++-- hw/intc/meson.build | 2 +- hw/lm3

[PATCH v2 1/3] hw/lm32/Kconfig: Introduce CONFIG_LM32_EVR for lm32-evr/uclinux boards

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'LM32' config for architecture specific features. Introduce CONFIG_LM32_EVR to select the lm32-evr / lm32-uclinux boards. Reviewed-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- default-configs/devices/lm32-softmmu.mak | 2 +- hw/lm32/Kconfig

[PATCH v2 0/3] hw/lm32: Kconfig cleanups

2021-02-21 Thread Philippe Mathieu-Daudé
Hi Laurent, This series is fully reviewed. Since LM32 is not very active, can this go via qemu-trivial@? Thanks, Phil. v2: Rebased Supersedes: <20210208135048.2601693-1-f4...@amsat.org> Philippe Mathieu-Daudé (3): hw/lm32/Kconfig: Introduce CONFIG_LM32_EVR for lm32-evr/uclinux boards hw/l

Re: [RFC PATCH] target/mips/cp0_timer: Use new clock_ns_to_ticks()

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/21/21 9:12 PM, Peter Maydell wrote: > On Sun, 21 Feb 2021 at 20:07, Philippe Mathieu-Daudé wrote: >> >> On 2/11/21 12:43 AM, Philippe Mathieu-Daudé wrote: >>> Use the new clock_ns_to_ticks() function in cp0_timer where >>> appropriate. This allows us to remove CPUMIPSState::cp0_count_ns >>> a

[PATCH v2 3/3] target/arm: Restrict v7A TCG cpus to TCG accel

2021-02-21 Thread Philippe Mathieu-Daudé
KVM requires the target cpu to be at least ARMv8 architecture (support on ARMv7 has been dropped in commit 82bf7ae84ce: "target/arm: Remove KVM support for 32-bit Arm hosts"). A KVM-only build won't be able to run TCG cpus, move the v7A CPU definitions to cpu_tcg.c. Reported-by: Peter Maydell Re

[PATCH v2 0/3] target/arm: Restrict v7A TCG cpus to TCG accel

2021-02-21 Thread Philippe Mathieu-Daudé
KVM requires the target cpu to be at least ARMv8 architecture. Restrict the last ARMv7 CPUs (A-profile) to TCG. Series almost fully reviewed (missing review is trivial code style). Since v1: Only include patches which don't depends on previous series Philippe Mathieu-Daudé (3): target/arm: R

[PATCH v2 2/3] target/arm/cpu: Update coding style to make checkpatch.pl happy

2021-02-21 Thread Philippe Mathieu-Daudé
We will move this code in the next commit. Clean it up first to avoid checkpatch.pl errors. Signed-off-by: Philippe Mathieu-Daudé --- target/arm/cpu.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index a772fd4926f..6865ea764

[PATCH v2 1/3] target/arm: Restrict v8M IDAU to TCG

2021-02-21 Thread Philippe Mathieu-Daudé
IDAU is specific to M-profile. KVM only supports A-profile. Restrict this interface to TCG, as it is pointless (and confusing) on a KVM-only build. Reviewed-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- target/arm/cpu.c | 7 --- target/arm/c

[PATCH v3 5/8] hw/timer: Introduce SH_TIMER Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_TIMER selector for the SH4 timer control unit. Add the missing MAINTAINERS entries. Suggested-by: Peter Maydell Reviewed-by: Peter Maydell Signed-off-by: Philippe

[PATCH v3 4/8] hw/char: Introduce SH_SCI Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_SCI selector for the SH4 serial controller. Add the missing MAINTAINERS entries. Suggested-by: Peter Maydell Reviewed-by: Peter Maydell Signed-off-by: Philippe Ma

[PATCH v3 6/8] hw/block: Introduce TC58128 eeprom Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
Add more fine-grained selection by adding a CONFIG_TC58128 selector for the TC58128 eeprom. As this device is only used by the Shix machine, add an entry to the proper section in MAINTAINERS. Suggested-by: Peter Maydell Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- MAIN

[PATCH v3 3/8] hw/intc: Introduce SH_INTC Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_INTC selector for the SH4 interrupt controller. Suggested-by: Peter Maydell Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- hw/intc/Kconfig

[PATCH v3 8/8] hw/sh4: Remove now unused CONFIG_SH4 from Kconfig

2021-02-21 Thread Philippe Mathieu-Daudé
As replaced the generic CONFIG_SH4 by more fine-grained selectors, we can remove this now unused config variable. Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- hw/sh4/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git a/hw/sh4/Kconfig b/hw/sh4/Kconfig index b9f

[PATCH v3 7/8] hw/pci-host: Introduce SH_PCI Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_PCI selector for the SH4 PCI controller. Move the file with the other PCI host devices in hw/pci-host and add its missing MAINTAINERS entries. Suggested-by: Peter Ma

[PATCH v3 0/8] hw/sh4: Kconfig cleanups

2021-02-21 Thread Philippe Mathieu-Daudé
Missing review: 1 (license) and 7 (pci) Since v2: - Added missing TC58128/SH_PCI Kconfig entries (Peter) Since v1: - Addressed Peter Maydell review comments from https://www.mail-archive.com/qemu-block@nongnu.org/msg80599.html Philippe Mathieu-Daudé (8): hw/sh4: Add missing license hw/sh4: A

[PATCH v3 2/8] hw/sh4: Add missing Kconfig dependency on SH7750 for the R2D board

2021-02-21 Thread Philippe Mathieu-Daudé
r2d_init() calls sh7750_init() so depends on SH7750.Harmless at the moment because nothing actually uses CONFIG_SH7750 (hw/sh4/meson.build always compiles sh7750.c and sh7750_regnames.c unconditionally). Fixes: 7ab58d4c841 ("sh4-softmmu.mak: express dependencies with Kconfig") Reported-by: Peter M

[PATCH v3 1/8] hw/sh4: Add missing license

2021-02-21 Thread Philippe Mathieu-Daudé
This code was introduced in commit 27c7ca7e775, ("SHIX board emulation (Samuel Tardieu)"). Use the same license. Cc: Samuel Tardieu Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sh4/sh.h | 12 +--- hw/block/tc58128.c | 7 +++ 2 files changed, 16 insertions(+), 3 deletions(-

Re: [PATCH v2 4/8] hw/char: Introduce SH_SCI Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/21/21 9:45 PM, Peter Maydell wrote: > On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: >> >> We want to be able to use the 'SH4' config for architecture >> specific features. Add more fine-grained selection by adding >> a CONFIG_SH_SCI selector for the SH4 serial controller. >> >>

Re: [PATCH v2 7/8] hw/pci-host: Introduce SH_PCI Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/21/21 9:49 PM, Peter Maydell wrote: > On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: >> >> We want to be able to use the 'SH4' config for architecture >> specific features. Add more fine-grained selection by adding >> a CONFIG_SH_PCI selector for the SH4 PCI controller. >> Move t

Re: [PULL v2 00/43] MIPS patches for 2021-02-21

2021-02-21 Thread Peter Maydell
; > are available in the Git repository at: > > https://gitlab.com/philmd/qemu.git tags/mips-20210221 > > for you to fetch changes up to cc2b4550115baf77d556341f17eb464d18953cee: > > vt82c686: Fix superio_cfg_{read,write}() functions (2021-02-21 19:42:34 > +0100)

Re: [PATCH v2 8/8] hw/sh4: Remove now unused CONFIG_SH4 from Kconfig

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > As replaced the generic CONFIG_SH4 by more fine-grained > selectors, we can remove this now unused config variable. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/sh4/Kconfig | 5 - > 1 file changed, 5 deletions(-) Review

Re: [PATCH v2 7/8] hw/pci-host: Introduce SH_PCI Kconfig entry

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > We want to be able to use the 'SH4' config for architecture > specific features. Add more fine-grained selection by adding > a CONFIG_SH_PCI selector for the SH4 PCI controller. > Move the file with the other PCI host devices in hw/pc

Re: [PATCH v2 6/8] hw/block: Introduce TC58128 eeprom Kconfig entry

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > Add more fine-grained selection by adding a CONFIG_TC58128 > selector for the TC58128 eeprom. > > As this device is only used by the Shix machine, add an entry > to the proper section in MAINTAINERS. > > Suggested-by: Peter Maydell >

Re: [PATCH v2 5/8] hw/timer: Introduce SH_TIMER Kconfig entry

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > We want to be able to use the 'SH4' config for architecture > specific features. Add more fine-grained selection by adding > a CONFIG_SH_TIMER selector for the SH4 timer control unit. > > Add the missing MAINTAINERS entries. > > Sugge

Re: [PATCH v2 4/8] hw/char: Introduce SH_SCI Kconfig entry

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > We want to be able to use the 'SH4' config for architecture > specific features. Add more fine-grained selection by adding > a CONFIG_SH_SCI selector for the SH4 serial controller. > > Add the missing MAINTAINERS entries. > > Suggeste

Re: [PATCH v2 3/8] hw/intc: Introduce SH_INTC Kconfig entry

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > We want to be able to use the 'SH4' config for architecture > specific features. Add more fine-grained selection by adding > a CONFIG_SH_INTC selector for the SH4 interrupt controller. > > Suggested-by: Peter Maydell > Signed-off-by:

Re: [PATCH v2 2/8] hw/sh4: Add missing Kconfig dependency on SH7750 for the R2D board

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:03, Philippe Mathieu-Daudé wrote: > > r2d_init() calls sh7750_init() so depends on SH7750.Harmless > at the moment because nothing actually uses CONFIG_SH7750 > (hw/sh4/meson.build always compiles sh7750.c and sh7750_regnames.c > unconditionally). > > Fixes: 7ab58d4c841 (

Re: [PATCH 0/2] Allwinner H3 fixes for EMAC and acceptance tests

2021-02-21 Thread Niek Linnenbank
On Fri, Feb 19, 2021 at 7:24 PM Philippe Mathieu-Daudé wrote: > Hi Niek, > > On 2/17/21 9:57 PM, Niek Linnenbank wrote: > > Hi Daniel, Philippe, > > > > Op di 16 feb. 2021 10:49 schreef Daniel P. Berrangé > >: > > > > On Fri, Feb 12, 2021 at 03:10:00PM +0100, Phil

Re: [RFC PATCH] target/mips/cp0_timer: Use new clock_ns_to_ticks()

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 20:07, Philippe Mathieu-Daudé wrote: > > On 2/11/21 12:43 AM, Philippe Mathieu-Daudé wrote: > > Use the new clock_ns_to_ticks() function in cp0_timer where > > appropriate. This allows us to remove CPUMIPSState::cp0_count_ns > > and mips_cp0_period_set(). > > > > Signed-off-

Re: [RFC PATCH] target/mips/cp0_timer: Use new clock_ns_to_ticks()

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/11/21 12:43 AM, Philippe Mathieu-Daudé wrote: > Use the new clock_ns_to_ticks() function in cp0_timer where > appropriate. This allows us to remove CPUMIPSState::cp0_count_ns > and mips_cp0_period_set(). > > Signed-off-by: Philippe Mathieu-Daudé > --- > Based-on: <20210209132040.5091-1-peter

[PATCH v2 6/8] hw/block: Introduce TC58128 eeprom Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
Add more fine-grained selection by adding a CONFIG_TC58128 selector for the TC58128 eeprom. As this device is only used by the Shix machine, add an entry to the proper section in MAINTAINERS. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + hw/b

[PATCH v2 5/8] hw/timer: Introduce SH_TIMER Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_TIMER selector for the SH4 timer control unit. Add the missing MAINTAINERS entries. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- MAINTAI

[PATCH v2 8/8] hw/sh4: Remove now unused CONFIG_SH4 from Kconfig

2021-02-21 Thread Philippe Mathieu-Daudé
As replaced the generic CONFIG_SH4 by more fine-grained selectors, we can remove this now unused config variable. Signed-off-by: Philippe Mathieu-Daudé --- hw/sh4/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git a/hw/sh4/Kconfig b/hw/sh4/Kconfig index b9f0538d57f..ab733a3f760 100644

[PATCH v2 4/8] hw/char: Introduce SH_SCI Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_SCI selector for the SH4 serial controller. Add the missing MAINTAINERS entries. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINER

[PATCH v2 7/8] hw/pci-host: Introduce SH_PCI Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_PCI selector for the SH4 PCI controller. Move the file with the other PCI host devices in hw/pci-host and add its missing MAINTAINERS entries. Suggested-by: Peter Ma

[PATCH v2 3/8] hw/intc: Introduce SH_INTC Kconfig entry

2021-02-21 Thread Philippe Mathieu-Daudé
We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_INTC selector for the SH4 interrupt controller. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- hw/intc/Kconfig | 3 +++ hw/intc/meson.b

[PATCH v2 2/8] hw/sh4: Add missing Kconfig dependency on SH7750 for the R2D board

2021-02-21 Thread Philippe Mathieu-Daudé
r2d_init() calls sh7750_init() so depends on SH7750.Harmless at the moment because nothing actually uses CONFIG_SH7750 (hw/sh4/meson.build always compiles sh7750.c and sh7750_regnames.c unconditionally). Fixes: 7ab58d4c841 ("sh4-softmmu.mak: express dependencies with Kconfig") Reported-by: Peter M

[PATCH v2 1/8] hw/sh4: Add missing license

2021-02-21 Thread Philippe Mathieu-Daudé
This code was introduced in commit 27c7ca7e775, ("SHIX board emulation (Samuel Tardieu)"). Use the same license. Cc: Samuel Tardieu Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sh4/sh.h | 12 +--- hw/block/tc58128.c | 7 +++ 2 files changed, 16 insertions(+), 3 deletions(-

[PATCH v2 0/8] hw/sh4: Kconfig cleanups

2021-02-21 Thread Philippe Mathieu-Daudé
Since v1: - Addressed Peter Maydell review comments from https://www.mail-archive.com/qemu-block@nongnu.org/msg80599.html Supersedes: <20210208135048.2601693-1-f4...@amsat.org> Philippe Mathieu-Daudé (8): hw/sh4: Add missing license hw/sh4: Add missing Kconfig dependency on SH7750 for the R2D

[PULL v2 07/43] tests/acceptance: Test PMON with Loongson-3A1000 CPU

2021-02-21 Thread Philippe Mathieu-Daudé
From: Jiaxun Yang Test booting of PMON bootloader on loongson3-virt platform. $ (venv) AVOCADO_ALLOW_UNTRUSTED_CODE=1 \ avocado --show=app,console \ run -t machine:loongson3-virt tests/acceptance Fetching asset from tests/acceptance/machine_mips_loongson3v.py:MipsLoongson3v.test_pmon_

Re: [PATCH] ui/cocoa: Fix mouse association state

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 18:31, Akihiko Odaki wrote: > > Signed-off-by: Akihiko Odaki This is hard to review without a commit message that describes: * what the problem is that the change is trying to fix * what the change is doing * why this fixes the problem Without a commit message you're a

[PULL v2 00/43] MIPS patches for 2021-02-21

2021-02-21 Thread Philippe Mathieu-Daudé
The following changes since commit a528b8c4c638d60cc474c2f80952ff0f2e60521a: Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sdmmc-20210220' into staging (2021-02-20 19:28:27 +) are available in the Git repository at: https://gitlab.com/philmd/qemu.git tags/mips-202

[PULL v2 02/43] hw/mips: Add a bootloader helper

2021-02-21 Thread Philippe Mathieu-Daudé
From: Jiaxun Yang Add a bootloader helper to generate simple bootloaders for kernel. It can help us reduce inline hex hack and also keep MIPS release 6 compatibility easier. Signed-off-by: Jiaxun Yang Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210127065424.114125-2-jiaxun.y...@flygoat.

[Bug 1914849] Re: mprotect fails after MacOS 11.2 on arm mac

2021-02-21 Thread Stefan Weil
It works for me when I use "./configure --enable-debug-tcg --extra- cflags=-I/opt/homebrew/include". -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1914849 Title: mprotect fails after MacOS 11.2 on

Re: [PATCH] ui/cocoa: Fix stride resolution of pixman image

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 17:31, Akihiko Odaki wrote: > > Signed-off-by: Akihiko Odaki In what situations does this change make a difference? Obviously most of the time it works fine, or we'd have noticed before now. (This is the kind of detail that it's useful to provide in the commit message.)

Re: tests: n810 arm failing

2021-02-21 Thread Peter Maydell
On Sun, 21 Feb 2021 at 17:26, Philippe Mathieu-Daudé wrote: > > Hi, > > The n810 arm test failed on latest master: > > https://gitlab.com/qemu-project/qemu/-/jobs/1045015424/artifacts/browse/build/tests/results/latest/test-results/26-tests_acceptance_machine_arm_n8x0.py_N8x0Machine.test_n810/ It

Re: KVM Guest

2021-02-21 Thread Philippe Mathieu-Daudé
Hi Thomas, On 2/9/21 2:32 AM, Huacai Chen wrote: > I think it can be removed. > > Huacai > > On Tue, Feb 9, 2021 at 12:40 AM Jiaxun Yang wrote: >> On Mon, Feb 8, 2021, at 3:39 AM, Thomas Bogendoerfer wrote: >>> On Wed, Feb 03, 2021 at 08:52:34PM +0800, Jiaxun Yang wrote: On Wed, Feb 3, 202

[Bug 1914849] Re: mprotect fails after MacOS 11.2 on arm mac

2021-02-21 Thread Stefan Weil
** Changed in: qemu Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1914849 Title: mprotect fails after MacOS 11.2 on arm mac Status in QEMU: Confirmed Bug descrip

[PATCH] ui/cocoa: Fix mouse association state

2021-02-21 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- ui/cocoa.m | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 0ef5fdf3b7a..671af40b252 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -310,7 +310,6 @@ @interface QemuCocoaView : NSView BOOL

Re: [PATCH 1/4] hw/sh4/Kconfig: Rename CONFIG_SH4 -> CONFIG_SH4_DEVICES

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/21/21 7:07 PM, Philippe Mathieu-Daudé wrote: > On 2/8/21 9:22 PM, Peter Maydell wrote: >> On Mon, 8 Feb 2021 at 20:04, Philippe Mathieu-Daudé wrote: >>> >>> We want to be able to use the 'SH4' config for architecture >>> specific features. As CONFIG_SH4 is only used to select >>> peripherals,

Re: [PATCH 1/4] hw/sh4/Kconfig: Rename CONFIG_SH4 -> CONFIG_SH4_DEVICES

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/8/21 9:22 PM, Peter Maydell wrote: > On Mon, 8 Feb 2021 at 20:04, Philippe Mathieu-Daudé wrote: >> >> We want to be able to use the 'SH4' config for architecture >> specific features. As CONFIG_SH4 is only used to select >> peripherals, rename it CONFIG_SH4_DEVICES. >> >> Reviewed-by: Alex Be

[PATCH v2] configure: fix --enable-fuzzing linker failures

2021-02-21 Thread Alexander Bulekov
With --enable-fuzzing, QEMU_CFLAGS include -fsanitize=fuzzer-no-link. This should allow us to build non-fuzzer binaries using objects instrumented for fuzzing. However, to do that, we also need to link with -fsanitize=fuzzer-no-link. We were not doing that. Reported-by: Li Qiang , Signed-off-by: A

Re: [PULL 00/43] MIPS patches for 2021-02-21

2021-02-21 Thread Philippe Mathieu-Daudé
gt; are available in the Git repository at: > > https://gitlab.com/philmd/qemu.git tags/mips-20210221 > > for you to fetch changes up to 98e7c7108127bc9f2bf9065cbddd25778025b9c6: > > vt82c686: Fix superio_cfg_{read,wr

[PATCH] ui/cocoa: Fix stride resolution of pixman image

2021-02-21 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- ui/cocoa.m | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 0ef5fdf3b7a..2de72155dea 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -450,19 +450,19 @@ - (void) drawRect:(NSRect) rect int w = pixman_ima

Re: [PULL 02/43] hw/mips: Add a bootloader helper

2021-02-21 Thread Philippe Mathieu-Daudé
On 2/21/21 3:33 PM, Philippe Mathieu-Daudé wrote: > From: Jiaxun Yang > > Add a bootloader helper to generate simple bootloaders for kernel. > It can help us reduce inline hex hack and also keep MIPS release 6 > compatibility easier. > > Signed-off-by: Jiaxun Yang > Reviewed-by: Philippe Mathie

[Bug 1916394] [NEW] [git] Cannot build qemu: FAILED: target/hexagon/semantics_generated.pyinc

2021-02-21 Thread Frederic Bezies
Public bug reported: Hello. I'm using Archlinux and I maintain qemu-git AUR package. I tried to build Qemu at commit 4115aec9af2a3de5fa89a0b1daa12debcd7741ff but it stops with this error message: Found ninja-1.10.2 at /usr/bin/ninja [632/9068] Generating semantics_generated.pyinc with a custom

[PATCH] ui/gtk: vte: fix sending multiple characeters

2021-02-21 Thread Zack Marvel
When using the GTK UI with libvte, multicharacter keystrokes are not sent correctly (such as arrow keys). gd_vc_in should check the CharBackend's can_receive instead of assuming multiple characters can be received. This is not an issue for e.g. the SDL UI because qemu_chr_be_write is called with le

  1   2   >