Re: [Qemu-devel] [PATCH v2 2/2] spapr/irq: Only claim VALID interrupts at the KVM level

2019-09-15 Thread David Gibson
On Wed, Sep 11, 2019 at 03:39:37PM +0200, Cédric Le Goater wrote: > A typical pseries VM with 16 vCPUs, one disk, one network adapater > uses less than 100 interrupts but the whole IRQ number space of the > QEMU machine is allocated at reset time and it is 8K wide. This is > wasting a considerable

Re: [Qemu-devel] [PATCH v2 0/6] tests/acceptance: Add tests for the PReP/40p machine

2019-09-15 Thread David Gibson
On Sun, Sep 15, 2019 at 11:19:34PM +0200, Philippe Mathieu-Daudé wrote: > Quick tests worth to avoid regressions with the 40p machine. > idea from the "Maintainers, please tell us how to boot your machines" > thread: > https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg04177.html > > v2:

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target/ppc: fix signal delivery for ppc64abi32

2019-09-15 Thread David Gibson
On Wed, Sep 11, 2019 at 10:33:45AM -0400, Richard Henderson wrote: > On 9/11/19 5:39 AM, Alex Bennée wrote: > > We were incorrectly setting NIP resulting in a segfault. This fixes > > linux-test for this ABI. > > Perhaps better: > We were incorrectly using the 64-bit AIX ABI instead of the 32-bit

[Qemu-devel] [Bug 1830415] Re: linux-user elf loader issue

2019-09-15 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1830415 Title: linux-user

[Qemu-devel] [Bug 1835693] Re: s390x binaries segfault

2019-09-15 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1835693 Title: s390x

Re: [Qemu-devel] [PATCH RFC 0/4] intel_iommu: Do sanity check of vfio-pci earlier

2019-09-15 Thread Peter Xu
On Wed, Aug 21, 2019 at 09:50:43AM +0200, Paolo Bonzini wrote: > On 21/08/19 07:03, Peter Xu wrote: > > On Tue, Aug 20, 2019 at 08:24:49AM +0200, Paolo Bonzini wrote: > >> On 20/08/19 07:22, Peter Xu wrote: > >>> On Mon, Aug 12, 2019 at 09:45:27AM +0200, Peter Xu wrote: > This is a RFC

Re: [Qemu-devel] [PATCH v1 5/6] intel_iommu: Let vtd_iommu_notify_flag_changed() fail

2019-09-15 Thread Peter Xu
On Fri, Sep 13, 2019 at 10:36:14AM +0200, Eric Auger wrote: > In case a MAP notifier is attempted to be registered without > caching mode, let's simply return an error. This latter now is > handled in the VFIO code. > > Signed-off-by: Eric Auger > --- > hw/i386/intel_iommu.c | 2 +- > 1 file

Re: [Qemu-devel] [PATCH v1 1/6] memory: allow memory_region_register_iommu_notifier() to fail

2019-09-15 Thread Peter Xu
On Fri, Sep 13, 2019 at 10:36:10AM +0200, Eric Auger wrote: > Currently, when a notifier is attempted to be registered and its > flags are not supported (especially the MAP one) by the IOMMU MR, > we generally abruptly exit in the IOMMU code. The failure could be > handled more nicely in the

Re: [Qemu-devel] [PATCH 0/2] migration/rdma disconnect fixes

2019-09-15 Thread Peter Xu
On Fri, Sep 13, 2019 at 05:35:05PM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Hi, > This fixes a deadlock that can occur on the source after > a failed RDMA migration and cleans up some warning messages > that can appear during normal completion. > >

Re: [Qemu-devel] [PATCH v2] numa: Introduce MachineClass::auto_enable_numa for implicit NUMA node

2019-09-15 Thread Tao Xu
Gentle ping. On 9/5/2019 4:32 PM, Xu, Tao3 wrote: Add MachineClass::auto_enable_numa field. When it is true, a NUMA node is expected to be created implicitly. Acked-by: David Gibson Suggested-by: Igor Mammedov Suggested-by: Eduardo Habkost Reviewed-by: Igor Mammedov Signed-off-by: Tao Xu

Re: [Qemu-devel] [PATCH 2/6] exec.c: remove an unnecessary assert on PHYS_MAP_NODE_NIL in phys_map_node_alloc()

2019-09-15 Thread Wei Yang
On Fri, Sep 13, 2019 at 11:12:05AM +0200, Paolo Bonzini wrote: >On 13/09/19 01:02, Wei Yang wrote: >> It shows PHYS_MAP_NODE_NIL may represents more node the tree could hold. > >Which is good, it means the assert can trigger. > Per my understanding, it means the assert can't trigger. >> The

Re: [Qemu-devel] [PATCH v8 01/13] vfio: KABI for migration interface

2019-09-15 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, September 13, 2019 11:48 PM > > On Thu, 12 Sep 2019 23:00:03 + > "Tian, Kevin" wrote: > > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Thursday, September 12, 2019 10:41 PM > > > > > >

[Qemu-devel] vhost, iova, and dirty page tracking

2019-09-15 Thread Tian, Kevin
Hi, Jason We had a discussion about dirty page tracking in VFIO, when vIOMMU is enabled: https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg02690.html It's actually a similar model as vhost - Qemu cannot interpose the fast-path DMAs thus relies on the kernel part to track and report

Re: [Qemu-devel] [PATCH v3 0/4] add Homer/OCC common area emulation for PowerNV

2019-09-15 Thread David Gibson
On Thu, Sep 12, 2019 at 03:00:51PM +0530, Balamuruhan S wrote: > Hi All, > > This is follow-up patch that implements HOMER and OCC SRAM device > models to emulate homer memory and occ common area access for pstate > table, occ sensors, runtime data and slw. > > Currently skiboot disables the

Re: [Qemu-devel] [PATCH v2 1/2] spapr/irq: Introduce an ics_irq_free() helper

2019-09-15 Thread David Gibson
On Wed, Sep 11, 2019 at 03:39:36PM +0200, Cédric Le Goater wrote: > It will help us to discard interrupt numbers which have not been > claimed in the next patch. > > Signed-off-by: Cédric Le Goater Applied to ppc-for-4.2, thanks. > --- > include/hw/ppc/xics.h | 5 + > hw/ppc/spapr_irq.c

Re: [Qemu-devel] [PATCH] ppc: Add support for 'mffsce' instruction

2019-09-15 Thread David Gibson
On Sat, Sep 14, 2019 at 01:00:21PM -0400, Richard Henderson wrote: > On 9/12/19 8:54 AM, Paul A. Clarke wrote: > > From: "Paul A. Clarke" > > > > ISA 3.0B added a set of Floating-Point Status and Control Register (FPSCR) > > instructions: mffsce, mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl. >

Re: [Qemu-devel] [PATCH] spapr: Report kvm_irqchip_in_kernel() in 'info pic'

2019-09-15 Thread David Gibson
On Thu, Sep 12, 2019 at 04:30:09PM +0200, Greg Kurz wrote: 65;5603;1c> Unless the machine was started with kernel-irqchip=on, we cannot easily > tell if we're actually using an in-kernel or an emulated irqchip. This > information is important enough that it is worth printing it in 'info > pic'. >

[Qemu-devel] [Bug 1844053] Re: task blocked for more than X seconds - events drm_fb_helper_dirty_work

2019-09-15 Thread James Harvey
** Description changed: I've had bunches of these errors on 9 different boots, between 2019-08-21 and now, with Arch host and guest, from linux 5.1.16 to 5.2.14 on host and guest, with QEMU 4.0.0 and 4.1.0. spice 0.14.2, spice-gtk 0.37, spice-protocol 0.14.0, virt-viewer 8.0. I've

Re: [Qemu-devel] [Qemu-riscv] [PATCH v8 18/32] riscv: sifive_u: Set the minimum number of cpus to 2

2019-09-15 Thread Palmer Dabbelt
On Sun, 15 Sep 2019 10:39:38 PDT (-0700), finte...@gmail.com wrote: Has there been testing with "-smp 2"? A while back I thought I read that the included uboot firmware was using a hard-coded device tree that indicated 4+1 CPUs, which I would have expected to cause Linux boot issues? It works

[Qemu-devel] [RFC PATCH v7 9/9] linux-user/syscall: Align target_sockaddr fields using ABI types

2019-09-15 Thread Philippe Mathieu-Daudé
Target architectures align types differently for instance m68k aligns on 16bit whereas others on 32bit). Use ABI types to keep alignments good. Suggested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daudé --- RFC: Is target_sockaddr_ll.sll_ifindex of type abi_int?

[Qemu-devel] [PATCH v7 8/9] linux-user/strace: Let print_sockaddr() have a 'last' argument

2019-09-15 Thread Philippe Mathieu-Daudé
If the format is not the syscall last argument, a comma is append. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier --- checkpatch error: ERROR: storage class should be at the beginning of the declaration --- linux-user/strace.c | 10 +- 1 file changed, 5

[Qemu-devel] [PATCH v7 4/9] linux-user/syscall: Introduce target_sockaddr_nl

2019-09-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Tested-By: Guido Günther --- v7: use abi_ushort and abi_uint to keep alignments good (lvivier) --- linux-user/syscall.c | 6 -- linux-user/syscall_defs.h | 7 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH v7 6/9] linux-user/strace: Add print_sockfd()

2019-09-15 Thread Philippe Mathieu-Daudé
Extract common print_sockfd() from various socket related syscalls. Signed-off-by: Philippe Mathieu-Daudé --- v6: use another ifdef TARGET_NR_socketcall --- linux-user/strace.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/linux-user/strace.c

[Qemu-devel] [PATCH v7 0/9] linux-user: strace improvements

2019-09-15 Thread Philippe Mathieu-Daudé
Hi Laurent, Few patches I'v been writting while trying to figure out this issue: http://lists.nongnu.org/archive/html/qemu-arm/2018-01/msg00514.html As usual with linux-user files, this series will trigger some checkpatch benign warnings. Regards, Phil. Since v6: - Use ABI types in sockaddr

[Qemu-devel] [PATCH v7 3/9] linux-user/strace: Improve settimeofday()

2019-09-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Tested-By: Guido Günther Reviewed-by: Laurent Vivier --- linux-user/strace.c| 13 + linux-user/strace.list | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index

[Qemu-devel] [PATCH v2 5/6] .travis.yml: Let the avocado job run the 40p tests

2019-09-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- If this list continues to grow we can - split it (as other jobs) - move them to GitLab where we can have multi-stage jobs, avocado tests run on top of build jobs. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v2 6/6] .travis.yml: Split enterprise vs. hobbyist acceptance test job

2019-09-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- .travis.yml | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 69a37f7387..753276eb33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -265,9 +265,23 @@ matrix: - "3.6" -#

[Qemu-devel] [PATCH v2 3/6] tests/acceptance: Test OpenBIOS on the PReP/40p

2019-09-15 Thread Philippe Mathieu-Daudé
User case from: https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/ppc_prep_40p.py | 32 1 file changed, 32 insertions(+) diff --git a/tests/acceptance/ppc_prep_40p.py

[Qemu-devel] [PATCH v2 2/6] tests/acceptance: Test Open Firmware on the PReP/40p

2019-09-15 Thread Philippe Mathieu-Daudé
User case from: https://tyom.blogspot.com/2019/04/aixprep-under-qemu-how-to.html Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/ppc_prep_40p.py | 21 + 1 file changed, 21 insertions(+) diff --git a/tests/acceptance/ppc_prep_40p.py

[Qemu-devel] [PATCH v2 0/6] tests/acceptance: Add tests for the PReP/40p machine

2019-09-15 Thread Philippe Mathieu-Daudé
Quick tests worth to avoid regressions with the 40p machine. idea from the "Maintainers, please tell us how to boot your machines" thread: https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg04177.html v2: Split Travis job, added Hervé R-b tag v1:

[Qemu-devel] [PATCH v2 4/6] tests/acceptance: Test Sandalfoot initrd on the PReP/40p

2019-09-15 Thread Philippe Mathieu-Daudé
User case from: https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html Sandalfoot info: http://www.juneau-lug.org/sandalfoot.php Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/ppc_prep_40p.py | 34 1 file changed, 34 insertions(+) diff

[Qemu-devel] [PATCH v2 1/6] tests/acceptance: Add test that runs NetBSD 4.0 installer on PRep/40p

2019-09-15 Thread Philippe Mathieu-Daudé
As of this commit, NetBSD 4.0 is very old. However it is enough to test the PRep/40p machine. User case from: http://mail-index.netbsd.org/port-prep/2017/04/11/msg000112.html Reviewed-by: Hervé Poussineau Signed-off-by: Philippe Mathieu-Daudé --- Installers after 4.0 doesn't work anymore, not

[Qemu-devel] [PATCH v7 2/3] block/qcow2: refactor encryption code

2019-09-15 Thread Maxim Levitsky
* Change the qcow2_co_{encrypt|decrypt} to just receive full host and guest offsets and use this function directly instead of calling do_perform_cow_encrypt (which is removed by that patch). * Adjust qcow2_co_encdec to take full host and guest offsets as well. * Document the

[Qemu-devel] [PATCH v7 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-15 Thread Maxim Levitsky
Commit 8ac0f15f335 accidently broke the COW of non changed areas of newly allocated clusters, when the write spans multiple clusters, and needs COW both prior and after the write. This results in 'after' COW area being encrypted with wrong sector address, which render it corrupted. Bugzilla:

[Qemu-devel] [PATCH v7 1/3] block/qcow2: Fix corruption introduced by commit 8ac0f15f335

2019-09-15 Thread Maxim Levitsky
This fixes subtle corruption introduced by luks threaded encryption in commit 8ac0f15f335 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1745922 The corruption happens when we do a write that * writes to two or more unallocated clusters at once * doesn't fully cover the first sector

[Qemu-devel] [PATCH v7 3/3] qemu-iotests: Add test for bz #1745922

2019-09-15 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky Tested-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/263 | 91 ++ tests/qemu-iotests/263.out | 40 + tests/qemu-iotests/group | 1 + 3 files changed, 132 insertions(+) create mode 100755

[Qemu-devel] [PATCH] vl.c: Report unknown machines correctly

2019-09-15 Thread Palmer Dabbelt
I was recently typing in a QEMU command line, and ended up with something like qemu-system-riscv64 -machine virt ... -M 8G which is, in retrospect, obviously incorrect: there is no "8G" machine. I should have typed something like qemu-system-riscv64 -machine virt ... -m 8G but since

[Qemu-devel] [PATCH v3 24/24] usbaudio: change playback counters to 64 bit

2019-09-15 Thread Kővágó, Zoltán
With stereo playback, they need about 375 minutes of continuous audio playback to overflow, which is usually not a problem (as stopping and later resuming playback resets the counters). But with 7.1 audio, they only need about 95 minutes to overflow. After the overflow, the buf->prod %

[Qemu-devel] [PATCH v3 22/24] usb-audio: do not count on avail bytes actually available

2019-09-15 Thread Kővágó, Zoltán
This assumption is no longer true when mixeng is turned off. Signed-off-by: Kővágó, Zoltán --- hw/usb/dev-audio.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c index ae42e5a2f1..74c99b1f12 100644 ---

[Qemu-devel] [PATCH v3 21/24] paaudio: channel-map option

2019-09-15 Thread Kővágó, Zoltán
Add an option to change the channel map used by pulseaudio. If not specified, falls back to an OSS compatible channel map. Signed-off-by: Kővágó, Zoltán --- audio/paaudio.c | 18 ++ qapi/audio.json | 7 +-- qemu-options.hx | 9 + 3 files changed, 28 insertions(+),

[Qemu-devel] [PATCH v3 18/24] audio: support more than two channels in volume setting

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/audio.c | 30 ++ audio/audio.h | 10 ++ audio/audio_int.h | 4 ++-- audio/paaudio.c| 20 audio/spiceaudio.c | 14 -- 5 files changed, 54 insertions(+), 24 deletions(-)

[Qemu-devel] [PATCH v3 14/24] audio: split ctl_* functions into enable_* and volume_*

2019-09-15 Thread Kővágó, Zoltán
This way we no longer need vararg functions, improving compile time error detection. Also now it's possible to check actually what commands are supported, without needing to manually update ctl_caps. Signed-off-by: Kővágó, Zoltán --- audio/alsaaudio.c | 62 --

[Qemu-devel] [PATCH v3 17/24] paaudio: get/put_buffer functions

2019-09-15 Thread Kővágó, Zoltán
This lets us avoid some buffer copying when using mixeng. Signed-off-by: Kővágó, Zoltán --- audio/paaudio.c | 83 + 1 file changed, 83 insertions(+) diff --git a/audio/paaudio.c b/audio/paaudio.c index ed31f863f7..6ccdf31415 100644 ---

[Qemu-devel] [PATCH v3 13/24] audio: common rate control code for timer based outputs

2019-09-15 Thread Kővágó, Zoltán
This commit removes the ad-hoc rate-limiting code from noaudio and wavaudio, and replaces them with a (slightly modified) code from spiceaudio. This way multiple write calls (for example when the circular buffer wraps around) do not cause problems. Signed-off-by: Kővágó, Zoltán ---

[Qemu-devel] [PATCH v3 20/24] audio: basic support for multichannel audio

2019-09-15 Thread Kővágó, Zoltán
Which currently only means removing some checks. Old code won't require more than two channels, but new code will need it. Signed-off-by: Kővágó, Zoltán --- audio/alsaaudio.c | 7 --- audio/audio.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/audio/alsaaudio.c

[Qemu-devel] [PATCH v3 16/24] audio: make mixeng optional

2019-09-15 Thread Kővágó, Zoltán
Implementation of the previously added mixing-engine option. Signed-off-by: Kővágó, Zoltán --- audio/audio.c | 70 ++ audio/audio_template.h | 20 2 files changed, 78 insertions(+), 12 deletions(-) diff --git a/audio/audio.c

[Qemu-devel] [PATCH v3 04/24] dsoundaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/dsound_template.h | 47 --- audio/dsoundaudio.c | 305 +--- 2 files changed, 91 insertions(+), 261 deletions(-) diff --git a/audio/dsound_template.h b/audio/dsound_template.h index 8ece870c9e..9f10b688df 100644

[Qemu-devel] [PATCH v3 11/24] audio: remove remains of the old backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/audio.c | 42 ++ audio/audio_int.h | 7 --- 2 files changed, 6 insertions(+), 43 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index e29a1e15eb..435bcf20c1 100644 --- a/audio/audio.c +++

[Qemu-devel] [PATCH v3 19/24] audio: replace shift in audio_pcm_info with bytes_per_frame

2019-09-15 Thread Kővágó, Zoltán
The bit shifting trick worked because the number of bytes per frame was always a power-of-two (since QEMU only supports mono, stereo and 8, 16 and 32 bit samples). But if we want to add support for surround sound, this no longer holds true. Signed-off-by: Kővágó, Zoltán --- audio/alsaaudio.c

[Qemu-devel] [PATCH v3 10/24] wavaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/wavaudio.c | 54 1 file changed, 9 insertions(+), 45 deletions(-) diff --git a/audio/wavaudio.c b/audio/wavaudio.c index b6eeeb4e26..7816097db8 100644 --- a/audio/wavaudio.c +++ b/audio/wavaudio.c @@ -36,52

[Qemu-devel] [PATCH v3 00/24] Audio: Mixeng-free 5.1/7.1 audio support

2019-09-15 Thread Kővágó, Zoltán
Hi, I've updated my patch series, fixing some bugs related to spice audio. This should now work with all supported backends on linux, dsound and coreaudio remain untested. Regards, Zoltan Kővágó, Zoltán (24): audio: api for mixeng code free backends alsaaudio: port to the new audio backend

[Qemu-devel] [PATCH v3 03/24] coreaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/coreaudio.c | 130 -- 1 file changed, 69 insertions(+), 61 deletions(-) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index d1be58b40a..5cde42f982 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@

[Qemu-devel] [PATCH v3 15/24] audio: add mixeng option (documentation)

2019-09-15 Thread Kővágó, Zoltán
This will allow us to disable mixeng when we use a decent backend. Disabling mixeng have a few advantages: * we no longer convert the audio output from one format to another, when the underlying audio system would just convert it to a third format. We no longer convert, only the underlying

[Qemu-devel] [PATCH v3 06/24] ossaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/ossaudio.c | 272 +-- 1 file changed, 96 insertions(+), 176 deletions(-) diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 1696933688..2782512706 100644 --- a/audio/ossaudio.c +++ b/audio/ossaudio.c @@

[Qemu-devel] [PATCH v3 12/24] audio: unify input and output mixeng buffer management

2019-09-15 Thread Kővágó, Zoltán
Usage notes: hw->samples became hw->{mix,conv}_buf->size, except before initialization (audio_pcm_hw_alloc_resources_*), hw->samples gives the initial size of the STSampleBuffer. The next commit tries to fix this inconsistency. Signed-off-by: Kővágó, Zoltán --- audio/audio.c | 122

[Qemu-devel] [PATCH v3 02/24] alsaaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/alsaaudio.c | 302 -- 1 file changed, 80 insertions(+), 222 deletions(-) diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 591344dccd..19124d09d8 100644 --- a/audio/alsaaudio.c +++ b/audio/alsaaudio.c @@

[Qemu-devel] [PATCH v5 3/4] net/filter.c: Add Options to insert filters anywhere in the filter list

2019-09-15 Thread Lukas Straub
To switch the Secondary to Primary, we need to insert new filters before the filter-rewriter. Add the options insert= and position= to be able to insert filters anywhere in the filter list. position should be "head" or "tail" to insert at the head or tail of the filter list or it should be "id="

[Qemu-devel] [PATCH v3 07/24] paaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/Makefile.objs | 1 - audio/audio_pt_int.c | 173 audio/audio_pt_int.h | 22 --- audio/paaudio.c | 372 ++- configure| 5 - 5 files changed, 45 insertions(+), 528

[Qemu-devel] [PATCH v3 01/24] audio: api for mixeng code free backends

2019-09-15 Thread Kővágó, Zoltán
This will make it possible to skip mixeng with audio playback and recording, allowing us to free ourselves from the limitations of the current mixeng (stereo, int64 samples only). In this case, HW and SW voices will be essentially the same, for every SW voice we will create a HW voice, since we

[Qemu-devel] [PATCH v5 0/4] colo: Add support for continuous replication

2019-09-15 Thread Lukas Straub
Hello Everyone, These Patches add support for continuous replication to colo. This means that after the Primary fails and the Secondary did a failover, the Secondary can then become Primary and resume replication to a new Secondary. On a side note, I wrote a Pacemaker Resource Agent for colo

[Qemu-devel] [PATCH v3 08/24] sdlaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/sdlaudio.c | 87 +++- 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c index 14b11f0335..f7ac8cd101 100644 --- a/audio/sdlaudio.c +++ b/audio/sdlaudio.c @@ -41,8

[Qemu-devel] [PATCH v3 05/24] noaudio: port to the new audio backend api

2019-09-15 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/noaudio.c | 43 +-- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/audio/noaudio.c b/audio/noaudio.c index 0fb2629cf2..b054fd225b 100644 --- a/audio/noaudio.c +++ b/audio/noaudio.c @@ -41,10 +41,9 @@

[Qemu-devel] [PATCH v5 4/4] colo: Update Documentation for continuous replication

2019-09-15 Thread Lukas Straub
Document the qemu command-line and qmp commands for continuous replication Signed-off-by: Lukas Straub --- docs/COLO-FT.txt | 212 +++-- docs/block-replication.txt | 28 +++-- 2 files changed, 173 insertions(+), 67 deletions(-) diff --git

[Qemu-devel] [PATCH v5 1/4] block/replication.c: Ignore requests after failover

2019-09-15 Thread Lukas Straub
After failover the Secondary side of replication shouldn't change state, because it now functions as our primary disk. In replication_start, replication_do_checkpoint, replication_stop, ignore the request if current state is BLOCK_REPLICATION_DONE (sucessful failover) or

[Qemu-devel] [PATCH v5 2/4] tests/test-replication.c: Add test for ignoring requests after failover

2019-09-15 Thread Lukas Straub
This simulates the case that happens when we resume COLO after failover. Signed-off-by: Lukas Straub --- tests/test-replication.c | 52 1 file changed, 52 insertions(+) diff --git a/tests/test-replication.c b/tests/test-replication.c index

Re: [Qemu-devel] [PATCH] 9p: Print error hints if option parsing fails

2019-09-15 Thread Greg Kurz
On Sat, 14 Sep 2019 20:59:46 +0200 Markus Armbruster wrote: > Greg Kurz writes: > > > Option parsing fonctions are called with _fatal, which > > functions > > > causes error_setg() to call exit() and the hints are never > > printed. > > > > Use an intermediate error object so that exit()

Re: [Qemu-devel] [Qemu-riscv] [PATCH v8 18/32] riscv: sifive_u: Set the minimum number of cpus to 2

2019-09-15 Thread Jonathan Behrens
Has there been testing with "-smp 2"? A while back I thought I read that the included uboot firmware was using a hard-coded device tree that indicated 4+1 CPUs, which I would have expected to cause Linux boot issues? Jonathan On Sun, Sep 15, 2019 at 1:31 PM Palmer Dabbelt wrote: > On Sun, 15

Re: [Qemu-devel] [PATCH v8 18/32] riscv: sifive_u: Set the minimum number of cpus to 2

2019-09-15 Thread Palmer Dabbelt
On Sun, 15 Sep 2019 06:07:18 PDT (-0700), bmeng...@gmail.com wrote: Hi Palmer, On Sun, Sep 15, 2019 at 3:00 AM Palmer Dabbelt wrote: On Fri, 13 Sep 2019 08:25:21 PDT (-0700), bmeng...@gmail.com wrote: > Hi Palmer, > > On Fri, Sep 13, 2019 at 10:33 PM Palmer Dabbelt wrote: >> >> On Fri, 06

Re: [Qemu-devel] [PATCH v4 3/4] net/filter.c: Add Options to insert filters anywhere in the filter list

2019-09-15 Thread Lukas Straub
On Tue, 10 Sep 2019 20:12:45 + "Zhang, Chen" wrote: > > -Original Message- > > From: Lukas Straub > > Sent: Tuesday, September 10, 2019 6:15 PM > > To: qemu-devel > > Cc: Zhang, Chen ; Jason Wang > > ; Wen Congyang ; > > Xie Changlong ; kw...@redhat.com; > > mre...@redhat.com > >

Re: [Qemu-devel] [PATCH v12 0/9] hw/m68k: add Apple Machintosh Quadra 800 machine

2019-09-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190915153751.11333-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH v12 0/9] hw/m68k: add Apple Machintosh Quadra 800 machine Message-id:

[Qemu-devel] [PATCH v12 8/9] hw/m68k: define Macintosh Quadra 800

2019-09-15 Thread Laurent Vivier
If you want to test the machine, it doesn't yet boot a MacROM, but you can boot a linux kernel from the command line. You can install your own disk using debian-installer with: ./qemu-system-m68k \ -M q800 \ -serial none -serial mon:stdio \ -m 1000M -drive

[Qemu-devel] [PATCH v12 6/9] hw/m68k: add Nubus macfb video card

2019-09-15 Thread Laurent Vivier
This patch adds support for a graphic framebuffer device. This device can be added as a sysbus device or as a NuBus device. It is accessed as a framebuffer but the color palette can be set. Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier

[Qemu-devel] [PATCH v12 7/9] hw/m68k: add a dummy SWIM floppy controller

2019-09-15 Thread Laurent Vivier
SWIM (Sander-Wozniak Integrated Machine) is the floppy controller of the 680x0 Macintosh. This patch introduces only the basic support: it allows to switch from IWM (Integrated WOZ Machine) mode to the SWIM mode and makes the linux driver happy. It cannot read any floppy image. Co-developed-by:

[Qemu-devel] [PATCH v12 3/9] hw/m68k: add VIA support

2019-09-15 Thread Laurent Vivier
Inside the 680x0 Macintosh, VIA (Versatile Interface Adapter) is used to interface the keyboard, Mouse, and real-time clock. It also provides control line for the floppy disk driver, video interface, sound circuitry and serial interface. This implementation is based on the MOS6522 object.

[Qemu-devel] [PATCH v12 9/9] BootLinuxConsoleTest: Test the Quadra 800

2019-09-15 Thread Laurent Vivier
From: Philippe Mathieu-Daudé This test boots a Linux kernel on a Quadra 800 board and verify the serial is working. Example: $ avocado --show=app,console run -t machine:q800 tests/acceptance/boot_linux_console.py console: ABCFGHIJK console: Linux version 5.2.0-2-m68k

[Qemu-devel] [PATCH v12 2/9] dp8393x: manage big endian bus

2019-09-15 Thread Laurent Vivier
This is needed by Quadra 800, this card can run on little-endian or big-endian bus. Signed-off-by: Laurent Vivier Tested-by: Hervé Poussineau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- hw/net/dp8393x.c | 88 +++- 1 file

[Qemu-devel] [PATCH v12 5/9] hw/m68k: add Nubus support

2019-09-15 Thread Laurent Vivier
This patch adds basic support for the NuBus bus. This is used by 680x0 Macintosh. Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth --- MAINTAINERS | 2 + hw/Kconfig |

[Qemu-devel] [PATCH v12 4/9] hw/m68k: implement ADB bus support for via

2019-09-15 Thread Laurent Vivier
VIA needs to be able to poll the ADB interface and to read/write data from/to the bus. This patch adds functions allowing that. Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau Reviewed-by: Thomas Huth ---

[Qemu-devel] [PATCH v12 0/9] hw/m68k: add Apple Machintosh Quadra 800 machine

2019-09-15 Thread Laurent Vivier
I'm rebasing some of these patches for seven years now, too many years... if you want to test the machine, I'm sorry, it doesn't boot a MacROM, but you can boot a linux kernel from the command line. You can install your own disk using debian-installer, with: ... -M q800 \ -serial

[Qemu-devel] [PATCH v12 1/9] esp: add pseudo-DMA as used by Macintosh

2019-09-15 Thread Laurent Vivier
There is no DMA in Quadra 800, so the CPU reads/writes the data from the PDMA register (offset 0x100, ESP_PDMA in hw/m68k/q800.c) and copies them to/from the memory. There is a nice assembly loop in the kernel to do that, see linux/drivers/scsi/mac_esp.c:MAC_ESP_PDMA_LOOP(). The start of the

[Qemu-devel] [PULL 2/2] target/hppa: prevent trashing of temporary in do_depw_sar()

2019-09-15 Thread Richard Henderson
From: Sven Schnelle nullify_over() calls brcond which destroys all temporaries. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Sven Schnelle Message-Id: <20190913101714.29019-3-sv...@stackframe.org> Signed-off-by: Richard Henderson --- target/hppa/translate.c | 10 ++ 1 file

[Qemu-devel] [PULL 1/2] target/hppa: prevent trashing of temporary in trans_mtctl()

2019-09-15 Thread Richard Henderson
From: Sven Schnelle nullify_over() calls brcond which destroys all temporaries. Signed-off-by: Sven Schnelle Message-Id: <20190913101714.29019-2-sv...@stackframe.org> Signed-off-by: Richard Henderson --- target/hppa/translate.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PULL 0/2] target/hppa updates

2019-09-15 Thread Richard Henderson
-20190915 for you to fetch changes up to a6deecce5b11827fff8a3de2142d02c5388aee1c: target/hppa: prevent trashing of temporary in do_depw_sar() (2019-09-14 15:39:24 -0400) Two temp live across branch fixes

[Qemu-devel] [Bug 1844053] [NEW] task blocked for more than X seconds - events drm_fb_helper_dirty_work

2019-09-15 Thread James Harvey
Public bug reported: I've had bunches of these errors on 9 different boots, between 2019-08-21 and now, with Arch host and guest, from linux 5.1.16 to 5.2.14 on host and guest, with QEMU 4.0.0 and 4.1.0. spice 0.14.2, spice-gtk 0.37, spice-protocol 0.14.0, virt-viewer 8.0. I've been fighting

Re: [Qemu-devel] [PATCH v8 18/32] riscv: sifive_u: Set the minimum number of cpus to 2

2019-09-15 Thread Bin Meng
Hi Palmer, On Sun, Sep 15, 2019 at 3:00 AM Palmer Dabbelt wrote: > > On Fri, 13 Sep 2019 08:25:21 PDT (-0700), bmeng...@gmail.com wrote: > > Hi Palmer, > > > > On Fri, Sep 13, 2019 at 10:33 PM Palmer Dabbelt wrote: > >> > >> On Fri, 06 Sep 2019 09:20:05 PDT (-0700), bmeng...@gmail.com wrote: >

[Qemu-devel] [PATCH v31 4/8] target/avr: Add instruction translation

2019-09-15 Thread Michael Rolnik
This includes: - TCG translations for each instruction Signed-off-by: Michael Rolnik --- target/avr/translate.c | 2888 1 file changed, 2888 insertions(+) create mode 100644 target/avr/translate.c diff --git a/target/avr/translate.c

[Qemu-devel] [PATCH v31 8/8] target/avr: Add tests

2019-09-15 Thread Michael Rolnik
1. Avocado test The test is based on https://github.com/seharris/qemu-avr-tests/tree/master/free-rtos/Demo demo which. If working correctly, prints 'ABCDEFGHIJKLMNOPQRSTUVWX' out. it also demostrates that timer and IRQ are working 2. Boot serial test Prinit out 'T' through

[Qemu-devel] [PATCH v31 7/8] target/avr: Register AVR support with the rest of QEMU, the build system, and the MAINTAINERS file

2019-09-15 Thread Michael Rolnik
Signed-off-by: Michael Rolnik --- MAINTAINERS | 6 +++ arch_init.c | 2 + configure | 89 ++--- default-configs/avr-softmmu.mak | 5 ++ include/disas/dis-asm.h | 6 +++

[Qemu-devel] [PATCH v31 3/8] target/avr: Add instruction decoding

2019-09-15 Thread Michael Rolnik
This includes: - encoding of all 16 bit instructions - encoding of all 32 bit instructions Signed-off-by: Michael Rolnik --- target/avr/insn.decode | 175 + 1 file changed, 175 insertions(+) create mode 100644 target/avr/insn.decode diff --git

[Qemu-devel] [PATCH v31 6/8] target/avr: Add example board configuration

2019-09-15 Thread Michael Rolnik
A simple board setup that configures an AVR CPU to run a given firmware image. This is all that's useful to implement without peripheral emulation as AVR CPUs include a lot of on-board peripherals. NOTE: this is not a real board NOTE: it's used for CPU testing Signed-off-by: Michael

[Qemu-devel] [PATCH v31 0/8] QEMU AVR 8 bit cores

2019-09-15 Thread Michael Rolnik
This series of patches adds 8bit AVR cores to QEMU. All instruction, except BREAK/DES/SPM/SPMX, are implemented. Not fully tested yet. However I was able to execute simple code with functions. e.g fibonacci calculation. This series of patches include a non real, sample board. No fuses support

[Qemu-devel] [PATCH v31 5/8] target/avr: Add limited support for USART and 16 bit timer peripherals

2019-09-15 Thread Michael Rolnik
From: Sarah Harris These were designed to facilitate testing but should provide enough function to be useful in other contexts. Only a subset of the functions of each peripheral is implemented, mainly due to the lack of a standard way to handle electrical connections (like GPIO pins).

[Qemu-devel] [PATCH v31 2/8] target/avr: Add instruction helpers

2019-09-15 Thread Michael Rolnik
Stubs for unimplemented instructions and helpers for instructions that need to interact with QEMU. SPM and WDR are unimplemented because they require emulation of complex peripherals. The implementation of SLEEP is very limited due to the lack of peripherals to generate wake interrupts. Memory

[Qemu-devel] [PATCH v31 1/8] target/avr: Add outward facing interfaces and core CPU logic

2019-09-15 Thread Michael Rolnik
This includes: - CPU data structures - object model classes and functions - migration functions - GDB hooks Signed-off-by: Michael Rolnik Acked-by: Igor Mammedov --- gdb-xml/avr-cpu.xml| 49 target/avr/cpu-param.h | 37 +++ target/avr/cpu-qom.h | 54 target/avr/cpu.c |