[PATCH 0/2] ppc: rework AIL logic, add POWER10 exception model

2021-05-01 Thread Nicholas Piggin
Here are the last 2 patches of this series rebased on the ppc-for-6.1 tree. I've tidied up the comments and control flow around the reserved values of AIL, so different behaviours/reasons are treated individually which hopefully addresses David's comments. On real hardware, setting LPCR[AIL] to a

[PATCH 1/2] target/ppc: rework AIL logic in interrupt delivery

2021-05-01 Thread Nicholas Piggin
The AIL logic is becoming unmanageable spread all over powerpc_excp(), and it is slated to get even worse with POWER10 support. Move it all to a new helper function. Reviewed-by: Cédric Le Goater Tested-by: Cédric Le Goater Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_hcall.c|

[PATCH 2/2] target/ppc: Add POWER10 exception model

2021-05-01 Thread Nicholas Piggin
POWER10 adds a new bit that modifies interrupt behaviour, LPCR[HAIL], and it removes support for the LPCR[AIL]=0b10 mode. Reviewed-by: Cédric Le Goater Tested-by: Cédric Le Goater Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_hcall.c| 7 - target/ppc/cpu-qom.h|

[PATCH] block: Drop the sheepdog block driver

2021-05-01 Thread Markus Armbruster
It was deprecated in commit e1c4269763, v5.2.0. See that commit message for rationale. Signed-off-by: Markus Armbruster --- docs/system/deprecated.rst |9 - docs/system/device-url-syntax.rst.inc | 18 - docs/system/qemu-block-drivers.rst.inc | 69 - docs/system/removed-feat

Re: [PULL 00/18] aspeed queue

2021-05-01 Thread Cédric Le Goater
On 5/1/21 12:18 AM, Peter Maydell wrote: > On Fri, 30 Apr 2021 at 23:17, Peter Maydell wrote: >> Same thing is also a build failure on 32-bit hosts (where the types >> are genuinely different sizes): >> >> ../../hw/misc/aspeed_hace.c: In function 'do_hash_operation': >> ../../hw/misc/aspeed_hace.c

[Bug 1499908] Re: hda sound capture broken with VNC

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/70 ** Changed in: qemu Status: Incomplete => Expired ** Bug

[Bug 1603779] Re: AC97 can allocate ~500MB of host RAM

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/71 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 1749223] Re: mouse offset or invisible wall 2.11.0-3

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/72 ** Changed in: qemu Status: Incomplete => Expired ** Bug

[Bug 1255303] Re: ALSA underruns occurr when using QEMU

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/69 ** Changed in: qemu Status: Triaged => Expired ** Bug wa

[Bug 304636] Re: -hda FAT:. limited to 504MBytes

2021-05-01 Thread Thomas Huth
This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets now closed in Launchpad. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/66 ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #66 https://gitlab.com/qemu-projec

[Bug 1882787] Re: AUD_set_volume_out takes SWVoiceOut as parameter, but controls HWVoiceOut

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/74 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 1873344] Re: KVM Windows 98 sound card passthrough is not working for DOS programs..

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/73 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 823733] Re: Solaris can't be powered off with ACPI shutdown/poweroff

2021-05-01 Thread Thomas Huth
This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets now closed in Launchpad. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/68 ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #68 https://gitlab.com/qemu-projec

[Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries

2021-05-01 Thread Philippe Mathieu-Daudé
** Changed in: qemu Status: Incomplete => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1874674 Title: [Feature request] acceptance test class to run user-mode binaries Status in QEMU:

[Bug 1861692] Re: wavcapture does not record silence

2021-05-01 Thread Philippe Mathieu-Daudé
** Changed in: qemu Status: Incomplete => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1861692 Title: wavcapture does not record silence Status in QEMU: New Bug description: Using

[Bug 1861677] Re: wavcapture crash with pulseaudio

2021-05-01 Thread Philippe Mathieu-Daudé
** Changed in: qemu Status: Incomplete => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1861677 Title: wavcapture crash with pulseaudio Status in QEMU: New Bug description: As of c

[PULL 02/10] Add NVMM accelerator: configure and build logic

2021-05-01 Thread Paolo Bonzini
From: Reinoud Zandijk Signed-off-by: Kamil Rytarowski Signed-off-by: Reinoud Zandijk Message-Id: <20210402202535.11550-2-rein...@netbsd.org> Signed-off-by: Paolo Bonzini --- accel/Kconfig | 3 +++ configure | 8 +++- meson.build | 14 ++ meson_options.txt

[PULL 08/10] configure: reindent meson invocation

2021-05-01 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 76 +++ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/configure b/configure index ccc58ccc46..0b8283c95c 100755 --- a/configure +++ b/configure @@ -6345,33 +6345,33 @@ for rom in sea

[PULL 07/10] slirp: add configure option to disable smbd

2021-05-01 Thread Paolo Bonzini
From: Joelle van Dyne Replace Windows specific macro with a more generic feature detection macro. Allows slirp smb feature to be disabled manually as well. Acked-by: Samuel Thibault Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Joelle van Dyne Message-Id: <20210315180341.31638-...@getutm

[PULL 05/10] Add NVMM Accelerator: add maintainers for NetBSD/NVMM

2021-05-01 Thread Paolo Bonzini
From: Reinoud Zandijk Signed-off-by: Kamil Rytarowski Signed-off-by: Reinoud Zandijk Message-Id: <20210402202535.11550-5-rein...@netbsd.org> Signed-off-by: Paolo Bonzini --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 36055f14c

[PULL 00/10] Misc patches for 2021-04-30 (incl. NVMM accelerator)

2021-05-01 Thread Paolo Bonzini
The following changes since commit b1cffefa1b163bce9aebc3416f562c1d3886eeaa: Update version for v6.0.0-rc4 release (2021-04-20 16:30:01 +0100) are available in the Git repository at: https://gitlab.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to 29740bdf1418c1193524356

[PULL 06/10] ratelimit: protect with a mutex

2021-05-01 Thread Paolo Bonzini
Right now, rate limiting is protected by the AioContext mutex, which is taken for example both by the block jobs and by qmp_block_job_set_speed (via find_block_job). We would like to remove the dependency of block layer code on the AioContext mutex, since most drivers and the core I/O code are alr

[PULL 01/10] oslib-win32: do not rely on macro to get redefined function name

2021-05-01 Thread Paolo Bonzini
On Windows with glib <2.50, g_poll is redefined to use the variant defined in util/oslib-win32.c. Use the same name in the declaration and definition for ease of grepping. Signed-off-by: Paolo Bonzini --- util/oslib-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uti

[PULL 09/10] configure: handle meson options that have changed type

2021-05-01 Thread Paolo Bonzini
Usually Meson uses pre-serialized information in meson-private to speed up re-runs. This is not possible for version changes, where Meson instead rebuilds the serialized information using cmd_line.txt. In some cases cmd_line.txt can contain stale information, since it is not rebuild except when "m

[PULL 03/10] Add NVMM accelerator: x86 CPU support

2021-05-01 Thread Paolo Bonzini
From: Reinoud Zandijk Signed-off-by: Kamil Rytarowski Signed-off-by: Reinoud Zandijk Message-Id: <20210402202535.11550-3-rein...@netbsd.org> Signed-off-by: Paolo Bonzini --- target/i386/meson.build |1 + target/i386/nvmm/meson.build |8 + target/i386/nvmm/nvmm-accel-op

[PULL 04/10] Add NVMM accelerator: acceleration enlightenments

2021-05-01 Thread Paolo Bonzini
From: Reinoud Zandijk Signed-off-by: Kamil Rytarowski Signed-off-by: Reinoud Zandijk Message-Id: <20210402202535.11550-4-rein...@netbsd.org> Signed-off-by: Paolo Bonzini --- include/sysemu/hw_accel.h | 1 + include/sysemu/nvmm.h | 26 ++ target/i386/helper.c

Re: [PATCH v2 2/2] ui/cocoa: add option to swap Option and Command, enable by default

2021-05-01 Thread BALATON Zoltan
On Fri, 30 Apr 2021, gust...@noronha.eti.br wrote: From: Gustavo Noronha Silva On Mac OS X the Option key maps to Alt and Command to Super/Meta. This change swaps them around so that Alt is the key closer to the space bar and Meta/Super is between Control and Alt, like on non-Mac keyboards. It

[PULL 10/10] gitlab-ci: use --meson=internal for CFI jobs

2021-05-01 Thread Paolo Bonzini
If we use the system Meson but it is too old, the subsequent "meson configure" will fail. Always use the submodule when building with CFI. Signed-off-by: Paolo Bonzini --- .gitlab-ci.yml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.y

Re: [PATCH] hw/sd/omap_mmc: Use device_cold_reset() instead of device_legacy_reset()

2021-05-01 Thread Philippe Mathieu-Daudé
On 5/1/21 7:55 AM, Markus Armbruster wrote: > Peter Maydell writes: > >> The omap_mmc_reset() function resets its SD card via >> device_legacy_reset(). We know that the SD card does not have a qbus >> of its own, so the new device_cold_reset() function (which resets >> both the device and its ch

Re: [Trivial] docs: More precisely describe memory-backend-*::id's user

2021-05-01 Thread Laurent Vivier
Le 22/04/2021 à 10:42, Robert Hoo a écrit : > 'id' of memory-backend-{file,ram} is not only for '-numa''s reference, but > also other parameters like '-device nvdimm'. > More clearly call out this to avoid misinterpretation. > > Signed-off-by: Robert Hoo > --- > qemu-options.hx | 6 +++--- > 1 f

Re: [PATCH 0/2] hw: Qdev'ify reset() for mc146818rtc & etraxfs_timer

2021-05-01 Thread Philippe Mathieu-Daudé
ping? On 4/24/21 1:36 AM, Philippe Mathieu-Daudé wrote: > Remove qemu_register_reset() when a qdev type has a qbus parent. > > Philippe Mathieu-Daudé (2): > hw/timer/etraxfs_timer: Qdev'ify reset() > hw/rtc/mc146818rtc: Qdev'ify reset() > > hw/rtc/mc146818rtc.c | 35 +++-

Re: [PATCH v2 2/2] ui/cocoa: add option to swap Option and Command, enable by default

2021-05-01 Thread Gustavo Noronha Silva
Hey there, On Sat, May 1, 2021, at 6:39 AM, BALATON Zoltan wrote: > > On Mac OS X the Option key maps to Alt and Command to Super/Meta. This > > change > > swaps them around so that Alt is the key closer to the space bar and > > Meta/Super > > is between Control and Alt, like on non-Mac keyboard

Re: [Bug 1861677] Re: wavcapture crash with pulseaudio

2021-05-01 Thread Volker Rümelin
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. >https://bugs.launchpad.net/bugs/1861677 Title: wavcapture crash with pulseaudio Status in QEMU: New Hi Philippe, this bug was fixed with commit cbaf25d1f5 "audio: fix wavcapture se

Re: [PATCH v3 3/4] hw/arm: sabrelite: Connect the Ethernet PHY at address 6

2021-05-01 Thread Guenter Roeck
On 4/30/21 9:28 PM, Bin Meng wrote: > On Fri, Apr 30, 2021 at 10:41 PM Guenter Roeck wrote: >> >> Hi, >> >> On Wed, Jan 06, 2021 at 02:35:03PM +0800, Bin Meng wrote: >>> From: Bin Meng >>> >>> At present, when booting U-Boot on QEMU sabrelite, we see: >>> >>> Net: Board Net Initialization Fai

Re: [Bug 1861677] Re: wavcapture crash with pulseaudio

2021-05-01 Thread Philippe Mathieu-Daudé
On 5/1/21 3:01 PM, Volker Rümelin wrote: >> You received this bug notification because you are a member of qemu- >> devel-ml, which is subscribed to QEMU. >>https://bugs.launchpad.net/bugs/1861677 >> >> Title: >>  wavcapture crash with pulseaudio >> >> Status in QEMU: >>  New > > Hi Philippe, > >

[Bug 1861677] Re: wavcapture crash with pulseaudio

2021-05-01 Thread Philippe Mathieu-Daudé
Fixed in v5.1.0, commit cbaf25d1f59 ("audio: fix wavcapture segfault"). ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1861677 Title: wavcaptu

Re: [PATCH v4 0/3] nvdimm: Enable sync-dax property for nvdimm

2021-05-01 Thread Aneesh Kumar K.V
On 5/1/21 12:44 AM, Dan Williams wrote: Some corrections to terminology confusion below... ... file on the host in case of file backed v-nvdimms. This is addressed by virtio-pmem in case of x86_64 by making explicit flushes translating to fsync at qemu. Note that virtio-pmem was a pro

Re: [PULL 00/10] Misc patches for 2021-04-30 (incl. NVMM accelerator)

2021-05-01 Thread Peter Maydell
On Sat, 1 May 2021 at 10:35, Paolo Bonzini wrote: > > The following changes since commit b1cffefa1b163bce9aebc3416f562c1d3886eeaa: > > Update version for v6.0.0-rc4 release (2021-04-20 16:30:01 +0100) > > are available in the Git repository at: > > https://gitlab.com/bonzini/qemu.git tags/for-

Re: [PATCH 1/2] hw/timer/etraxfs_timer: Qdev'ify reset()

2021-05-01 Thread Laurent Vivier
Le 24/04/2021 à 01:36, Philippe Mathieu-Daudé a écrit : > TYPE_ETRAX_FS_TIMER is a sysbus device, so its DeviceClass::reset() > handler is called automatically when its qbus parent is reset. > Convert the generic reset to a qdev one, and remove the > qemu_register_reset() call. > > Signed-off-by:

[Bug 1891830] Re: msmouse serial mouse emulation broken? No id byte sent on reset

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/78 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 1884302] Re: disable automatic mouse grabbing

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/75 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 1888663] Re: msmouse not recognized in guest

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/77 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 1750899] Re: Mouse cursor sometimes can't pass the invisible border on the right side of the screen

2021-05-01 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/76 ** Changed in: qemu Status: New => Expired ** Bug watch

[PULL 00/31] target/hexagon patch queue

2021-05-01 Thread Richard Henderson
The following changes since commit 8f860d2633baf9c2b6261f703f86e394c6bc22ca: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-04-30' into staging (2021-04-30 16:02:00 +0100) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-he

[PULL 01/31] target/hexagon: translation changes

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Change cpu_ldl_code to translator_ldl. Don't end the TB after every packet when HEX_DEBUG is on. Make gen_check_store_width a simple call. Reported-by: Richard Henderson < Signed-off-by: Taylor Simpson Message-Id: <1615783984-25918-1-git-send-email-tsimp...@quicinc.com> Sig

[PULL 08/31] Hexagon (target/hexagon) remove unnecessary inline directives

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-4-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/cpu.c | 9 - target/hexagon/decode.c|

[PULL 07/31] Hexagon (target/hexagon) cleanup gen_log_predicated_reg_write_pair

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Similar to previous cleanup of gen_log_predicated_reg_write Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-3-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/genptr.c | 27 +--

[PULL 03/31] target/hexagon: Change DECODE_MAPPED_REG operand name to OPNUM

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Reported-by: Richard Henderson < Signed-off-by: Taylor Simpson Message-Id: <1615784049-26215-1-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/h

[PULL 02/31] target/hexagon: remove unnecessary checks in find_iclass_slots

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Reported-by: Richard Henderson < Signed-off-by: Taylor Simpson Message-Id: <1615784037-26129-1-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/iclass.c | 4 1 file changed, 4 deletions(-) diff --git a/target/hexagon/iclass.c b

[PULL 11/31] Hexagon (target/hexagon) decide if pred has been written at TCG gen time

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Multiple writes to the same preg are and'ed together. Rather than generating a runtime check, we can determine at TCG generation time if the predicate has previously been written in the packet. Test added to tests/tcg/hexagon/misc.c Suggested-by: Richard Henderson Signed-

[PULL 05/31] target/hexagon: remove unnecessary semicolons

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Reviewed-by: Philippe Mathieu-Daudé Reported-by: Richard Henderson < Signed-off-by: Taylor Simpson Message-Id: <1615784100-26459-1-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/gen_tcg.h | 4 ++-- 1 file changed, 2 insertions(+),

[PULL 04/31] target/hexagon: fix typo in comment

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Taylor Simpson Message-Id: <1615784115-26559-1-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targe

[PULL 06/31] Hexagon (target/hexagon) TCG generation cleanup

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Simplify TCG generation of hex_reg_written Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-2-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/genptr.c | 14

[PULL 12/31] Hexagon (target/hexagon) change variables from int to bool when appropriate

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-8-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/cpu_bits.h | 2 +-

[PULL 19/31] Hexagon (target/hexagon) cleanup reg_field_info definition

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Include size in declaration Remove {0, 0} entry Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-15-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/reg_fie

[PULL 09/31] Hexagon (target/hexagon) use env_archcpu and env_cpu

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Remove hexagon_env_get_cpu and replace with env_archcpu Replace CPU(hexagon_env_get_cpu(env)) with env_cpu(env) Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-5-git-send-email-tsimp...@quicinc.com

[PULL 10/31] Hexagon (target/hexagon) properly generate TB end for DISAS_NORETURN

2021-05-01 Thread Richard Henderson
From: Taylor Simpson When exiting a TB, generate all the code before returning from hexagon_tr_translate_packet so that nothing needs to be done in hexagon_tr_tb_stop. Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-6-

[PULL 16/31] Hexagon (target/hexagon) replace float32_mul_pow2 with float32_scalbn

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-12-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/arch.c | 28 +++- 1 file changed

[PULL 30/31] Hexagon (target/hexagon) load into shifted register instructions

2021-05-01 Thread Richard Henderson
From: Taylor Simpson The following instructions are added L2_loadalignb_io Ryy32 = memb_fifo(Rs32+#s11:1) L2_loadalignh_io Ryy32 = memh_fifo(Rs32+#s11:1) L4_loadalignb_ur Ryy32 = memb_fifo(Rt32<<#u2+#U6) L4_loadalignh_ur Ryy32 = memh_fifo(Rt32<<

[PULL 13/31] Hexagon (target/hexagon) remove unused carry_from_add64 function

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-9-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/arch.h | 1 - target/hexagon/macros.h | 2 -- target/

[PULL 14/31] Hexagon (target/hexagon) change type of softfloat_roundingmodes

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-10-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PULL 15/31] Hexagon (target/hexagon) use softfloat default NaN and tininess

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-11-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/cpu.c | 5 target/hexagon/op_helper.c

[PULL 1/5] exec: Remove accel/tcg/ from include paths

2021-05-01 Thread Richard Henderson
From: Philippe Mathieu-Daudé When TCG is enabled, the accel/tcg/ include path is added to the project global include search list. This accel/tcg/ directory contains a header named "internal.h" which, while intented to be internal to accel/tcg/, is accessible by all files compiled when TCG is enab

[PULL 17/31] Hexagon (target/hexagon) use softfloat for float-to-int conversions

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Use the proper return for helpers that convert to unsigned Remove target/hexagon/conv_emu.[ch] Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-13-git-send-email-tsimp...@quicinc.com> Signed-off-by:

[PULL 20/31] Hexagon (target/hexagon) move QEMU_GENERATE to only be on during macros.h

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-16-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson --- target/hexagon/genptr.c | 3 ++- 1 file changed, 2 insertions(+),

[PULL 18/31] Hexagon (target/hexagon) cleanup ternary operators in semantics

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Change (cond ? (res = x) : (res = y)) to res = (cond ? x : y) This makes the semnatics easier to for idef-parser to deal with The following instructions are impacted C2_any8 C2_all8 C2_mux C2_muxii C2_muxir C2_muxri Signed-off-by: Taylor Simpson R

[PULL 5/5] decodetree: Extend argument set syntax to allow types

2021-05-01 Thread Richard Henderson
Rather than force all structure members to be 'int', allow the type of the member to be specified. Reviewed-by: Luis Pires Signed-off-by: Richard Henderson --- docs/devel/decodetree.rst | 11 --- tests/decode/succ_argset_type1.decode | 1 + scripts/decodetree.py

[PULL 22/31] Hexagon (target/hexagon) add F2_sfrecipa instruction

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Rd32,Pe4 = sfrecipa(Rs32, Rt32) Recripocal approx Test cases in tests/tcg/hexagon/multi_result.c FP exception tests added to tests/tcg/hexagon/fpstuff.c Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-18-git-send-email-tsimp.

[PULL 29/31] Hexagon (target/hexagon) load and unpack bytes instructions

2021-05-01 Thread Richard Henderson
From: Taylor Simpson The following instructions are added L2_loadbzw2_io Rd32 = memubh(Rs32+#s11:1) L2_loadbzw4_io Rdd32 = memubh(Rs32+#s11:1) L2_loadbsw2_io Rd32 = membh(Rs32+#s11:1) L2_loadbsw4_io Rdd32 = membh(Rs32+#s11:1) L4_loadbzw2_ur

[PULL 23/31] Hexagon (target/hexagon) add F2_sfinvsqrta

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Rd32,Pe4 = sfinvsqrta(Rs32) Square root approx The helper packs the 2 32-bit results into a 64-bit value, and the fGEN_TCG override unpacks them into the proper results. Test cases in tests/tcg/hexagon/multi_result.c FP exception tests added to tests/tcg/hexagon/fpstuff

[PULL 24/31] Hexagon (target/hexagon) add A5_ACS (vacsh)

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Rxx32,Pe4 = vacsh(Rss32, Rtt32) Add compare and select elements of two vectors Test cases in tests/tcg/hexagon/multi_result.c Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-20-git-send-email-tsimp...@quicinc.com> Signed-off-

[PULL 25/31] Hexagon (target/hexagon) add A6_vminub_RdP

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Rdd32,Pe4 = vminub(Rtt32, Rss32) Vector min of bytes Test cases in tests/tcg/hexagon/multi_result.c Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-21-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderson ---

[PULL 21/31] Hexagon (target/hexagon) compile all debug code

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Change #if HEX_DEBUG to if (HEX_DEBUG) so the debug code doesn't bit rot Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-17-git-send-email-tsimp...@quicinc.com> Signed-off-by: Richard Henderso

[PULL 26/31] Hexagon (target/hexagon) add A4_addp_c/A4_subp_c

2021-05-01 Thread Richard Henderson
From: Taylor Simpson Rdd32 = add(Rss32, Rtt32, Px4):carry Add with carry Rdd32 = sub(Rss32, Rtt32, Px4):carry Sub with carry Test cases in tests/tcg/hexagon/multi_result.c Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-22-git-send-email-tsim

[PULL 31/31] Hexagon (target/hexagon) CABAC decode bin

2021-05-01 Thread Richard Henderson
From: Taylor Simpson The following instruction is added S2_cabacdecbinRdd32=decbin(Rss32,Rtt32) Test cases added to tests/tcg/hexagon/misc.c Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Message-Id: <1617930474-31979-27-git-send-email-tsimp...@quicinc.com> Signe

[PULL 0/5] tcg patch queue

2021-05-01 Thread Richard Henderson
The following changes since commit 8f860d2633baf9c2b6261f703f86e394c6bc22ca: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-04-30' into staging (2021-04-30 16:02:00 +0100) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-tc

[PULL 2/5] decodetree: Introduce whex and whexC helpers

2021-05-01 Thread Richard Henderson
Form a hex constant of the appropriate insnwidth. Begin using f-strings on changed lines. Reviewed-by: Luis Pires Signed-off-by: Richard Henderson --- scripts/decodetree.py | 66 +-- 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/scripts/

[PULL 28/31] Hexagon (target/hexagon) bit reverse (brev) addressing

2021-05-01 Thread Richard Henderson
From: Taylor Simpson The following instructions are added L2_loadrub_pbr Rd32 = memub(Rx32++Mu2:brev) L2_loadrb_pbr Rd32 = memb(Rx32++Mu2:brev) L2_loadruh_pbr Rd32 = memuh(Rx32++Mu2:brev) L2_loadrh_pbr Rd32 = memh(Rx32++Mu2:brev) L2_loadri

[PATCH 1/2] input-linux: Delay grab toggle if keys are pressed

2021-05-01 Thread Rainer Müller
When multiple keyboards are passed to the guest with input-linux, there could still be keys pressed on the other keyboard when toggling grab. Delay toggling grab on the other keyboard until all keys are released, otherwise keys could be stuck on host without a key up event. Signed-off-by: Rainer M

[PULL 27/31] Hexagon (target/hexagon) circular addressing

2021-05-01 Thread Richard Henderson
From: Taylor Simpson The following instructions are added L2_loadrub_pci Rd32 = memub(Rx32++#s4:0:circ(Mu2)) L2_loadrb_pci Rd32 = memb(Rx32++#s4:0:circ(Mu2)) L2_loadruh_pci Rd32 = memuh(Rx32++#s4:1:circ(Mu2)) L2_loadrh_pci Rd32 = memh(Rx32++#s

[PULL 3/5] decodetree: More use of f-strings

2021-05-01 Thread Richard Henderson
Reviewed-by: Luis Pires Signed-off-by: Richard Henderson --- scripts/decodetree.py | 50 --- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 0861e5d503..d5da101167 100644 --- a/scripts/dec

[PATCH 2/2] input-linux: Allow to toggle grab from QMP

2021-05-01 Thread Rainer Müller
This patch allows to boot a guest without the input-linux device being grabbed immediately from the host. This is useful when the guest is automatically started, but is supposed to stay in the background until the user actively switches to it with a key combination. In this usage example the host

[PULL 4/5] decodetree: Add support for 64-bit instructions

2021-05-01 Thread Richard Henderson
From: Luis Fernando Fujita Pires Allow '64' to be specified for the instruction width command line params and use the appropriate extract and deposit functions in that case. This will be used to implement the new 64-bit Power ISA 3.1 instructions. Reviewed-by: Philippe Mathieu-Daudé Signed-off

[PATCH 0/2] input-linux: Allow to toggle grab from QMP

2021-05-01 Thread Rainer Müller
This adds an grab-active bool option to input-linux objects to control the grab state of evdev devices from QMP. The first patch fixes a problem with multiple keyboards that was previously unlikely, as the user will only use one device at a time. It could be merged independently, but I am submittin

Re: [PULL 0/5] tcg patch queue

2021-05-01 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210501185116.1338875-1-richard.hender...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210501185116.1338875-1-richard.hender...@linaro.org Subject: [PULL 0/5] tcg

Re: [PATCH v3 3/4] hw/arm: sabrelite: Connect the Ethernet PHY at address 6

2021-05-01 Thread Guenter Roeck
On 4/30/21 9:28 PM, Bin Meng wrote: > On Fri, Apr 30, 2021 at 10:41 PM Guenter Roeck wrote: >> >> Hi, >> >> On Wed, Jan 06, 2021 at 02:35:03PM +0800, Bin Meng wrote: >>> From: Bin Meng >>> >>> At present, when booting U-Boot on QEMU sabrelite, we see: >>> >>> Net: Board Net Initialization Fai

Re: [PULL 00/31] target/hexagon patch queue

2021-05-01 Thread Peter Maydell
available in the Git repository at: > > https://gitlab.com/rth7680/qemu.git tags/pull-hex-20210501 > > for you to fetch changes up to 26f7c044ad234c3dfa7ca2ddf047a71d815e66dc: > > Hexagon (target/hexagon) CABAC decode bin (2021-05-01 08:31:43 -0700) > > -

Re: [PATCH v3 3/4] hw/arm: sabrelite: Connect the Ethernet PHY at address 6

2021-05-01 Thread Philippe Mathieu-Daudé
On 5/1/21 10:12 PM, Guenter Roeck wrote: > On 4/30/21 9:28 PM, Bin Meng wrote: >> On Fri, Apr 30, 2021 at 10:41 PM Guenter Roeck wrote: >>> >>> Hi, >>> >>> On Wed, Jan 06, 2021 at 02:35:03PM +0800, Bin Meng wrote: From: Bin Meng At present, when booting U-Boot on QEMU sabrelite, we

Re: [PATCH 1/2] hw/timer/etraxfs_timer: Qdev'ify reset()

2021-05-01 Thread Philippe Mathieu-Daudé
On 5/1/21 6:46 PM, Laurent Vivier wrote: > Le 24/04/2021 à 01:36, Philippe Mathieu-Daudé a écrit : >> TYPE_ETRAX_FS_TIMER is a sysbus device, so its DeviceClass::reset() >> handler is called automatically when its qbus parent is reset. >> Convert the generic reset to a qdev one, and remove the >> q

[PATCH v2 0/2] hw: Convert mc146818rtc & etraxfs_timer to 3-phase reset interface

2021-05-01 Thread Philippe Mathieu-Daudé
Remove qemu_register_reset() when a qdev type has a qbus parent, implementing the 3-phase Resettable interface. Since v1: - Use 3-phase reset interface instead of qdev one (Laurent) Supersedes: <20210423233652.3042941-1-f4...@amsat.org> Philippe Mathieu-Daudé (2): hw/timer/etraxfs_timer: Conve

[PATCH v2 1/2] hw/timer/etraxfs_timer: Convert to 3-phase reset (Resettable interface)

2021-05-01 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé TYPE_ETRAX_FS_TIMER is a sysbus device, so its DeviceClass::reset() handler is called automatically when its qbus parent is reset (we don't need to register it manually). Convert the generic reset to a enter/exit resettable ones, and remove the qemu_register_reset()

[PATCH v2 2/2] hw/rtc/mc146818rtc: Convert to 3-phase reset (Resettable interface)

2021-05-01 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé TYPE_MC146818_RTC is an ISA device, so its DeviceClass::reset() handler is called automatically when its qbus parent is reset (we don't need to register it manually). We have 2 reset() methods: a generic one and the qdev one. Merge them into a reset_enter handler (ke

Re: [PATCH v4 02/12] accel: Introduce 'query-accels' QMP command

2021-05-01 Thread Philippe Mathieu-Daudé
On 4/30/21 9:03 PM, Eric Blake wrote: > On 4/15/21 11:32 AM, Philippe Mathieu-Daudé wrote: >> Introduce the 'query-accels' QMP command which returns a list >> of built-in accelerator names. >> >> - Accelerator is a QAPI enum of all existing accelerators, >> >> - AcceleratorInfo is a QAPI structure

Re: [PULL 00/31] target/hexagon patch queue

2021-05-01 Thread Richard Henderson
On 5/1/21 1:40 PM, Peter Maydell wrote: Build failure on the gitlab CI "clang-user" job: https://gitlab.com/qemu-project/qemu/-/jobs/1229108656 ../target/hexagon/genptr.c:31:20: error: unused function 'gen_read_reg' [-Werror,-Wunused-function] static inline TCGv gen_read_reg(TCGv result, int num

[PATCH v5 00/10] qtests: Check accelerator available at runtime via QMP 'query-accels'

2021-05-01 Thread Philippe Mathieu-Daudé
Series fully reviewed. Hi, This series aims at having accelerator-independent qtests by querying a QEMU instance at runtime to check the list of built-in accelerators. First we add the 'query-accels' QMP command, then we add the qtest_has_accel() method to libqtest, finally we use this new metho

[PATCH v5 01/10] MAINTAINERS: Add qtest/arm-cpu-features.c to ARM TCG CPUs section

2021-05-01 Thread Philippe Mathieu-Daudé
We want the ARM maintainers and the qemu-arm@ list to be notified when this file is modified. Add an entry to the 'ARM TCG CPUs' section in the MAINTAINERS file. Acked-by: Andrew Jones Reviewed-by: Thomas Huth Reviewed-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1

[PATCH v5 04/10] qtest/arm-cpu-features: Use generic qtest_has_accel() to check for KVM

2021-05-01 Thread Philippe Mathieu-Daudé
Use the recently added generic qtest_has_accel() method to check if KVM is available. Suggested-by: Claudio Fontana Reviewed-by: Andrew Jones Reviewed-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/arm-cpu-features.c | 25 + 1 file changed, 1 ins

[PATCH v5 02/10] accel: Introduce 'query-accels' QMP command

2021-05-01 Thread Philippe Mathieu-Daudé
Introduce the 'query-accels' QMP command which returns a list of built-in accelerator names. - Accelerator is a QAPI enum of all existing accelerators, - AcceleratorInfo is a QAPI structure providing accelerator specific information. Currently the common structure base provides the name of th

[PATCH v5 06/10] qtest/arm-cpu-features: Remove TCG fallback to KVM specific tests

2021-05-01 Thread Philippe Mathieu-Daudé
sve_tests_sve_off_kvm() and test_query_cpu_model_expansion_kvm() tests are now only being run if KVM is available. Drop the TCG fallback. Suggested-by: Andrew Jones Reviewed-by: Andrew Jones Reviewed-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/arm-cpu-features.c | 2

[PATCH v5 05/10] qtest/arm-cpu-features: Restrict sve_tests_sve_off_kvm test to KVM

2021-05-01 Thread Philippe Mathieu-Daudé
The sve_tests_sve_off_kvm() test is KVM specific. Only run it if KVM is available. Suggested-by: Andrew Jones Reviewed-by: Andrew Jones Reviewed-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/arm-cpu-features.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

  1   2   >