Re: [PATCH v5 00/11] s390x/tcg: Implement Vector-Enhancements Facility 2

2022-04-25 Thread Christian Borntraeger
Am 23.03.22 um 14:57 schrieb David Miller: Implement Vector-Enhancements Facility 2 for s390x resolves: https://gitlab.com/qemu-project/qemu/-/issues/738 implements: VECTOR LOAD ELEMENTS REVERSED (VLER) VECTOR LOAD BYTE REVERSED ELEMENTS (VLBR) VECTOR LOAD

Re: [PATCH v5 0/3] util/thread-pool: Expose minimun and maximum size

2022-04-25 Thread Nicolas Saenz Julienne
On Mon, 2022-04-25 at 07:22 +0200, Markus Armbruster wrote: > Nicolas Saenz Julienne writes: > > > As discussed on the previous RFC[1] the thread-pool's dynamic thread > > management doesn't play well with real-time and latency sensitive > > systems. This series introduces a set of controls that'

Re: [PATCH v5 00/11] s390x/tcg: Implement Vector-Enhancements Facility 2

2022-04-25 Thread David Hildenbrand
On 25.04.22 09:43, Christian Borntraeger wrote: > Am 23.03.22 um 14:57 schrieb David Miller: >> Implement Vector-Enhancements Facility 2 for s390x >> >> resolves: https://gitlab.com/qemu-project/qemu/-/issues/738 >> >> implements: >> VECTOR LOAD ELEMENTS REVERSED (VLER) >> V

[PATCH v6 0/3] util/thread-pool: Expose minimun and maximum size

2022-04-25 Thread Nicolas Saenz Julienne
As discussed on the previous RFC[1] the thread-pool's dynamic thread management doesn't play well with real-time and latency sensitive systems. This series introduces a set of controls that'll permit achieving more deterministic behaviours, for example by fixing the pool's size. We first introduce

[PATCH v6 2/3] util/main-loop: Introduce the main loop into QOM

2022-04-25 Thread Nicolas Saenz Julienne
'event-loop-base' provides basic property handling for all 'AioContext' based event loops. So let's define a new 'MainLoopClass' that inherits from it. This will permit tweaking the main loop's properties through qapi as well as through the command line using the '-object' keyword[1]. Only one inst

[PATCH v6 3/3] util/event-loop-base: Introduce options to set the thread pool size

2022-04-25 Thread Nicolas Saenz Julienne
The thread pool regulates itself: when idle, it kills threads until empty, when in demand, it creates new threads until full. This behaviour doesn't play well with latency sensitive workloads where the price of creating a new thread is too high. For example, when paired with qemu's '-mlock', or usi

[PATCH v6 1/3] Introduce event-loop-base abstract class

2022-04-25 Thread Nicolas Saenz Julienne
Introduce the 'event-loop-base' abstract class, it'll hold the properties common to all event loops and provide the necessary hooks for their creation and maintenance. Then have iothread inherit from it. EventLoopBaseClass is defined as user creatable and provides a hook for its children to attach

[PATCH 17/18] audio: Remove unused can_be_default

2022-04-25 Thread Martin Kletzander
Since there is no fallback mechanism and default-guessing this is now not used and can be safely removed. Signed-off-by: Martin Kletzander --- audio/alsaaudio.c | 1 - audio/audio_int.h | 1 - audio/coreaudio.m | 1 - audio/dbusaudio.c | 1 - audio/dsoundaudio.c | 1 - audio/jackaudio.c

[PATCH 04/18] hw/audio/lm4549: Add errp error reporting to init function

2022-04-25 Thread Martin Kletzander
This will be used in future commit. Signed-off-by: Martin Kletzander --- hw/audio/lm4549.c | 3 ++- hw/audio/lm4549.h | 3 ++- hw/audio/pl041.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/audio/lm4549.c b/hw/audio/lm4549.c index 32b1481b5614..418041bc9c6c 100644 --

[PATCH 01/18] hw/audio: Remove -soundhw support

2022-04-25 Thread Martin Kletzander
One thing I am not sure about is whether to keep the aliases of ac97 and es1370 in the qdev_alias_table. Signed-off-by: Martin Kletzander --- docs/about/deprecated.rst | 9 - docs/about/removed-features.rst | 10 + docs/qdev-device-use.txt

[PATCH 14/18] audio: Require AudioState in AUD_add_capture

2022-04-25 Thread Martin Kletzander
Since all callers require a valid audiodev this function can now safely abort in case of missing AudioState. Signed-off-by: Martin Kletzander --- audio/audio.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index b95aca444382..97eb645764c1

[PATCH 06/18] ui/vnc: Require audiodev=

2022-04-25 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- ui/vnc.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index badf1d7664fe..2e7af139b030 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -4188,12 +4188,15 @@ void vnc_display_open(const char *id, Error **errp)

[PATCH 02/18] hw/input/tsc210x: Extract common init code into new function

2022-04-25 Thread Martin Kletzander
This deduplicates several lines and will make future changes more concise. Signed-off-by: Martin Kletzander --- hw/input/tsc210x.c | 68 -- 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/hw/input/tsc210x.c b/hw/input/tsc210x.c index df

[PATCH 00/18] RFC: Remove deprecated audio features

2022-04-25 Thread Martin Kletzander
I wanted to deal with https://bugzilla.redhat.com/2043498 and I got a suggesstion that removing deprecated features could actually make it easier to propagate the error. In the end (last patch) it turns out the error is still just reported with error_fatal, so it probably is not really needed, but

[PATCH 09/18] hw/display/xlnx_dp.c: Add audiodev property

2022-04-25 Thread Martin Kletzander
There was no way to set this and we need that for it to be able to properly initialise. Signed-off-by: Martin Kletzander --- hw/display/xlnx_dp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c index 9bb781e31254..b16d6be2b5cc 100644 --- a/hw

[PATCH 07/18] Introduce machine's default-audiodev property

2022-04-25 Thread Martin Kletzander
Many machine types have default audio devices with no way to set the underlying audiodev. Instead of adding an option for each and every one of them this new property can be used as a default during machine initialisation when creating such devices. Signed-off-by: Martin Kletzander --- hw/core/

[PATCH 15/18] audio: Be more strict during audio backend initialisation

2022-04-25 Thread Martin Kletzander
Now that audiodev= is required and audio_init() will not be called without and AudioDev we can remove the fallback functionality and error out in case audio drivers fail initialisation or when the driver does not exist. Signed-off-by: Martin Kletzander --- audio/audio.c | 146 +

[PATCH 08/18] audio: Add easy dummy audio initialiser

2022-04-25 Thread Martin Kletzander
In case of sound devices which are created by default (some of them even with -nodefaults) it would not be nice to users if qemu required explicit: -audiodev driver=none,id=audio0 -machine default-audiodev=audio0 when they just want to run a VM and not care about any audio output. Instead this

Re: [PATCH v8 07/17] vfio-user: define vfio-user-server object

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:12PM -0400, Jagannathan Raman wrote: > diff --git a/qapi/qom.json b/qapi/qom.json > index eeb5395ff3..e7b1758a11 100644 > --- a/qapi/qom.json > +++ b/qapi/qom.json > @@ -703,6 +703,20 @@ > { 'struct': 'RemoteObjectProperties', >'data': { 'fd': 'str', 'devid': 'str

[PATCH 03/18] hw/audio: Simplify hda audio init

2022-04-25 Thread Martin Kletzander
No return values are used anywhere, so switch the functions to be void and add support for error reporting using errp for use in next patches. Signed-off-by: Martin Kletzander --- hw/audio/hda-codec.c | 32 ++-- hw/audio/intel-hda.c | 4 +--- hw/audio/intel-hda.h |

[PATCH 13/18] audio: Make AUD_register_card fallible and require audiodev=

2022-04-25 Thread Martin Kletzander
Now that all callers support error reporting with errp and all machine-default devices use an explicit audiodev, this can be changed. To make the detection easier make AUD_register_card() return false on error. Signed-off-by: Martin Kletzander --- audio/audio.c| 7 +-- audio/audio.h

[PULL 3/3] virtiofsd: Add docs/helper for killpriv_v2/no_killpriv_v2 option

2022-04-25 Thread Stefan Hajnoczi
From: Liu Yiding virtiofsd has introduced killpriv_v2/no_killpriv_v2 for a while. Add description of it to docs/helper. Signed-off-by: Liu Yiding Message-Id: <20220421095151.2231099-1-liuyd.f...@fujitsu.com> [Small documentation fixes: s/as client supports/as the client supports/ and s/. /. /

[PATCH 10/18] hw/input/tsc210x.c: Support machine-default audiodev with fallback

2022-04-25 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- hw/input/tsc210x.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/input/tsc210x.c b/hw/input/tsc210x.c index f16a8090b7c7..f0b02bc72280 100644 --- a/hw/input/tsc210x.c +++ b/hw/input/tsc210x.c @@ -1098,6 +1098,14 @@ static void tsc210x_init(TSC

Re: [PATCH v8 06/17] vfio-user: build library

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:11PM -0400, Jagannathan Raman wrote: > add the libvfio-user library as a submodule. build it as a cmake > subproject. > > Signed-off-by: Elena Ufimtseva > Signed-off-by: John G Johnson > Signed-off-by: Jagannathan Raman > --- > configure

[PULL 1/3] Implements Backend Program conventions for vhost-user-scsi

2022-04-25 Thread Stefan Hajnoczi
From: Sakshi Kaushik Signed-off-by: Sakshi Kaushik Message-id: 20220406162410.8536-1-sakshikaushik...@gmail.com [Name the iSCSI URL long option --iscsi-uri instead of --iscsi_uri for consistency, fix --fd which was rejected due to an outdated --socket-path check, and add missing entries[] termi

[PATCH 11/18] hw/arm: Support machine-default audiodev with fallback

2022-04-25 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- hw/arm/integratorcp.c | 8 +++- hw/arm/musicpal.c | 8 +++- hw/arm/omap2.c| 8 hw/arm/realview.c | 3 +++ hw/arm/spitz.c| 10 +++--- hw/arm/versatilepb.c | 3 +++ hw/arm/vexpress.c | 3 +++ hw/arm/xlnx-zc

[PATCH 16/18] audio: Remove legacy audio environment variables and options

2022-04-25 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- audio/audio.c | 13 - audio/audio.h | 1 - audio/audio_legacy.c| 555 audio/meson.build | 1 - docs/about/deprecated.rst | 7 - docs/about/removed-featu

[PATCH 12/18] hw/ppc: Support machine-default audiodev with fallback

2022-04-25 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- hw/ppc/prep.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index bf622aa38fab..52d801afb307 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -46,6 +46,7 @@ #include "elf.h" #include "qemu/units.h" #include "kvm_ppc.

[PATCH 05/18] tests/qtest: Specify audiodev= and -audiodev

2022-04-25 Thread Martin Kletzander
This will enable removing deprecated default audiodev support. I did not figure out how to make the audiodev represented as an interface node, so this is a workaround. I am not sure what would be the proper way. Signed-off-by: Martin Kletzander --- tests/qtest/ac97-test.c | 3

[PATCH 18/18] audio/spiceaudio: Fail initialisation when not using spice

2022-04-25 Thread Martin Kletzander
The caller would already fail, but this way the message can better express the reason for the failure. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2043498 Signed-off-by: Martin Kletzander --- audio/spiceaudio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audi

Re: [PATCH v5 00/11] s390x/tcg: Implement Vector-Enhancements Facility 2

2022-04-25 Thread Thomas Huth
On 25/04/2022 09.51, David Hildenbrand wrote: On 25.04.22 09:43, Christian Borntraeger wrote: Am 23.03.22 um 14:57 schrieb David Miller: Implement Vector-Enhancements Facility 2 for s390x resolves: https://gitlab.com/qemu-project/qemu/-/issues/738 implements: VECTOR LOAD ELEMENTS REVERS

[PULL 0/3] Block patches

2022-04-25 Thread Stefan Hajnoczi
The following changes since commit 9c125d17e9402c232c46610802e5931b3639d77b: Merge tag 'pull-tcg-20220420' of https://gitlab.com/rth7680/qemu into staging (2022-04-20 16:43:11 -0700) are available in the Git repository at: https://gitlab.com/stefanha/qemu.git tags/block-pull-request for yo

[PATCH v2 01/43] target/loongarch: Add README

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This patch gives an introduction to the LoongArch target. Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- MAINTAINERS | 6 ++ target/loongarch/README | 10 ++ 2 files changed, 16 insertions(+) create mode 100644

[PATCH v2 11/43] target/loongarch: Add floating point comparison instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - FCMP.cond.{S/D} Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- target/loongarch/fpu_helper.c| 60 target/loongarch/helper.h| 9 +++ target/loongarch/insn_trans/t

[PATCH v2 00/43] Add LoongArch softmmu support

2022-04-25 Thread Xiaojuan Yang
Hi All, As this series only supports running binary files in ELF format, and does not depend on BIOS and kernel file. so this series are changed from RFC to patch v1. The manual: - https://github.com/loongson/LoongArch-Documentation/releases/tag/2022.03.17 Old series: - https://patchew.or

[PATCH v2 04/43] target/loongarch: Add fixed point arithmetic instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - ADD.{W/D}, SUB.{W/D} - ADDI.{W/D}, ADDU16ID - ALSL.{W[U]/D} - LU12I.W, LU32I.D LU52I.D - SLT[U], SLT[U]I - PCADDI, PCADDU12I, PCADDU18I, PCALAU12I - AND, OR, NOR, XOR, ANDN, ORN - MUL.{W/D}, MULH.{W[U]/D[U]} - MULW.D.W[U] - DIV.{W[U]/D[U]}, MOD.{W[U]/D[U]} - ANDI,

[PATCH v2 08/43] target/loongarch: Add fixed point atomic instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - LL.{W/D}, SC.{W/D} - AM{SWAP/ADD/AND/OR/XOR/MAX/MIN}[_DB].{W/D} - AM{MAX/MIN}[_DB].{WU/DU} Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- .../loongarch/insn_trans/trans_atomic.c.inc | 113 ++ .../loong

[PULL 2/3] contrib/vhost-user-blk: add missing GOptionEntry NULL terminator

2022-04-25 Thread Stefan Hajnoczi
The GLib documentation says "a NULL-terminated array of GOptionEntrys" so we'd better make sure there is a terminator that lets g_option_context_add_main_entries() know when the end of the array has been reached. Signed-off-by: Stefan Hajnoczi Reviewed-by: Michael S. Tsirkin Message-id: 20220411

[PATCH v2 05/43] target/loongarch: Add fixed point shift instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - SLL.W, SRL.W, SRA.W, ROTR.W - SLLI.W, SRLI.W, SRAI.W, ROTRI.W - SLL.D, SRL.D, SRA.D, ROTR.D - SLLI.D, SRLI.D, SRAI.D, ROTRI.D Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- target/loongarch/insn_trans/trans_shift.c.inc

[PATCH v2 06/43] target/loongarch: Add fixed point bit instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - EXT.W.{B/H} - CL{O/Z}.{W/D}, CT{O/Z}.{W/D} - BYTEPICK.{W/D} - REVB.{2H/4H/2W/D} - REVH.{2W/D} - BITREV.{4B/8B}, BITREV.{W/D} - BSTRINS.{W/D}, BSTRPICK.{W/D} - MASKEQZ, MASKNEZ Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson -

[PATCH v2 14/43] target/loongarch: Add floating point load/store instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - FLD.{S/D}, FST.{S/D} - FLDX.{S/D}, FSTX.{S/D} - FLD{GT/LE}.{S/D}, FST{GT/LE}.{S/D} Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- .../loongarch/insn_trans/trans_fmemory.c.inc | 153 ++ target/loongarch/

[PATCH v2 03/43] target/loongarch: Add main translation routines

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This patch adds main translation routines and basic functions for translation. Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- target/loongarch/helper.h| 6 ++ target/loongarch/op_helper.c | 21 + target/loongarch/translate.c

[PATCH v2 02/43] target/loongarch: Add core definition

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This patch adds target state header, target definitions and initialization routines. Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/loongarch/cpu-param.h | 18 ++ target/loongarch/cpu.c

[PATCH v2 16/43] target/loongarch: Add disassembler

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This patch adds support for disassembling via option '-d in_asm'. Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- include/disas/dis-asm.h | 2 + meson.build | 1 + target/loongarch/disas.c | 610

[PATCH v2 09/43] target/loongarch: Add fixed point extra instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - CRC[C].W.{B/H/W/D}.W - SYSCALL - BREAK - ASRT{LE/GT}.D - RDTIME{L/H}.W, RDTIME.D - CPUCFG Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- target/loongarch/helper.h | 4 ++ target/loongarch/insn_trans

[PATCH v2 07/43] target/loongarch: Add fixed point load/store instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - LD.{B[U]/H[U]/W[U]/D}, ST.{B/H/W/D} - LDX.{B[U]/H[U]/W[U]/D}, STX.{B/H/W/D} - LDPTR.{W/D}, STPTR.{W/D} - PRELD - LD{GT/LE}.{B/H/W/D}, ST{GT/LE}.{B/H/W/D} - DBAR, IBAR Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- targe

[PATCH v2 15/43] target/loongarch: Add branch instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - BEQ, BNE, BLT[U], BGE[U] - BEQZ, BNEZ - B - BL - JIRL - BCEQZ, BCNEZ Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- .../loongarch/insn_trans/trans_branch.c.inc | 83 +++ target/loongarch/insns.decode

[PATCH v2 17/43] target/loongarch: Add target build suport

2022-04-25 Thread Xiaojuan Yang
From: Song Gao Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/loongarch/meson.build | 19 +++ target/meson.build | 1 + 2 files changed, 20 insertions(+) create mode 100644 target/

[PATCH v2 35/43] hw/loongarch: Add irq hierarchy for the system

2022-04-25 Thread Xiaojuan Yang
This patch add the irq hierarchy for the virt board. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- hw/loongarch/loongson3.c | 116 +++ 1 file changed, 116 insertions(+) diff --git a/hw/loongarch/loongson3.c b/hw/loo

[PATCH v2 00/43] Add LoongArch softmmu support

2022-04-25 Thread Xiaojuan Yang
Hi All, As this series only supports running binary files in ELF format, and does not depend on BIOS and kernel file. so this series are changed from RFC to patch v1. The manual: - https://github.com/loongson/LoongArch-Documentation/releases/tag/2022.03.17 Old series: - https://patchew.or

[PATCH v2 10/43] target/loongarch: Add floating point arithmetic instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - F{ADD/SUB/MUL/DIV}.{S/D} - F{MADD/MSUB/NMADD/NMSUB}.{S/D} - F{MAX/MIN}.{S/D} - F{MAXA/MINA}.{S/D} - F{ABS/NEG}.{S/D} - F{SQRT/RECIP/RSQRT}.{S/D} - F{SCALEB/LOGB/COPYSIGN}.{S/D} - FCLASS.{S/D} Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Rich

[PATCH v2 23/43] target/loongarch: Add LoongArch interrupt and exception handle

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 229 +++ target/loongarch/cpu.h | 2 + target/loongarch/internals.h | 2 + 3 files changed, 233 insertions(+) diff --git a/target/loongarch/cpu.c b/target/loongarch/

[PATCH v2 26/43] target/loongarch: Add LoongArch IOCSR instruction

2022-04-25 Thread Xiaojuan Yang
This includes: - IOCSR{RD/WR}.{B/H/W/D} Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c| 52 ++ target/loongarch/cpu.h| 25 +++ target/loongarch/disas.c | 8 + target/loongarch/helper.h

[PATCH v2 34/43] hw/intc: Add LoongArch extioi interrupt controller(EIOINTC)

2022-04-25 Thread Xiaojuan Yang
This patch realize the EIOINTC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig| 3 + hw/intc/loongarch_extioi.c | 483 + hw/intc/meson.build| 1 + hw/intc/trace-events

[PATCH v2 28/43] target/loongarch: Add other core instructions support

2022-04-25 Thread Xiaojuan Yang
This includes: -CACOP -LDDIR -LDPTE -ERTN -DBCL -IDLE Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/disas.c | 17 target/loongarch/helper.h | 5 + .../insn_trans/trans_privileged.c.inc

[PATCH v2 12/43] target/loongarch: Add floating point conversion instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - FCVT.S.D, FCVT.D.S - FFINT.{S/D}.{W/L}, FTINT.{W/L}.{S/D} - FTINT{RM/RP/RZ/RNE}.{W/L}.{S/D} - FRINT.{S/D} Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- target/loongarch/fpu_helper.c| 393 +++

[PATCH v2 20/43] target/loongarch: Add basic vmstate description of CPU.

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 2 + target/loongarch/machine.c | 86 target/loongarch/meson.build | 6 +++ 4 files changed, 95 in

[PATCH v2 31/43] hw/loongarch: Add LoongArch ipi interrupt support(IPI)

2022-04-25 Thread Xiaojuan Yang
This patch realize the IPI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 2 + hw/intc/Kconfig | 3 + hw/intc/loongarch_ipi.c | 166 hw/intc/meson.build |

[PATCH v2 18/43] target/loongarch: Add system emulation introduction

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- MAINTAINERS | 8 + docs/system/loongarch/loongson3.rst | 41 ++ target/loongarch/README | 54 + 3 files changed, 103 i

[PATCH v2 39/43] hw/loongarch: Add LoongArch load elf function.

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/loongson3.c| 54 +++-- include/hw/loongarch/virt.h | 9 +++ target/loongarch/cpu.c | 4 +++ target/loongarch/cpu.h | 2 ++ 4 files changed, 67 insertions(+), 2 deletions(-)

[PATCH v2 41/43] target/loongarch: Add gdb support.

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 1 + configs/targets/loongarch64-softmmu.mak | 1 + gdb-xml/loongarch-base64.xml| 44 ++ gdb-xml/loongarch-fpu64.xml | 57 + target/loongarch/c

[PATCH v2 19/43] target/loongarch: Add CSRs definition

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu-csr.h | 208 + target/loongarch/cpu.c | 36 +++ target/loongarch/cpu.h | 65 3 files changed, 309 insertions(+) create mod

[PATCH v2 13/43] target/loongarch: Add floating point move instruction translation

2022-04-25 Thread Xiaojuan Yang
From: Song Gao This includes: - FMOV.{S/D} - FSEL - MOVGR2FR.{W/D}, MOVGR2FRH.W - MOVFR2GR.{S/D}, MOVFRH2GR.S - MOVGR2FCSR, MOVFCSR2GR - MOVFR2CF, MOVCF2FR - MOVGR2CF, MOVCF2GR Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson --- target/loongarch/fpu_helper

Re: [PATCH] Warn user if the vga flag is passed but no vga device is created

2022-04-25 Thread Peter Maydell
On Mon, 25 Apr 2022 at 06:47, Markus Armbruster wrote: > > Gautam Agrawal writes: > > > This patch is in regards to this > > issue:https://gitlab.com/qemu-project/qemu/-/issues/581#. > > A global boolean variable "vga_interface_created"(declared in > > softmmu/globals.c) > > has been used to tr

[PATCH v2 25/43] target/loongarch: Add LoongArch CSR instruction

2022-04-25 Thread Xiaojuan Yang
This includes: - CSRRD - CSRWR - CSRXCHG Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/csr_helper.c | 87 ++ target/loongarch/disas.c | 95 +++ target/loongarch/helper.h | 8 + .../insn_trans/trans_

[PATCH v2 27/43] target/loongarch: Add TLB instruction support

2022-04-25 Thread Xiaojuan Yang
This includes: - TLBSRCH - TLBRD - TLBWR - TLBFILL - TLBCLR - TLBFLUSH - INVTLB Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/disas.c | 18 + target/loongarch/helper.h | 13 + .../insn_trans/t

[PATCH v2 21/43] target/loongarch: Implement qmp_query_cpu_definitions()

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- qapi/machine-target.json | 6 -- target/loongarch/cpu.c | 26 ++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/qapi/machine-target.json b/qapi/machine-target.

[PATCH v2 33/43] hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI)

2022-04-25 Thread Xiaojuan Yang
This patch realize PCH-MSI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- hw/intc/Kconfig | 5 ++ hw/intc/loongarch_pch_msi.c | 75 + hw/intc/meson.build | 1

[PATCH v2 37/43] hw/loongarch: Add some devices support for 3A5000.

2022-04-25 Thread Xiaojuan Yang
1.Add uart,virtio-net,vga and usb for 3A5000. 2.Add irq set and map for the pci host. Non pci device use irq 0-16, pci device use 16-64. 3.Add some unimplented device to emulate guest unused memory space. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/Kconfig | 7 +

[PATCH v2 32/43] hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC)

2022-04-25 Thread Xiaojuan Yang
This patch realize the PCH-PIC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 1 + hw/intc/Kconfig | 4 + hw/intc/loongarch_pch_pic.c | 434 hw/intc/meson.build

Re: [PATCH v8 12/17] vfio-user: IOMMU support for remote device

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:17PM -0400, Jagannathan Raman wrote: > +static AddressSpace *remote_iommu_find_add_as(PCIBus *pci_bus, > + void *opaque, int devfn) > +{ > +RemoteIommu *iommu = opaque; > +RemoteIommuElem *elem = NULL; > + > +qem

[PATCH v2 29/43] target/loongarch: Add timer related instructions support.

2022-04-25 Thread Xiaojuan Yang
This includes: -RDTIME{L/H}.W -RDTIME.D Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/disas.c | 3 ++ target/loongarch/helper.h | 2 ++ target/loongarch/insn_trans/trans_extra.c.inc | 33 +++ target/loongarch

[PATCH v2 42/43] tests/tcg/loongarch64: Add hello/memory test in loongarch64 system

2022-04-25 Thread Xiaojuan Yang
- We write a very minimal softmmu harness. - This is a very simple smoke test with no need to run a full Linux/kernel. - The Makefile.softmmu-target record the rule to run. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- MAINTAINERS

[PATCH v2 43/43] target/loongarch: 'make check-tcg' support

2022-04-25 Thread Xiaojuan Yang
From: Song Gao Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Acked-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé --- tests/tcg/configure.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 6

[PATCH v2 30/43] hw/loongarch: Add support loongson3 virt machine type.

2022-04-25 Thread Xiaojuan Yang
Emulate a 3A5000 board use the new loongarch instruction. 3A5000 belongs to the Loongson3 series processors. The board consists of a 3A5000 cpu model and the virt bridge. The host 3A5000 board is really complicated and contains many functions.Now for the tcg softmmu mode only part functions are emu

Re: [PATCH v8 14/17] vfio-user: handle PCI BAR accesses

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:19PM -0400, Jagannathan Raman wrote: > +static size_t vfu_object_bar_rw(PCIDevice *pci_dev, int pci_bar, > +hwaddr bar_offset, char * const buf, > +hwaddr len, const bool is_write) > +{ > +MemoryRegion

[PATCH v2 22/43] target/loongarch: Add MMU support for LoongArch CPU.

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu-param.h | 2 +- target/loongarch/cpu.c| 24 +++ target/loongarch/cpu.h| 51 ++ target/loongarch/internals.h | 9 + target/loongarch/machine.c| 17 ++ tar

[PATCH v2 40/43] hw/loongarch: Add LoongArch ls7a acpi device support

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS| 2 + hw/acpi/Kconfig| 4 + hw/acpi/ls7a.c | 374 + hw/acpi/meson.build| 1 + hw/loongarch/Kconfig | 2 + hw/loongarch/loongson3.

[PATCH v2 24/43] target/loongarch: Add constant timer support

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/constant_timer.c | 64 +++ target/loongarch/cpu.c| 2 + target/loongarch/cpu.h| 4 ++ target/loongarch/internals.h | 6 +++ target

[PATCH v2 38/43] hw/loongarch: Add LoongArch ls7a rtc device support

2022-04-25 Thread Xiaojuan Yang
This patch add ls7a rtc device support. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS| 1 + hw/loongarch/Kconfig | 1 + hw/loongarch/loongson3.c | 4 + hw/rtc/Kconfig | 3 + hw/rtc/ls7a_rtc.c | 322 +

[PATCH v2 36/43] Enable common virtio pci support for LoongArch

2022-04-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- softmmu/qdev-monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/softmmu/qdev-monitor.c b/softmmu/qdev-monitor.c index 12fe60c467..bb5897fc76 100644 --- a/softmmu/qdev-monitor.c +

Re: [PATCH] nvme: fix bit buckets

2022-04-25 Thread Klaus Jensen
+qemu-devel On Apr 22 09:37, Keith Busch wrote: > We can't just ignore the bit buckets since the data offsets read from > disk need to be accounted for. We could either split into multiple reads > for the actual user data requested and skip the buckets, or we could > have a place holder for bucket

Re: [PATCH v8 15/17] vfio-user: handle device interrupts

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:20PM -0400, Jagannathan Raman wrote: > +static MSIMessage vfu_object_msi_prepare_msg(PCIDevice *pci_dev, > + unsigned int vector) > +{ > +MSIMessage msg; > + > +msg.address = 0; > +msg.data = vector; > + > +re

Re: [PATCH v8 12/17] vfio-user: IOMMU support for remote device

2022-04-25 Thread Stefan Hajnoczi
On Wed, Apr 20, 2022 at 11:15:16AM +, Jag Raman wrote: > > > > On Apr 19, 2022, at 4:45 PM, Jag Raman wrote: > > > > Assign separate address space for each device in the remote processes. > > > > Signed-off-by: Elena Ufimtseva > > Signed-off-by: John G Johnson > > Signed-off-by: Jagannat

Re: [PATCH v2] error-report: fix g_date_time_format assertion

2022-04-25 Thread Daniel P . Berrangé
On Sun, Apr 24, 2022 at 06:50:35PM +0800, Haiyue Wang wrote: > The 'g_get_real_time' returns the number of microseconds since January > 1, 1970 UTC, but 'g_date_time_new_from_unix_utc' needs the number of > seconds, so it will cause the invalid time input: > > (process:279642): GLib-CRITICAL (recu

Re: [PATCH v8 13/17] vfio-user: handle DMA mappings

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:18PM -0400, Jagannathan Raman wrote: > +static void dma_unregister(vfu_ctx_t *vfu_ctx, vfu_dma_info_t *info) > +{ > +VfuObject *o = vfu_get_private(vfu_ctx); > +AddressSpace *dma_as = NULL; > +MemoryRegion *mr = NULL; > +ram_addr_t offset; > + > +mr

Re: [qemu.qmp PATCH 01/12] fork qemu.qmp from qemu.git

2022-04-25 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 02:49:29PM -0400, John Snow wrote: > Split python/ from qemu.git, using these commands: > > > git subtree split -P python/ -b python-split-v3 > > mkdir ~/src/tmp > > cd ~/src/tmp > > git clone --no-local --branch python-split-v3 --single-branch ~/src/qemu > > cd qemu > > gi

Re: [RFC 00/18] vfio: Adopt iommufd

2022-04-25 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 04:09:43PM -0600, Alex Williamson wrote: > [Cc +libvirt folks] > > On Thu, 14 Apr 2022 03:46:52 -0700 > Yi Liu wrote: > > > With the introduction of iommufd[1], the linux kernel provides a generic > > interface for userspace drivers to propagate their DMA mappings to kern

Signing QEMU up for GitLab for Open Source?

2022-04-25 Thread Stefan Hajnoczi
Hi, QEMU needs to enroll in GitLab for Open Source before July 1st to receive 50,000 CI/CD pipeline minutes and GitLab Ultimate features: https://about.gitlab.com/blog/2022/02/04/ultimate-perks-for-open-source-projects/ https://about.gitlab.com/solutions/open-source/ CI/CD minutes also become ava

Re: [PATCH v3 for 7.1 1/1] block: add 'force' parameter to 'blockdev-change-medium' command

2022-04-25 Thread Hanna Reitz
On 13.04.22 00:18, Denis V. Lunev wrote: 'blockdev-change-medium' is a convinient wrapper for the following sequence of commands: * blockdev-open-tray * blockdev-remove-medium * blockdev-insert-medium * blockdev-close-tray and should be used f.e. to change ISO image inside the CD-ROM tray

Re: [PATCH] hw/crypto: add Allwinner sun4i-ss crypto device

2022-04-25 Thread Daniel P . Berrangé
On Sun, Apr 24, 2022 at 09:10:23PM +0200, LABBE Corentin wrote: > Le Thu, Apr 21, 2022 at 01:38:00PM +0100, Peter Maydell a écrit : > > On Sun, 10 Apr 2022 at 20:12, Corentin Labbe wrote: > > > > > > From: Corentin LABBE > > > > > > The Allwinner A10 has a cryptographic offloader device which > >

Re: [PATCH v2] target/xtensa: import core lx106

2022-04-25 Thread Max Filippov
On Sun, Apr 24, 2022 at 10:24 PM Simon Safar wrote: > On Sat, Apr 23, 2022, at 2:41 PM, Max Filippov wrote: > > I've noticed that this file is not from the original overlay (which I happen > > to have here: > > https://github.com/jcmvbkbc/xtensa-toolchain-build/blob/master/overlays/original/lx106.

Re: [PATCH v8 16/17] vfio-user: handle reset of remote device

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:21PM -0400, Jagannathan Raman wrote: > Adds handler to reset a remote device > > Signed-off-by: Elena Ufimtseva > Signed-off-by: John G Johnson > Signed-off-by: Jagannathan Raman > --- > hw/remote/vfio-user-obj.c | 20 > 1 file changed, 20 ins

Re: [qemu.qmp PATCH 04/12] update project URLs

2022-04-25 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 02:49:32PM -0400, John Snow wrote: > Point to this library's URLs instead of the entire project's. > > Signed-off-by: John Snow > --- > setup.cfg | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/setup.cfg b/setup.cfg > index c21f2ce..0a1c215 1

Re: [qemu.qmp PATCH 09/12] add LGPLv2+ and GPLv2 LICENSE files

2022-04-25 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 02:49:37PM -0400, John Snow wrote: > This clarifies that the majority of this package is LGPLv2+. Copyright > blurbs that pointed to QEMU's "COPYING" file are amended to point to > this repository's "LICENSE" file instead. > > The only file that is not already licensed as L

Re: [PATCH v8 00/17] vfio-user server in QEMU

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:05PM -0400, Jagannathan Raman wrote: > This is v8 of the server side changes to enable vfio-user in QEMU. > > Thank you very much for reviewing the last revision of this series! I posted some minor comments. I hope the next revision or the one after it will be merged

Re: [qemu.qmp PATCH 02/12] update maintainer metadata

2022-04-25 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 02:49:30PM -0400, John Snow wrote: > Modify "QEMU Developer Team" to "QEMU Project", as this matches the > spelling we use for the collective on gitlab.com/qemu-project. > > Add myself as the principal maintainer contact. > > Signed-off-by: John Snow > --- > setup.cfg |

Re: [PATCH] Only advertise aio=io_uring if support is actually available

2022-04-25 Thread Dirk Müller
On Mittwoch, 20. April 2022 10:33:38 CEST Daniel P. Berrangé wrote: Hi Daniel, > If we're going to conditionalize this, then we really ought to be > address it fully, because 'native' is also platform specific. Good point. I can do that as well. > IOW, we would end up needing something more li

Re: [PATCH v2] Only advertise aio=io_uring if support is actually available

2022-04-25 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 03:30:46PM -0500, Eric Blake wrote: > On Thu, Apr 21, 2022 at 02:27:55PM -0500, Eric Blake wrote: > > On Thu, Apr 21, 2022 at 06:50:48PM +0200, Dirk Müller wrote: > > > Change --help output for aio option to only list the aio backend options > > > that > > > are actually av

Re: [PATCH v3 1/3] hw/audio/ac97: Coding style fixes to avoid checkpatch errors

2022-04-25 Thread Víctor Colombo
On 23/04/2022 06:36, BALATON Zoltan wrote: Signed-off-by: BALATON Zoltan --- v3: Fixed misalignments and drop spaces before commas hw/audio/ac97.c | 733 1 file changed, 360 insertions(+), 373 deletions(-) Reviewed-by: Víctor Colombo

  1   2   3   >