Re: [PATCH v2] audio: Add sndio backend

2022-01-15 Thread Brad Smith
On 12/19/2021 4:07 PM, Volker Rümelin wrote: Hi Alexandre, sndio is the native API used by OpenBSD, although it has been ported to other *BSD's and Linux (packages for Ubuntu, Debian, Void, Arch, etc.). Signed-off-by: Brad Smith Signed-off-by: Alexandre Ratchov --- Thank you for the reviews

Re: [PATCH v4 2/4] target/riscv: add support for svnapot extension

2022-01-15 Thread Anup Patel
On Sun, Jan 16, 2022 at 8:31 AM Weiwei Li wrote: > > - add PTE_N bit > - add PTE_N bit check for inner PTE > - update address translation to support 64KiB continuous region (napot_bits = > 4) > > Signed-off-by: Weiwei Li > Signed-off-by: Junqiang Wang Looks good to me. Reviewed-by: Anup Patel

[PATCH v4 4/4] target/riscv: add support for svpbmt extension

2022-01-15 Thread Weiwei Li
- add PTE_PBMT bits: It uses two PTE bits, but otherwise has no effect on QEMU, since QEMU is sequentially consistent and doesn't model PMAs currently - add PTE_PBMT bits check for inner PTE - add reserved bits check for all PTE Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Tested-by: H

[PATCH v4 0/4] support subsets of virtual memory extension

2022-01-15 Thread Weiwei Li
This patchset implements virtual memory related RISC-V extensions: Svnapot version 1.0, Svinval vesion 1.0, Svpbmt version 1.0. Specification: https://github.com/riscv/virtual-memory/tree/main/specs The port is available here: https://github.com/plctlab/plct-qemu/tree/plct-virtmem-upstream-v4

[PATCH v4 2/4] target/riscv: add support for svnapot extension

2022-01-15 Thread Weiwei Li
- add PTE_N bit - add PTE_N bit check for inner PTE - update address translation to support 64KiB continuous region (napot_bits = 4) Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/cpu.c| 2 ++ target/riscv/cpu.h| 1 + target/riscv/cpu_bits.h | 1 + t

[PATCH v4 1/4] target/riscv: add PTE_A/PTE_D/PTE_U bits check for inner PTE

2022-01-15 Thread Weiwei Li
Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Anup Patel --- target/riscv/cpu_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c index 434a83e66a..d84cde424d 100644 --- a/target/riscv/cpu_helper.c +++ b/targ

[PATCH v4 3/4] target/riscv: add support for svinval extension

2022-01-15 Thread Weiwei Li
- sinval.vma, hinval.vvma and hinval.gvma do the same as sfence.vma, hfence.vvma and hfence.gvma except extension check - do nothing other than extension check for sfence.w.inval and sfence.inval.ir Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Anup Patel --- target/riscv

[PATCH 4/4] check-block: replace -makecheck with TAP output

2022-01-15 Thread Paolo Bonzini
Let "meson test" take care of showing the results of the individual tests, consistently with other output from "make check V=1". Signed-off-by: Paolo Bonzini --- tests/check-block.sh | 6 ++-- tests/qemu-iotests/check | 6 ++-- tests/qemu-iotests/meson.build | 1 + tests

[PATCH 3/4] qemu-iotests: require at least an argument to check-block.sh

2022-01-15 Thread Paolo Bonzini
This is anyway how check-block.sh is used in practice, and by removing the list of formats in the script we avoid duplication between meson.build and check-block.sh. Signed-off-by: Paolo Bonzini --- tests/check-block.sh | 21 + 1 file changed, 9 insertions(+), 12 deletions(-)

[PATCH 2/4] build: make check-block a meson test

2022-01-15 Thread Paolo Bonzini
"meson test" can be asked to run tests verbosely; this makes it usable also for qemu-iotests's own harness, and it lets "make check-block" reuse mtest2make.py's infrastructure to find and build test dependencies. Adjust check-block.sh to use the standard exit code that reports a test as skipped.

[PATCH 1/4] scripts/mtest2make: add support for SPEED=thorough

2022-01-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- meson.build | 5 +++-- scripts/mtest2make.py | 10 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 762d7cee85..c9004bd25e 100644 --- a/meson.build +++ b/meson.build @@ -3,8 +3,9 @@ project('qemu

[PATCH 0/4] make check-block a meson test

2022-01-15 Thread Paolo Bonzini
This series makes "meson test" run the block layer tests, reporting their outcome in the same way as the other TAP tests. Based-on: <20211223183933.1497037-1-vsement...@virtuozzo.com> Paolo Bonzini (4): scripts/mtest2make: add support for SPEED=thorough build: make check-block a meson test

[PATCH 0/4] make check-block a meson test

2022-01-15 Thread Paolo Bonzini
This series makes "meson test" run the block layer tests, reporting their outcome in the same way as the other TAP tests. Based-on: <20211223183933.1497037-1-vsement...@virtuozzo.com> Paolo Bonzini (4): scripts/mtest2make: add support for SPEED=thorough build: make check-block a meson test

Re: [PULL 0/9] qemu-ga-win patches

2022-01-15 Thread Konstantin Kostiuk
On Sat, Jan 15, 2022 at 2:40 PM Peter Maydell wrote: > On Mon, 10 Jan 2022 at 13:46, Konstantin Kostiuk > wrote: > > > > The following changes since commit > df722e33d5da26ea8604500ca8f509245a0ea524: > > > > Merge tag 'bsd-user-arm-pull-request' of gitlab.com:bsdimp/qemu into > staging (2022-0

Re: [PATCH qemu] spapr: Force 32bit when resetting a core

2022-01-15 Thread BALATON Zoltan
On Fri, 14 Jan 2022, Cédric Le Goater wrote: On 1/10/22 03:52, Alexey Kardashevskiy wrote: On 08/01/2022 00:39, Greg Kurz wrote: On Fri, 7 Jan 2022 23:19:03 +1100 David Gibson wrote: On Fri, Jan 07, 2022 at 12:57:47PM +0100, Greg Kurz wrote: On Fri, 7 Jan 2022 18:24:23 +1100 Alexey Kardashe

[PATCH 3/3] m68k: virt: correctly set the initial PC

2022-01-15 Thread Laurent Vivier
According to QEMU parameter, set initial PC to the entry of the loaded kernel. Signed-off-by: Laurent Vivier --- hw/m68k/virt.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/hw/m68k/virt.c b/hw/m68k/virt.c index 78e926a55457..bbaf630bbf20 100644 ---

[PATCH 2/3] hw/elf_ops: clear uninitialized segment space

2022-01-15 Thread Laurent Vivier
When the mem_size of the segment is bigger than the file_size, and if this space doesn't overlap another segment, it needs to be cleared. This bug is very similar to the one we had for linux-user, 22d113b52f41 ("linux-user: Fix loading of BSS segments"), where .bss section is encoded as an extensi

[PATCH 0/3] m68k: virt: fix reboot

2022-01-15 Thread Laurent Vivier
This series fixes the reboot of the virt-m68k machine by correctly initializing the start address and fixing the ELF kernel image. The two first patches were already sent last year and never merged: https://patchwork.kernel.org/project/qemu-devel/cover/20210429141326.69245-1-laur...@vivier.eu/ T

[PATCH 1/3] exec/memory: Extract address_space_set() from dma_memory_set()

2022-01-15 Thread Laurent Vivier
From: Philippe Mathieu-Daudé dma_memory_set() does a DMA barrier, set the address space with a constant value. The constant value filling code is not specific to DMA and can be used for AddressSpace. Extract it as a new helper: address_space_set(). Signed-off-by: Philippe Mathieu-Daudé Reviewed

Re: [PATCH 5/5] hw/display/artist: Fix framebuffer access for Linux

2022-01-15 Thread Sven Schnelle
Sven Schnelle writes: > Philippe Mathieu-Daudé writes: > >> +Sven >> >> On 12/1/22 22:07, Helge Deller wrote: >>> This patch fixes two problems which prevented Linux to access the >>> artist graphics framebuffer: >>> The check if the framebuffer or the color map should be accessed was >>> incomp

[PULL 0/1] qemu-openbios queue 20220115

2022-01-15 Thread Mark Cave-Ayland
The following changes since commit 1cd2ad11d37c48f284f557954e1df675b126264c: Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2022-01-14 15:56:30 +) are available in the Git repository at: git://github.com/mcayland/qemu.git tags/qemu-openbios-202

Re: [RFC] linux-user: Remove stale "not threadsafe" comments

2022-01-15 Thread Warner Losh
On Sat, Jan 15, 2022 at 2:49 AM Alex Bennée wrote: > > Peter Maydell writes: > > > In linux-user/signal.c we have two FIXME comments claiming that > > parts of the signal-handling code are not threadsafe. These are > > very old, as they were first introduced in commit 624f7979058 > > in 2008. Si

Re: [PATCH v2 0/3] Support fd-based KVM stats

2022-01-15 Thread Paolo Bonzini
On 11/19/21 20:51, Mark Kanda wrote: v2: [Paolo] - generalize the interface - add support for querying stat schema and instances - add additional HMP semantic processing for a few exponent/unit combinations (related to seconds and bytes) This patchset adds QEMU support for querying fd-based K

Re: [PATCH] build-sys: fix a meson deprecation warning

2022-01-15 Thread Paolo Bonzini
On 1/13/22 17:21, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau WARNING: Deprecated features used: * 0.56.0: {'meson.source_root'} Signed-off-by: Marc-André Lureau Reported-by: Peter Maydell --- tests/qtest/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 1/2] build-sys: fix undefined ARCH error

2022-01-15 Thread Paolo Bonzini
On 1/14/22 09:43, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau ../qga/meson.build:76:4: ERROR: Key ARCH is not in the dictionary. Fixes commit 823eb013 ("configure, meson: move ARCH to meson.build") Signed-off-by: Marc-André Lureau --- qga/meson.build | 2 +- 1 file changed,

Re: [PATCH 6/6] tests/qtest/libqos: Add pci-arm and add a pci-arm producer in arm-virt machine

2022-01-15 Thread Paolo Bonzini
On 1/10/22 22:19, Eric Auger wrote: Up to now the virt-machine node contains a virtio-mmio node. However no driver produces any PCI interface node. Hence, PCI tests cannot be run with aarch64 binary. Add a GPEX driver node that produces a pci interface node. This latter then can be consumed by a

Re: [PATCH 0/2] Introduce printer subsystem and USB printer device

2022-01-15 Thread Ruien Zhang
On 1/14/22 5:32 PM, Gerd Hoffmann wrote: Hi, This patchset introduces: 1) Skeleton of QEMU printer subsystem with a dummy builtin driver. 2) USB printer device emulation, with definitions in the extension of IPP-over- USB [3]. WIP: 1) QEMU printer subsystem interfaces, which will be

Re: [PATCH qemu] spapr: Force 32bit when resetting a core

2022-01-15 Thread Mark Cave-Ayland
On 14/01/2022 14:12, Cédric Le Goater wrote: Yes, more info here : https://patchwork.kernel.org/project/qemu-devel/patch/1458121432-2855-1-git-send-email-lviv...@redhat.com/ mac99+970 only boots with a 64bit kernel. 32bit are not supported because of the use of the rfi instruction which was

Re: [RFC PATCH v4 00/30] Add LoongArch softmmu support.

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:13, Xiaojuan Yang wrote: This series patch add softmmu support for LoongArch. Base on the linux-user emulation support V14 patch. * https://patchew.org/QEMU/20220106094200.1801206-1-gaos...@loongson.cn/ The latest kernel: * https://github.com/loongson/linux/tree/loongarch-

Re: [RFC PATCH v3 22/27] hw/loongarch: Add some devices support for 3A5000.

2022-01-15 Thread Mark Cave-Ayland
On 12/01/2022 09:37, maobibo wrote: Isn't this part already handled by the code in hw/pci/pci.c when the IRQ is asserted, for example pci_change_irq_level()? We design a different rule for the pcie devices connect to the root bridge, assign more irqs to these devices. For the pci device conn

Re: [RFC PATCH v3 22/27] hw/loongarch: Add some devices support for 3A5000.

2022-01-15 Thread Mark Cave-Ayland
On 10/01/2022 02:26, yangxiaojuan wrote: Hi, Mark On 12/23/2021 06:52 PM, Mark Cave-Ayland wrote: On 22/12/2021 08:26, yangxiaojuan wrote: Hi, Mark On 12/18/2021 06:02 PM, Mark Cave-Ayland wrote: On 04/12/2021 12:07, Xiaojuan Yang wrote: 1.Add uart,virtio-net,vga and usb for 3A5000. 2.Ad

Re: [RFC PATCH v4 21/30] hw/loongarch: Add irq hierarchy for the system

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:14, Xiaojuan Yang wrote: This patch add the irq hierarchy for the virt board. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/loongson3.c | 85 ++ include/hw/pci-host/ls7a.h | 13 ++ 2 files changed, 98 inser

Re: [RFC PATCH v4 20/30] hw/intc: Add LoongArch extioi interrupt controller(EIOINTC)

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:14, Xiaojuan Yang wrote: 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 | 376 + hw/intc/meson.build

Re: [RFC PATCH v4 18/30] hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC)

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:14, Xiaojuan Yang wrote: This patch realize the PCH-PIC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig | 4 + hw/intc/loongarch_pch_pic.c | 428 hw/intc/meson.build

Re: [RFC PATCH v4 15/30] hw/loongarch: Add support loongson3-ls7a machine type.

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:14, Xiaojuan Yang wrote: 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 7A1000 bridge. The host 3A5000 board is really complicated and contains many functions.Now for t

Re: [PATCH v13 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-15 Thread Vladislav Yaroshchuk
Hi Akihiko, Thank you for the review! I will fix the problems and resubmit as v14. --- Best regards, Vladislav Yaroshchuk пт, 14 янв. 2022 г. в 11:43, Akihiko Odaki : > Hi, > > Thank you for fixing the feature availability check. > > I decided to just check the series thoroughly before adding R

Re: [RFC PATCH v4 05/30] target/loongarch: Add constant timer support

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:13, Xiaojuan Yang wrote: Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/constant_timer.c | 63 +++ target/loongarch/cpu.c| 9 + target/loongarch/cpu.h| 10 + target/loongarch/meson.bui

Re: [RFC PATCH v4 03/30] target/loongarch: Add basic vmstate description of CPU.

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:13, Xiaojuan Yang wrote: This patch introduce vmstate_loongarch_cpu Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu.c | 3 ++ target/loongarch/internals.h | 4 ++ target/loongarch/machine.c | 84 +

Re: [RFC PATCH v4 01/30] target/loongarch: Update README

2022-01-15 Thread Mark Cave-Ayland
On 08/01/2022 09:13, Xiaojuan Yang wrote: Mainly introduce how to run the softmmu Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/README | 25 + 1 file changed, 25 insertions(+) diff --git a/target/loongarch/README b/target/loongarch/READM

Re: [PULL 0/9] qemu-ga-win patches

2022-01-15 Thread Peter Maydell
On Mon, 10 Jan 2022 at 13:46, Konstantin Kostiuk wrote: > > The following changes since commit df722e33d5da26ea8604500ca8f509245a0ea524: > > Merge tag 'bsd-user-arm-pull-request' of gitlab.com:bsdimp/qemu into > staging (2022-01-08 09:37:59 -0800) > > are available in the Git repository at: > >

Re: [PULL 00/16] Block layer patches

2022-01-15 Thread Peter Maydell
On Fri, 14 Jan 2022 at 13:52, Kevin Wolf wrote: > > The following changes since commit 67b6526cf042f22521feff5ea521a05d3dd2bf8f: > > Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' > into staging (2022-01-13 13:59:56 +) > > are available in the Git repository at: > >

Re: [PATCH 5/5] hw/display/artist: Fix framebuffer access for Linux

2022-01-15 Thread Sven Schnelle
Philippe Mathieu-Daudé writes: > +Sven > > On 12/1/22 22:07, Helge Deller wrote: >> This patch fixes two problems which prevented Linux to access the >> artist graphics framebuffer: >> The check if the framebuffer or the color map should be accessed was >> incomplete. By using the vram_read/write

Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-15 Thread Peter Maydell
On Sat, 15 Jan 2022 at 06:19, Warner Losh wrote: > I need to work through those things in our development branch before trying > to fold them into this series. And I'm not yet sure the right way to do that > because > many of the things are likely to be largish changes that may be tough to > man

Re: [RFC] linux-user: Remove stale "not threadsafe" comments

2022-01-15 Thread Alex Bennée
Peter Maydell writes: > In linux-user/signal.c we have two FIXME comments claiming that > parts of the signal-handling code are not threadsafe. These are > very old, as they were first introduced in commit 624f7979058 > in 2008. Since then we've radically overhauled the signal-handling > logic,