[PATCH v5 19/23] target/ppc: Implement setbc/setbcr/stnbc/setnbcr instructions

2021-05-17 Thread matheus . ferst
From: Matheus Ferst Implements the following PowerISA v3.1 instructions: setbc: Set Boolean Condition setbcr: Set Boolean Condition Reverse setnbc: Set Negative Boolean Condition setnbcr: Set Negative Boolean Condition Reverse Signed-off-by: Matheus Ferst --- v5: - Style fix; - Use

[PATCH v5 17/23] target/ppc: Move D/DS/X-form integer stores to decodetree

2021-05-17 Thread matheus . ferst
From: Richard Henderson These are all connected by macros in the legacy decoding. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/insn32.decode | 22 ++ target/ppc/translate.c | 85 +-

[PATCH v5 15/23] target/ppc: Move D/DS/X-form integer loads to decodetree

2021-05-17 Thread matheus . ferst
From: Richard Henderson These are all connected by macros in the legacy decoding. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/insn32.decode | 37 ++ target/ppc/translate.c | 147 -

[PATCH v5 16/23] target/ppc: Implement prefixed integer load instructions

2021-05-17 Thread matheus . ferst
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/insn64.decode | 15 +++ target/ppc/translate/fixedpoint-impl.c.inc | 16 2 files changed, 31 insertions(+) diff --git a/target/ppc/insn64.decode

[PATCH v5 12/23] target/ppc: Move ADDI, ADDIS to decodetree, implement PADDI

2021-05-17 Thread matheus . ferst
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/insn32.decode | 8 target/ppc/insn64.decode | 12 ++ target/ppc/translate.c | 29 --

[PATCH v5 13/23] target/ppc: Implement PNOP

2021-05-17 Thread matheus . ferst
From: Richard Henderson The illegal suffix behavior matches what was observed in a POWER10 DD2.0 machine. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- v5: - Remove argument set from PNOP; - Use no_overlap_group for invalid suffixes. --- target/ppc/insn64.decode

[PATCH v5 14/23] TCG: add tcg_constant_tl

2021-05-17 Thread matheus . ferst
From: Matheus Ferst Used in D/DS/X-form load/store implementation. Signed-off-by: Matheus Ferst --- include/tcg/tcg-op.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 2cd1faf9c4..ef8a008ea7 100644 --- a/include/tcg/tcg-op.h +++

[PATCH v5 11/23] target/ppc: Add infrastructure for prefixed insns

2021-05-17 Thread matheus . ferst
From: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/cpu.h | 1 + target/ppc/insn32.decode | 18 target/ppc/insn64.decode | 18

[PATCH v5 09/23] target/ppc: Introduce macros to check isa extensions

2021-05-17 Thread matheus . ferst
From: Richard Henderson These will be used by the decodetree trans_* functions to early-exit when the instruction set is not enabled. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/translate.c | 26 ++ 1 file changed, 26 insertions(+)

[PATCH v3] target/xtensa: clean up unaligned access

2021-05-17 Thread Max Filippov
Xtensa cores may or may not have hardware support for unaligned memory access. On cores with such support pass MO_UNALN in memory access flags for all operations that would not raise an exception. Drop condition from xtensa_cpu_do_unaligned_access and replace it with assertions. Add a test.

[PATCH v5 10/23] target/ppc: Move page crossing check to ppc_tr_translate_insn

2021-05-17 Thread matheus . ferst
From: Richard Henderson With prefixed instructions, the number of instructions remaining until the page crossing is no longer constant. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/translate.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[PATCH v5 08/23] target/ppc: Use translator_loop_temp_check

2021-05-17 Thread matheus . ferst
From: Richard Henderson The special logging is unnecessary. It will have been done immediately before in the log file. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst Reviewed-by: Bruno Larsen (billionai) --- target/ppc/translate.c | 6 +- 1 file changed, 1 insertion(+),

[PATCH v5 05/23] target/ppc: Move single-step check to ppc_tr_tb_stop

2021-05-17 Thread matheus . ferst
From: Richard Henderson When single-stepping, force max_insns to 1 in init_disas so that we exit the translation loop immediately. Combine the single-step checks in tb_stop, and give the gdb exception priority over the cpu exception, just as we already do in gen_lookup_and_goto_ptr.

[PATCH v5 07/23] target/ppc: Mark helper_raise_exception* as noreturn

2021-05-17 Thread matheus . ferst
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/helper.h b/target/ppc/helper.h index 513066d54d..ea9f2a236c 100644 --- a/target/ppc/helper.h +++

[PATCH v5 06/23] target/ppc: Tidy exception vs exit_tb

2021-05-17 Thread matheus . ferst
From: Richard Henderson We do not need to emit an exit_tb after an exception, as the latter will exit via longjmp. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v5 02/23] target/ppc: Replace POWERPC_EXCP_STOP with DISAS_EXIT_UPDATE

2021-05-17 Thread matheus . ferst
From: Richard Henderson Remove the synthetic "exception" after no more uses. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- linux-user/ppc/cpu_loop.c | 3 --- target/ppc/cpu.h | 1 - target/ppc/translate.c| 24 +++- 3 files changed, 7

[PATCH v5 03/23] target/ppc: Replace POWERPC_EXCP_BRANCH with DISAS_NORETURN

2021-05-17 Thread matheus . ferst
From: Richard Henderson The translation of branch instructions always results in exit from the TB. Remove the synthetic "exception" after no more uses. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- linux-user/ppc/cpu_loop.c | 3 --- target/ppc/cpu.h | 2 --

[PATCH v5 04/23] target/ppc: Remove DisasContext.exception

2021-05-17 Thread matheus . ferst
From: Richard Henderson Now that we have removed all of the fake exceptions, and all real exceptions exit via DISAS_NORETURN, we can remove this field. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/translate.c | 30 -- 1 file

Re: [PATCH v4 0/9] hw/block/fdc: Allow Kconfig-selecting ISA bus/SysBus floppy controllers

2021-05-17 Thread Philippe Mathieu-Daudé
On 5/17/21 9:19 PM, John Snow wrote: > On 5/17/21 2:39 PM, Philippe Mathieu-Daudé wrote: >> Missing review: #1 >> >> Hi, >> >> The floppy disc controllers pulls in irrelevant devices (sysbus in >> an ISA-only machine, ISA bus + isa devices on a sysbus-only machine). >> >> This series clean that by

[PATCH v5 01/23] target/ppc: Introduce gen_icount_io_start

2021-05-17 Thread matheus . ferst
From: Richard Henderson Create a function to handle the details for interacting with icount. Force the exit from the tb via DISAS_TOO_MANY, which allows chaining to the next tb, where the code emitted for gen_tb_start() will determine if we must exit. We can thus remove any matching

[PATCH v5 00/23] Base for adding PowerPC 64-bit instructions

2021-05-17 Thread matheus . ferst
From: Matheus Ferst This series provides the basic infrastructure for adding the new 32/64-bit instructions in Power ISA 3.1 to target/ppc. v5: - Rebase on ppc-for-6.1; - Change copyright line from new files; - Remove argument set from PNOP; - Add comments to explain helper_cfuged

RE: [RFC PATCH v3 4/9] hw/arm/virt: Initialize the present cpu members

2021-05-17 Thread Salil Mehta
> From: Qemu-arm [mailto:qemu-arm-bounces+salil.mehta=huawei@nongnu.org] > On Behalf Of Yanan Wang > Sent: Sunday, May 16, 2021 11:29 AM > To: Peter Maydell ; Andrew Jones > ; Michael S . Tsirkin ; Igor Mammedov > ; Shannon Zhao ; Alistair > Francis ; David Gibson > ; qemu-devel@nongnu.org;

Re: [PATCH V6 6/6] net/net.c: Add handler for COLO passthrough connection

2021-05-17 Thread Lukas Straub
On Tue, 20 Apr 2021 23:15:37 +0800 Zhang Chen wrote: > Use connection protocol,src port,dst port,src ip,dst ip as the key > to bypass certain network traffic in COLO compare. > > Signed-off-by: Zhang Chen > --- > net/net.c | 160 +- > 1 file

Re: [PATCH V6 1/6] qapi/net: Add IPFlowSpec and QMP command for COLO passthrough

2021-05-17 Thread Lukas Straub
On Tue, 20 Apr 2021 23:15:32 +0800 Zhang Chen wrote: > Since the real user scenario does not need COLO to monitor all traffic. > Add colo-passthrough-add and colo-passthrough-del to maintain > a COLO network passthrough list. Add IPFlowSpec struct for all QMP commands. > Except protocol field is

Re: [PATCH v4 2/2] target/i386: Correct implementation for FCS, FIP, FDS and FDP

2021-05-17 Thread Eduardo Habkost
Hi, Thanks for the patch, and apologies for not reviewing earlier versions. On Fri, May 07, 2021 at 04:00:58PM +0800, Ziqiao Kong wrote: > Changes since v3: > - Split the long patches to series to make review easier. > - Fix the coding style problems in v3. > > Changes since v2: > - Change

Re: [PATCH v4 1/2] target/i386: Trivial code motion

2021-05-17 Thread Eduardo Habkost
On Fri, May 07, 2021 at 04:00:56PM +0800, Ziqiao Kong wrote: > Move the float translation case to a new block by a new pair of braces. If you are just adding braces around the code, do you really need to reindent all the code? I don't see any mention of `switch` statements on style.rst, but I

Re: [PATCH V6 5/6] net/colo-compare: Add passthrough list to CompareState

2021-05-17 Thread Lukas Straub
On Tue, 20 Apr 2021 23:15:36 +0800 Zhang Chen wrote: > Add passthrough list for each CompareState. > > Signed-off-by: Zhang Chen > --- > net/colo-compare.c | 28 > net/colo-compare.h | 12 > 2 files changed, 40 insertions(+) > > diff --git

Re: [PATCH v2 00/12] hw: Various Kconfig fixes

2021-05-17 Thread Eduardo Habkost
On Mon, May 17, 2021 at 03:18:56PM -0400, Eduardo Habkost wrote: > CCing Build system architecture maintainer (Daniel). Oops, I was misled by the subsection title. Daniel is responsible only for the build system documentation. Do we have any volunteers willing to be listed as reviewers for

Re: [PATCH V6 4/6] net/colo-compare: Move data structure and define to .h file.

2021-05-17 Thread Lukas Straub
On Tue, 20 Apr 2021 23:15:35 +0800 Zhang Chen wrote: > Rename structure with COLO index and move it to .h file, > It make other modules can reuse COLO code. Hi, There are some definitions that don't need to be moved into the header, more comments below. In general I think the new passthrough

[PATCH v2] target/xtensa: clean up unaligned access

2021-05-17 Thread Max Filippov
Xtensa cores may or may not have hardware support for unaligned memory access. On cores with such support pass MO_UNALN in memory access flags for all operations that would not raise an exception. Drop condition from xtensa_cpu_do_unaligned_access and replace it with assertions. Add a test.

Re: [PATCH 08/21] block/backup: stricter backup_calculate_cluster_size()

2021-05-17 Thread Vladimir Sementsov-Ogievskiy
17.05.2021 19:57, Max Reitz wrote: On 17.05.21 08:44, Vladimir Sementsov-Ogievskiy wrote: No reason to tolerate bdrv_get_info() errors except for ENOTSUP. Let's just error-out, it's simpler and safer. Hm, doesn’t look that much simpler to me.  Not sure how much safer it is, because the point

Re: [PATCH v3] i386: Add ratelimit for bus locks acquired in guest

2021-05-17 Thread Eduardo Habkost
+Stefan I have a question about ratelimit_set_speed() below: On Fri, Apr 30, 2021 at 06:33:05PM +0800, Chenyi Qiang wrote: > A bus lock is acquired through either split locked access to writeback > (WB) memory or any locked access to non-WB memory. It is typically >1000 > cycles slower than an

[PATCH 2/4] paaudio: remove unused stream flags

2021-05-17 Thread Volker Rümelin
In current code there are no calls to pa_stream_get_latency() or pa_stream_get_time() to receive latency or time information. Remove the flags PA_STREAM_INTERPOLATE_TIMING and PA_STREAM_AUTO_TIMING_UPDATE which instruct PulseAudio to calculate this information in regular intervals.

[PATCH 1/4] alsaaudio: remove #ifdef DEBUG to avoid bit rot

2021-05-17 Thread Volker Rümelin
Merge the #ifdef DEBUG code with the if statement a few lines above to avoid bit rot. Suggested-by: Gerd Hoffmann Signed-off-by: Volker Rümelin --- audio/alsaaudio.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index

[PATCH 0/4] Misc. audio patches

2021-05-17 Thread Volker Rümelin
A small collection of patches for the audio subsystem. It took me one evening to get a working audio system with JACK. I never associated the in-(NULL) and out-(NULL) devices in the patch bay with qemu. With best regards, Volker Volker Rümelin (4):   alsaaudio: remove #ifdef DEBUG to avoid bit

Re: [PATCH 05/21] block: rename backup-top to copy-before-write

2021-05-17 Thread Vladimir Sementsov-Ogievskiy
17.05.2021 19:05, Max Reitz wrote: On 17.05.21 08:44, Vladimir Sementsov-Ogievskiy wrote: We are going to convert backup_top to full featured public filter, which can be used in separate of backup job. Start from renaming from "how it used" to "what it does". Is this safe?  The name was

Re: [PATCH v6 00/10] Fixed some bugs and optimized some codes for COLO

2021-05-17 Thread Lukas Straub
On Thu, 8 Apr 2021 23:20:46 -0400 leirao wrote: > From: Rao, Lei > > Changes since v5: > --Replaced g_slice_new calls with g_slice_new0. > > Changes since v4: > --Replaced qemu_mutex_lock calls with QEMU_LOCK_GUARD in > colo_bitmap_clear_dirty. > --Modify some minor

[PATCH 4/4] jackaudio: avoid that the client name contains the word (NULL)

2021-05-17 Thread Volker Rümelin
Currently with jackaudio client name and qemu guest name unset, the JACK client names are out-(NULL) and in-(NULL). These names are user visible in the patch bay. Replace the function call to qemu_get_vm_name() with a call to audio_application_name() which replaces NULL with "qemu" to have more

[PATCH] target/xtensa: clean up unaligned access

2021-05-17 Thread Max Filippov
Xtensa cores may or may not have hardware support for unaligned memory access. On cores with such support pass MO_UNALN in memory access flags for all operations that would not raise an exception. Drop condition from xtensa_cpu_do_unaligned_access and replace it with assertions. Add a test.

[PATCH 3/4] audio: move code to audio/audio.c

2021-05-17 Thread Volker Rümelin
Move the code to generate the pa_context_new() application name argument to a function in audio/audio.c. The new function audio_application_name() will also be used in the jackaudio backend. Signed-off-by: Volker Rümelin --- audio/audio.c | 9 + audio/audio_int.h | 2 ++

[Bug 1878250] Re: Assertion failure in iov_from_buf_full through the e1000e

2021-05-17 Thread Thomas Huth
This still triggers with current QEMU development version ... marking as "Confirmed" ... Alexander, could you please move this ticket to the new issue tracker at gitlab? ** Changed in: qemu Status: New => Confirmed ** Tags added: fuzzer net -- You received this bug notification because

[Bug 1892962] Re: Segfault in usb_bus_from_device

2021-05-17 Thread Thomas Huth
This does not crash for me anymore, so I guess it has been fixed already. Could you still reproduce the crash with the latest version of QEMU? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [PATCH] fdc: check drive block device before usage (CVE-2021-20196)

2021-05-17 Thread John Snow
On 1/23/21 12:52 PM, Alexander Bulekov wrote: On 210123 1247, Alexander Bulekov wrote: Hello, Here is a reproducer for this bug found by the OSS-Fuzz fuzzer: cat << EOF | qemu-system-i386 -display none -machine accel=qtest \ -m 512M -machine pc -device floppy,unit=1,id=floppy0,drive=disk0 \

Re: [PATCH v2 00/12] hw: Various Kconfig fixes

2021-05-17 Thread Eduardo Habkost
CCing Build system architecture maintainer (Daniel). On Sat, May 15, 2021 at 07:37:04PM +0200, Philippe Mathieu-Daudé wrote: > Various Kconfig fixes when building stand-alone machine binaries. Who should merge this once it's ready? > > Since v1: > - Fixed Pegasos2 machine > - Removed

Re: [PULL 00/59] Linux user for 6.1 patches

2021-05-17 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210517181424.8093-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210517181424.8093-1-laur...@vivier.eu Subject: [PULL 00/59] Linux user for 6.1 patches

Re: [PATCH v4 0/9] hw/block/fdc: Allow Kconfig-selecting ISA bus/SysBus floppy controllers

2021-05-17 Thread John Snow
On 5/17/21 2:39 PM, Philippe Mathieu-Daudé wrote: Missing review: #1 Hi, The floppy disc controllers pulls in irrelevant devices (sysbus in an ISA-only machine, ISA bus + isa devices on a sysbus-only machine). This series clean that by extracting each device in its own file, adding the

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-05-17 Thread Thomas Huth
** Bug watch removed: Sourceware.org Bugzilla #27543 https://sourceware.org/bugzilla/show_bug.cgi?id=27543 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on

Re: [PATCH V3 00/22] Live Update

2021-05-17 Thread Alex Williamson
On Mon, 17 May 2021 12:40:43 +0100 Stefan Hajnoczi wrote: > On Fri, May 14, 2021 at 11:15:18AM -0400, Steven Sistare wrote: > > On 5/14/2021 7:53 AM, Stefan Hajnoczi wrote: > > > On Thu, May 13, 2021 at 04:21:15PM -0400, Steven Sistare wrote: > > >> On 5/12/2021 12:42 PM, Stefan Hajnoczi

Re: Best approach for supporting snapshots for QEMU's gdbstub?

2021-05-17 Thread Peter Maydell
On Mon, 17 May 2021 at 18:37, Alex Bennée wrote: > Luis Machado writes: > > Right. We don't support reverse step/next/continue for remote targets. > > I think this would be the most appropriate way to implement this > > feature in GDB. But it is not trivial. > > You do because

[PATCH v2 4/6] python/console_socket: Add a pylint ignore

2021-05-17 Thread John Snow
We manage cleaning up this resource ourselves. Pylint should shush. Signed-off-by: John Snow --- python/qemu/console_socket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/qemu/console_socket.py b/python/qemu/console_socket.py index 87237bebef7..8c4ff598ad7 100644 ---

[Bug 1924738] Re: Failed to restore domain - error load load virtio-balloon:virtio

2021-05-17 Thread Thomas Huth
The QEMU project is currently moving its bug tracking to another system. For this we need to know how to transfer the bug to the new system if (if still necessary). Thus we're setting the status to "Incomplete" now. In the unlikely case that the bug has already been fixed in the final 6.0 release

[Bug 1886225] Re: [Feature request] Oracle Solaris 11.4 VM image

2021-05-17 Thread Thomas Huth
I'm closing this since it's very unlikely that we get a Solaris VM image, since they are not available for free, as far as I know. Maybe somebody could contribute an illumos-based image one day, but that's nothing that we have to track in the bug tracker, I think. ** Changed in: qemu

Re: [PATCH v6 00/25] python: create installable package

2021-05-17 Thread John Snow
On 5/12/21 7:12 PM, John Snow wrote: Based-on: <20210512214642.2803189-1-js...@redhat.com> CI: https://gitlab.com/jsnow/qemu/-/pipelines/302010131 GitLab: https://gitlab.com/jsnow/qemu/-/tree/python-package-mk3 MR: https://gitlab.com/jsnow/qemu/-/merge_requests/4 Patchset updated and rebased

[PATCH v2 2/6] python/machine: use subprocess.DEVNULL instead of open(os.path.devnull)

2021-05-17 Thread John Snow
One less file resource to manage, and it helps quiet some pylint >= 2.8.0 warnings about not using a with-context manager for the open call. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé --- python/qemu/machine.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[Bug 1886306] Re: qemu running slow when the window is in background

2021-05-17 Thread Thomas Huth
I think there is quite a bit of information missing here? Which host OS / distribution are we talking about here? Which parameters were used for "configure"? Which QEMU version has been used? Is it still reproducible with the latest version? ... thus I wonder whether this should get closed, or

[Bug 1883268] Re: random errors on aarch64 when executing __aarch64_cas8_acq_rel

2021-05-17 Thread Thomas Huth
Thanks for moving the ticket to gitlab! ... so I'm closing this on Launchpad now. ** Changed in: qemu Status: Incomplete => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1883268

[PATCH v2 1/6] python/console_socket: avoid one-letter variable

2021-05-17 Thread John Snow
Fixes pylint warnings. Signed-off-by: John Snow Reviewed-by: Cleber Rosa Reviewed-by: Philippe Mathieu-Daudé --- python/qemu/console_socket.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/qemu/console_socket.py b/python/qemu/console_socket.py index

[PATCH v2 0/6] Python: delint python library

2021-05-17 Thread John Snow
gitlab CI: https://gitlab.com/jsnow/qemu/-/pipelines/304224309 branch: https://gitlab.com/jsnow/qemu/-/commits/python-package-pre-cleanup This series serves as a pre-requisite for packaging the python series and getting the linters running via CI. The first patch fixes a linter error we've had

[Bug 1923648] Re: macOS App Nap feature gradually freezes QEMU process

2021-05-17 Thread Thomas Huth
Moved here: https://gitlab.com/qemu-project/qemu/-/issues/334 ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #334 https://gitlab.com/qemu-project/qemu/-/issues/334 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[PATCH v2 6/6] python/machine: disable warning for Popen in _launch()

2021-05-17 Thread John Snow
We handle this resource rather meticulously in shutdown/kill/wait/__exit__ et al, through the laborious mechanisms in _do_shutdown(). Quiet this pylint warning here. Signed-off-by: John Snow --- python/qemu/machine.py | 3 +++ 1 file changed, 3 insertions(+) diff --git

[Bug 1885350] Re: RISCV dynamic rounding mode is not behaving correctly

2021-05-17 Thread Thomas Huth
The QEMU project is currently moving its bug tracking to another system. Is there still anything left to do here? If so, please provide the test case and switch the state back to "New" or "Confirmed", or open a new ticket in the new bug tracker here: https://gitlab.com/qemu-project/qemu/-/issues

Re: [PATCH qemu v19] spapr: Implement Open Firmware client interface

2021-05-17 Thread BALATON Zoltan
On Mon, 17 May 2021, BALATON Zoltan wrote: On Mon, 17 May 2021, Alexey Kardashevskiy wrote: On 5/17/21 09:34, BALATON Zoltan wrote: On Sat, 15 May 2021, BALATON Zoltan wrote: On Sat, 15 May 2021, BALATON Zoltan wrote: On Thu, 22 Apr 2021, Alexey Kardashevskiy wrote: [snip] vof_claim

[Bug 1924603] Re: Incorrect feature negotiation for vhost-vdpa netdevice

2021-05-17 Thread Thomas Huth
This ticket has been moved here (thanks, Gautam): https://gitlab.com/qemu-project/qemu/-/issues/331 ... thus I'm closing this on Launchpad now. ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #331 https://gitlab.com/qemu-project/qemu/-/issues/331 ** Changed in: qemu Status:

[PATCH v2 3/6] python/machine: use subprocess.run instead of subprocess.Popen

2021-05-17 Thread John Snow
use run() instead of Popen() -- to assert to pylint that we are not forgetting to close a long-running program. Signed-off-by: John Snow --- python/qemu/machine.py | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/python/qemu/machine.py b/python/qemu/machine.py

[PATCH v4 1/9] hw/isa/Kconfig: Fix missing dependency ISA_SUPERIO -> FDC

2021-05-17 Thread Philippe Mathieu-Daudé
isa_superio_realize() calls isa_fdc_init_drives(), which is defined in hw/block/fdc.c, so ISA_SUPERIO needs to select the FDC symbol. Reported-by: John Snow Fixes: c0ff3795143 ("Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c") Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/Kconfig |

Re: [PATCH v3 3/8] hw/block/fdc: Extract ISA floppy controllers to fdc-isa.c

2021-05-17 Thread Philippe Mathieu-Daudé
On 5/17/21 8:19 PM, John Snow wrote: > On 5/17/21 2:04 PM, John Snow wrote: >> On 5/17/21 1:49 PM, Philippe Mathieu-Daudé wrote: >>> Some machines use floppy controllers via the SysBus interface, >>> and don't need to pull in all the ISA code. >>> Extract the ISA specific code to a new unit:

[PATCH v4 9/9] hw/mips/jazz: Inline fdctrl_init_sysbus()

2021-05-17 Thread Philippe Mathieu-Daudé
There is only one call site for fdctrl_init_sysbus(), and this function is specific to the jazz machines, not part of the SYSBUS_FDC API. Move it locally with the machine code, and remove its declaration in "hw/block/fdc.h". Suggested-by: Mark Cave-Ayland Reviewed-by: Mark Cave-Ayland

[PATCH v4 8/9] hw/block/fdc-sysbus: Add 'dma-channel' property

2021-05-17 Thread Philippe Mathieu-Daudé
QDev properties to be set before the device is realized should be exposed as a Property with a DEFINE_PROP_XXX() macro, then accessed with the equivalent qdev_prop_set_xxx() API. Do this with the FDCtrlSysBus 'dma-channel' property: convert it to int32_t, default-initialize with

Re: [PULL 00/16] Trivial branch for 6.1 patches

2021-05-17 Thread Peter Maydell
On Sat, 15 May 2021 at 11:07, Laurent Vivier wrote: > > The following changes since commit 3e9f48bcdabe57f8f90cf19f01bbbf3c86937267: > > Merge remote-tracking branch > 'remotes/alistair/tags/pull-riscv-to-apply-20210511' into staging (2021-05-12 > 17:31:52 +0100) > > are available in the Git

[PATCH v4 7/9] hw/sparc/sun4m: Inline sun4m_fdctrl_init()

2021-05-17 Thread Philippe Mathieu-Daudé
There is only one call site for sun4m_fdctrl_init(), and this function is specific to the sun4m machines, not part of the SYSBUS_FDC API. Move it locally with the machine code, and remove its declaration in "hw/block/fdc.h". Suggested-by: Mark Cave-Ayland Reviewed-by: Mark Cave-Ayland

[PATCH v4 6/9] hw/block/fdc: Add sysbus_fdc_init_drives() method

2021-05-17 Thread Philippe Mathieu-Daudé
FDCtrlSysBus's FDCtrl state is a private field. However it is accessed by the public fdctrl_init_sysbus() and sun4m_fdctrl_init() methods. To be able to move them out of fdc-sysbus.c, first add the sysbus_fdc_init_drives() method and use it in these 2 functions. Reviewed-by: Mark Cave-Ayland

[PATCH v2 5/6] python/machine: Disable pylint warning for open() in _pre_launch

2021-05-17 Thread John Snow
Shift the open() call later so that the pylint pragma applies *only* to that one open() call. Add a note that suggests why this is safe: the resource is unconditionally cleaned up in _post_shutdown(). _post_shutdown is called after failed launches (see launch()), and unconditionally after every

[PATCH v4 5/9] hw/block/fdc: Extract SysBus floppy controllers to fdc-sysbus.c

2021-05-17 Thread Philippe Mathieu-Daudé
Some machines use floppy controllers via the SysBus interface, and don't need to pull in all the SysBus code. Extract the SysBus specific code to a new unit: fdc-sysbus.c, and add a new Kconfig symbol: "FDC_SYSBUS". Reviewed-by: John Snow Acked-by: Mark Cave-Ayland Reviewed-by: Mark Cave-Ayland

[PATCH v4 4/9] hw/block/fdc: Extract ISA floppy controllers to fdc-isa.c

2021-05-17 Thread Philippe Mathieu-Daudé
Some machines use floppy controllers via the SysBus interface, and don't need to pull in all the ISA code. Extract the ISA specific code to a new unit: fdc-isa.c, and add a new Kconfig symbol: "FDC_ISA". Reviewed-by: John Snow Acked-by: Mark Cave-Ayland Reviewed-by: Mark Cave-Ayland

[PULL 59/59] linux-user/elfload: add s390x core dumping support

2021-05-17 Thread Laurent Vivier
From: Ilya Leoshkevich Provide the following definitions required by the common code: * ELF_NREG: with the value of sizeof(s390_regs) / sizeof(long). * target_elf_gregset_t: define it like all the other arches do. * elf_core_copy_regs(): similar to kernel's s390_regs_get(). * USE_ELF_CORE_DUMP.

[PULL 54/59] linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Do not access a field that may not be present. This will become an issue when sharing more code in the next patch. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[PATCH v4 2/9] hw/block/fdc: Replace disabled fprintf() by trace event

2021-05-17 Thread Philippe Mathieu-Daudé
Reviewed-by: John Snow Acked-by: Mark Cave-Ayland Reviewed-by: Mark Cave-Ayland Signed-off-by: Philippe Mathieu-Daudé --- hw/block/fdc.c| 7 +-- hw/block/trace-events | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index

[Bug 1877781] Re: TCG does not support x2APIC emulation

2021-05-17 Thread Thomas Huth
This ticket has been moved here (thanks, Dan!): https://gitlab.com/qemu-project/qemu/-/issues/330 ... so I'm closing this on Launchpad now. ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #330 https://gitlab.com/qemu-project/qemu/-/issues/330 ** Changed in: qemu Status:

[PULL 53/59] linux-user: Pass ka_restorer to do_sigaction

2021-05-17 Thread Laurent Vivier
From: Richard Henderson The value of ka_restorer needs to be saved in sigact_table. At the moment, the attempt to save it in do_syscall is improperly clobbering user memory. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id:

[PATCH v4 3/9] hw/block/fdc: Declare shared prototypes in fdc-internal.h

2021-05-17 Thread Philippe Mathieu-Daudé
We want to extract ISA/SysBus code from the generic fdc.c file. First, declare the prototypes we will access from the new units into a new local header: "fdc-internal.h". Acked-by: Mark Cave-Ayland Reviewed-by: Mark Cave-Ayland Signed-off-by: Philippe Mathieu-Daudé --- hw/block/fdc-internal.h

[PATCH v4 0/9] hw/block/fdc: Allow Kconfig-selecting ISA bus/SysBus floppy controllers

2021-05-17 Thread Philippe Mathieu-Daudé
Missing review: #1 Hi, The floppy disc controllers pulls in irrelevant devices (sysbus in an ISA-only machine, ISA bus + isa devices on a sysbus-only machine). This series clean that by extracting each device in its own file, adding the corresponding Kconfig symbols: FDC_ISA and FDC_SYSBUS.

[PULL 52/59] linux-user/alpha: Rename the sigaction restorer field

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Use ka_restorer, in line with TARGET_ARCH_HAS_KA_RESTORER vs TARGET_ARCH_HAS_SA_RESTORER, since Alpha passes this field as a syscall argument. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id: <20210422230227.314751-3-richard.hender...@linaro.org>

[PULL 58/59] linux-user/elfload: fix filling psinfo->pr_psargs

2021-05-17 Thread Laurent Vivier
From: Ilya Leoshkevich The current code dumps the memory between arg_start and arg_end, which contains the argv pointers. This results in the Core was generated by `` message when opening the core file in GDB. This is because the code is supposed to dump the actual arg strings. Fix by

[PULL 50/59] linux-user: use GDateTime for formatting timestamp for core file

2021-05-17 Thread Laurent Vivier
From: Daniel P. Berrangé The GDateTime APIs provided by GLib avoid portability pitfalls, such as some platforms where 'struct timeval.tv_sec' field is still 'long' instead of 'time_t'. When combined with automatic cleanup, GDateTime often results in simpler code too. Signed-off-by: Daniel P.

Re: [PATCH v3 3/8] hw/block/fdc: Extract ISA floppy controllers to fdc-isa.c

2021-05-17 Thread John Snow
On 5/17/21 2:04 PM, John Snow wrote: On 5/17/21 1:49 PM, Philippe Mathieu-Daudé wrote: Some machines use floppy controllers via the SysBus interface, and don't need to pull in all the ISA code. Extract the ISA specific code to a new unit: fdc-isa.c, and add a new Kconfig symbol: "FDC_ISA".

[PULL 51/59] linux-user/alpha: Fix rt sigframe return

2021-05-17 Thread Laurent Vivier
From: Richard Henderson We incorrectly used the offset of the non-rt sigframe. Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id: <20210422230227.314751-2-richard.hender...@linaro.org> Signed-off-by: Laurent

[PULL 48/59] linux-user: Add copy_file_range to strace.list

2021-05-17 Thread Laurent Vivier
From: Giuseppe Musacchio Signed-off-by: Giuseppe Musacchio Reviewed-by: Laurent Vivier Message-Id: <20210503174159.54302-2-thatle...@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/strace.list | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/strace.list

[PULL 55/59] linux-user/alpha: Define TARGET_ARCH_HAS_KA_RESTORER

2021-05-17 Thread Laurent Vivier
From: Richard Henderson This means that we can share the TARGET_NR_rt_sigaction code, and the target_rt_sigaction structure is unused. Untangling the ifdefs so that target_sigaction can be shared will wait until the next patch. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée

[PULL 45/59] linux-user/s390x: Add build asserts for sigset sizes

2021-05-17 Thread Laurent Vivier
From: Richard Henderson At point of usage, it's not immediately obvious that we don't need a loop to copy these arrays. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-14-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier ---

[PULL 57/59] linux-user: Tidy TARGET_NR_rt_sigaction

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Initialize variables instead of elses. Use an else instead of a goto. Add braces. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210422230227.314751-8-richard.hender...@linaro.org> Signed-off-by: Laurent

[PULL 38/59] linux-user/s390x: Fix sigcontext sregs value

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Using the host address of >sregs is incorrect. We need the guest address. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-7-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c |

[PULL 49/59] linux-user: Fix erroneous conversion in copy_file_range

2021-05-17 Thread Laurent Vivier
From: Giuseppe Musacchio The implicit cast from abi_long to size_t may introduce an intermediate unwanted sign-extension of the value for 32bit targets running on 64bit hosts. Signed-off-by: Giuseppe Musacchio Reviewed-by: Laurent Vivier Message-Id:

[PULL 46/59] linux-user/s390x: Clean up signal.c

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Reorder the function bodies to correspond to the kernel source. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-15-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c | 63

[PULL 56/59] linux-user/alpha: Share code for TARGET_NR_sigaction

2021-05-17 Thread Laurent Vivier
From: Richard Henderson There's no longer a difference between the alpha code and the generic code. There is a type difference in target_old_sigaction.sa_flags, which can be resolved with a very much smaller ifdef, which allows us to finish sharing the target_sigaction definition.

[PULL 37/59] linux-user/s390x: Fix trace in restore_regs

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Directly reading sc->regs.psw.addr misses the bswap that may be performed by __get_user. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-6-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier ---

[PULL 36/59] linux-user/s390x: Remove restore_sigregs return value

2021-05-17 Thread Laurent Vivier
From: Richard Henderson The function cannot fail. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-5-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c | 14 +++--- 1 file changed, 3

[PULL 40/59] linux-user/s390x: Tidy save_sigregs

2021-05-17 Thread Laurent Vivier
From: Richard Henderson The "save" routines copied from the kernel, which are currently commented out, are unnecessary in qemu. We can copy from env where the kernel needs special instructions. Fix comment style. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id:

[PULL 42/59] linux-user/s390x: Set psw.mask properly for the signal handler

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Note that PSW_ADDR_{64,32} are called PSW_MASK_{EA,BA} in the kernel source. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-11-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier ---

[PULL 44/59] linux-user/s390x: Fix frame_addr corruption in setup_frame

2021-05-17 Thread Laurent Vivier
From: Richard Henderson The original value of frame_addr is still required for its use in the call to unlock_user_struct below. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-13-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier

[PULL 41/59] linux-user/s390x: Clean up single-use gotos in signal.c

2021-05-17 Thread Laurent Vivier
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-10-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c | 29 - 1 file changed, 8 insertions(+), 21

<    1   2   3   4   5   6   7   >