[PATCH] audio: Add sndio backend

2021-11-06 Thread Brad Smith
audio: Add sndio backend Add a sndio backend. 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.). The C code is from Alexandre Ratchov and the rest of the bits are from me. --- audio/audio.c |

Re: [PULL 0/2] Migration 20211106 patches

2021-11-06 Thread Richard Henderson
://github.com/juanquintela/qemu.git tags/migration-20211106-pull-request for you to fetch changes up to f78d4ed701454f10079461b981ba2a61a95762ab: docs: fix qemu incorrect tag (2021-11-06 12:35:38 +0100) Migration Pull request - fix

Re: [PATCH v2] linux-user: Mark cpu_loop() with noreturn attribute

2021-11-06 Thread Warner Losh
On Sat, Nov 6, 2021, 5:39 AM Philippe Mathieu-Daudé wrote: > cpu_loop() never exits, so mark it with QEMU_NORETURN. > > Reviewed-by: Richard Henderson > Reviewed-By: Warner Losh > Reviewed-by: Bin Meng > Signed-off-by: Philippe Mathieu-Daudé > --- > v2: > - rebased > - restricted to

[PULL 0/2] Migration 20211106 patches

2021-11-06 Thread Juan Quintela
-20211106-pull-request for you to fetch changes up to f78d4ed701454f10079461b981ba2a61a95762ab: docs: fix qemu incorrect tag (2021-11-06 12:35:38 +0100) Migration Pull request - fix vhost-user crash when using postcopy (me) - fix

[PULL 2/2] docs: fix qemu incorrect tag

2021-11-06 Thread Juan Quintela
From: Hyman Huang(黄勇) The patchset merged in 71864eadd9a ("migration/dirtyrate: introduce struct and adjust DirtyRateStat") was targeting QEMU 6.1 but got merged later, so correct the tag for 6.2. Signed-off-by: Hyman Huang(黄勇) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Juan Quintela

[PULL 1/2] migration: Check that postcopy fd's are not NULL

2021-11-06 Thread Juan Quintela
If postcopy has finished, it frees the array. But vhost-user unregister it at cleanup time. fixes: c4f7538 Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/postcopy-ram.c | 4 1 file changed, 4 insertions(+) diff --git a/migration/postcopy-ram.c

Re: [PULL 4/6] ui/gtk-egl: guest fb texture needs to be regenerated when reinitializing egl

2021-11-06 Thread Laurent Vivier
Le 05/11/2021 à 12:30, Gerd Hoffmann a écrit : From: Dongwon Kim If guest fb is backed by dmabuf (blob-resource), the texture bound to the old context needs to be recreated in case the egl is re-initialized (e.g. new window for vc is created in case of detaching/reattaching of the tab) v2:

[PATCH 0/2] hw: m68k: add missing virt machine types

2021-11-06 Thread Laurent Vivier
Add the machine type for 6.2, and also for 6.1 that I have missed on the previous release. Laurent Vivier (2): hw: m68: virt: Add compat machines for 6.1 hw: m68: virt: Add compat machines for 6.2 hw/m68k/virt.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) --

[PATCH 2/2] hw: m68: virt: Add compat machines for 6.2

2021-11-06 Thread Laurent Vivier
Add the missing machine type for m68k/virt Signed-off-by: Laurent Vivier --- hw/m68k/virt.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/m68k/virt.c b/hw/m68k/virt.c index 0d9e3f83c169..978c26e025a7 100644 --- a/hw/m68k/virt.c +++ b/hw/m68k/virt.c @@ -304,10

[PATCH 1/2] hw: m68: virt: Add compat machines for 6.1

2021-11-06 Thread Laurent Vivier
Add the missing machine type for m68k/virt Cc: qemu-sta...@nongnu.org Signed-off-by: Laurent Vivier --- hw/m68k/virt.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/m68k/virt.c b/hw/m68k/virt.c index 4e8bce5aa6f7..0d9e3f83c169 100644 --- a/hw/m68k/virt.c +++

Re: [PATCH v4 0/1] hw/hyperv/vmbus: Is it maintained?

2021-11-06 Thread Maciej S. Szmigiero
On 06.11.2021 14:41, Philippe Mathieu-Daudé wrote: This is the 4th time I send this patch. Is the VMBus infrastructure used / maintained? Should we deprecate & remove? $ ./scripts/get_maintainer.pl -f hw/hyperv/vmbus.c -f include/hw/hyperv/vmbus.h get_maintainer.pl: No maintainers found

Re: [PATCH v2 0/4] hw/isa: Remove unuseful qemu_allocate_irqs() call

2021-11-06 Thread BALATON Zoltan
On Sat, 6 Nov 2021, Philippe Mathieu-Daudé wrote: Cc'ing Zoltan What do I have to do with this? This was a while ago so I don't remember and it seems to not touch any of the devices I have some experience with so not sure what do you expect from me for this series. Regards, BALATON Zoltan

Re: Qemu and ARM secure state.

2021-11-06 Thread Jean-Christophe DUBOIS
One small question/remark: According to the the "Arm Power State Coordinate Interface" (DEN0022D.b) document (chapter 5) PSCI calls can only be issued by "normal world" (EL1 or EL2). Therefore, should we be adding a test for the current secure state in the arm_is_psci_call() function? This

Re: [PATCH] target/ppc, hw/ppc: Change maintainers

2021-11-06 Thread Cédric Le Goater
What we are going do will depend on inputs really. We have pseries and KVM in focus because there is still business using the software stack. TCG is extremely useful for pseries and powernv. We clearly want to keep that running and improve it. Some parts have been barely touched (and probably

Re: [PATCH] meson: Fix 'interpretor' typo

2021-11-06 Thread Laurent Vivier
Le 06/11/2021 à 15:53, Philippe Mathieu-Daudé a écrit : ping... https://lore.kernel.org/qemu-devel/20210521103423.2780345-1-phi...@redhat.com/ On Sat, Jun 5, 2021 at 9:03 PM Laurent Vivier wrote: Le 21/05/2021 à 12:34, Philippe Mathieu-Daudé a écrit : Fix a typo from commit fa2f7b0b9b7

Re: [PATCH v2 0/4] hw/isa: Remove unuseful qemu_allocate_irqs() call

2021-11-06 Thread Philippe Mathieu-Daudé
Cc'ing Zoltan On 5/11/21 06:06, Philippe Mathieu-Daudé wrote: > I started to fix the LeakSanitizer error in piix4_realize(), > then looked for similar pattern and found 2 other places. > The older is i82378 (historically the first one) which then > spread. > > Since v1: > - rebased > - removed

Re: [PATCH 00/11] exec: Restrict various system emulation specific headers (to sysemu)

2021-11-06 Thread Philippe Mathieu-Daudé
6 months passed, heavy rebased required, dropping for now. On 5/25/21 16:13, Philippe Mathieu-Daudé wrote: > Ping for review? :) > > On 5/17/21 1:11 PM, Philippe Mathieu-Daudé wrote: >> Hi, >> >> This series restricts various system emulation specific headers >> by moving them under sysemu/ and

Re: [PATCH] meson: Fix 'interpretor' typo

2021-11-06 Thread Philippe Mathieu-Daudé
ping... https://lore.kernel.org/qemu-devel/20210521103423.2780345-1-phi...@redhat.com/ On Sat, Jun 5, 2021 at 9:03 PM Laurent Vivier wrote: > > Le 21/05/2021 à 12:34, Philippe Mathieu-Daudé a écrit : > > Fix a typo from commit fa2f7b0b9b7 ("meson: Warn when TCI is > > selected but TCG backend

[PATCH-for-6.2 v2] hw/mem/pc-dimm: Restrict NUMA-specific code to NUMA machines

2021-11-06 Thread Philippe Mathieu-Daudé
When trying to use the pc-dimm device on a non-NUMA machine, we get: $ qemu-system-arm -M none -cpu max -S \ -object memory-backend-file,id=mem1,size=1M,mem-path=/tmp/1m \ -device pc-dimm,id=dimm1,memdev=mem1 Segmentation fault (core dumped) (gdb) bt #0 pc_dimm_realize

Chardev: delete the QemuOpts reserved in vm_config_groups

2021-11-06 Thread ????????????
We have found that qemu cannot plug in the previously unplugged device. start qemu with the following command: ./qemu-system-x86_64 -enable-kvm -m 8192 -smp 16 \ -object memory-backend-file,id=mem,size=8192M,mem-path=/dev/hugepages,share=on \ -numa node,memdev=mem -mem-prealloc \ ...

Re: [PATCH] tests/vm/freebsd: Increase code coverage

2021-11-06 Thread Philippe Mathieu-Daudé
On 6/15/21 19:40, Wainer dos Santos Moschetta wrote: > Hi, > > On 6/15/21 2:19 PM, Daniel P. Berrangé wrote: >> On Tue, Jun 15, 2021 at 06:02:02PM +0100, Daniel P. Berrangé wrote: >>> On Mon, May 31, 2021 at 05:53:25PM -0300, Wainer dos Santos Moschetta >>> wrote: Hi, On 5/31/21

[PATCH v4 1/1] hw/hyperv/vmbus: Remove unused vmbus_load/save_req()

2021-11-06 Thread Philippe Mathieu-Daudé
vmbus_save_req() and vmbus_load_req() are not used. Remove them to avoid maintaining dead code. This partially reverts commit 4dd8a7064b8a6527f99a62be11 ("vmbus: add infrastructure to save/load vmbus requests"). Signed-off-by: Philippe Mathieu-Daudé --- include/hw/hyperv/vmbus.h | 3 --

[PATCH v4 0/1] hw/hyperv/vmbus: Is it maintained?

2021-11-06 Thread Philippe Mathieu-Daudé
This is the 4th time I send this patch. Is the VMBus infrastructure used / maintained? Should we deprecate & remove? $ ./scripts/get_maintainer.pl -f hw/hyperv/vmbus.c -f include/hw/hyperv/vmbus.h get_maintainer.pl: No maintainers found Philippe Mathieu-Daudé (1): hw/hyperv/vmbus: Remove

Re: Qemu and ARM secure state.

2021-11-06 Thread Jean-Christophe DUBOIS
So it seems that what is needed is a way to choose on the command line if we want to enable the Qemu built-in PSCI implementation (because we are booting linux for example) or if we really want a bare metal processor (because we are booting a trustedOS like optee). The "virt" platform allows

Re: [PATCH v4 1/2] vhost: Rename last_index to vq_index_end

2021-11-06 Thread Juan Quintela
Eugenio Pérez wrote: > The doc of this field pointed out that last_index is the last vq index. > This is misleading, since it's actually one past the end of the vqs. > > Renaming and modifying comment. > > Signed-off-by: Eugenio Pérez Reviewed-by: Juan Quintela

Re: [PULL 07/20] migration/dirtyrate: implement dirty-ring dirtyrate calculation

2021-11-06 Thread Juan Quintela
Philippe Mathieu-Daudé wrote: > Hi Juan, > > On 11/1/21 23:08, Juan Quintela wrote: >> From: Hyman Huang(黄勇) >> >> use dirty ring feature to implement dirtyrate calculation. >> >> introduce mode option in qmp calc_dirty_rate to specify what >> method should be used when calculating

[PATCH v2] linux-user: Mark cpu_loop() with noreturn attribute

2021-11-06 Thread Philippe Mathieu-Daudé
cpu_loop() never exits, so mark it with QEMU_NORETURN. Reviewed-by: Richard Henderson Reviewed-By: Warner Losh Reviewed-by: Bin Meng Signed-off-by: Philippe Mathieu-Daudé --- v2: - rebased - restricted to linux-user Supersedes: <20210905000429.1097336-1-f4...@amsat.org> ---

Re: [PATCH v7 0/2] memory: Have 'info mtree' remove duplicated Address Space information

2021-11-06 Thread Philippe Mathieu-Daudé
Ping? On 9/5/21 01:10, Philippe Mathieu-Daudé wrote: > Series fully reviewed. > > Follow Peter Maydell suggestions: > - Split mtree_info() as mtree_info_flatview() + mtree_info_as() > - Remove duplicated Address Space information > > Since v6: > - Added missing vertical whitespace (rth) > -

Re: [PATCH] docs: fix qemu incorrect tag

2021-11-06 Thread Juan Quintela
huang...@chinatelecom.cn wrote: > From: Hyman Huang(黄勇) > > The last modification of the patchset may be 2 month before > merging dirtyrate implementation, it used the wrong tag, so > fix with 6.2. > > Signed-off-by: Hyman Huang(黄勇) Reviewed-by: Juan Quintela queued.

Lei: a new tool for filtering patch series

2021-11-06 Thread Stefan Hajnoczi
Hi, lore.kernel.org has been archiving qemu-devel for some time. You can use b4 (https://pypi.org/project/b4/) to easily apply patch series. Now there is a new tool called lei that could be of interest to the QEMU community. lei let's you query the mailing list for patch series that match queries

[PATCH v2] tcg: Remove TCI experimental status

2021-11-06 Thread Philippe Mathieu-Daudé
The following commits (released in v6.0.0) made raised the quality of the TCI backend to the other TCG architectures, thus is is not considerated experimental anymore: - c6fbea47664..2f74f45e32b - dc09f047edd..9e9acb7b348 - b6139eb0578..2fc6f16ca5e - dbcbda2cd84..5e8892db93f Signed-off-by:

[PATCH] hw/timer/etraxfs_timer: Add vmstate for ETRAX timers

2021-11-06 Thread Philippe Mathieu-Daudé
Add the vmstate for the ETRAX timers. This is in theory a migration compatibility break for the 'AXIS devboard 88' CRIS machine. Signed-off-by: Philippe Mathieu-Daudé --- hw/timer/etraxfs_timer.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff

Emulation of solo key

2021-11-06 Thread Niraj Sorathiya
Hello Team, I really need your suggestions on how I should proceed to build a Solo key emulator ? Since I am new to QEMU , I would like to know how I should do planing before getting into technical of QEMU Please find all information about solo key below: Docs:

Re: Qemu and ARM secure state.

2021-11-06 Thread Jean-Christophe DUBOIS
So, I am trying to understand: Contrary to what I said, In my case the SMC instruction is not really a "no-op" as it sets R0 to -1 (0x) to indicate an unknown PSCI service (by the Qemu internal PSCI handler). With the new code introduced by the "arm: tcg: Adhere to SMCCC 1.3 section

Re: [PATCH] target/ppc, hw/ppc: Change maintainers

2021-11-06 Thread Philippe Mathieu-Daudé
On 11/6/21 00:00, Cédric Le Goater wrote: >> In term of the MAINTAINERS file: >> >> S: Status, one of the following: >>     Supported:   Someone is actually paid to look after this. >>     Maintained:  Someone actually looks after it. >> >> The PPC entries have a

Re: [PATCH] target/ppc, hw/ppc: Change maintainers

2021-11-06 Thread Philippe Mathieu-Daudé
On 11/5/21 21:05, Daniel Henrique Barboza wrote: > On 11/5/21 16:16, Philippe Mathieu-Daudé wrote: >> Hi Daniel, >> >> On 11/5/21 10:48, Daniel Henrique Barboza wrote: >>> On 11/5/21 00:46, David Gibson wrote: As our day jobs and interests have moved onto other things, Greg and I have

[PATCH] tests/avocado: Remove p7zip binary availability check

2021-11-06 Thread Philippe Mathieu-Daudé
The single use of the 7z binary has been removed in commit a30e114f3 ("tests/acceptance: remove Armbian 19.11.3 test for orangepi-pc"), we don't need to check for this binary availability anymore. Signed-off-by: Philippe Mathieu-Daudé --- Based-on: <20211105155354.154864-1-willi...@redhat.com>

Re: [PATCH] target/ppc, hw/ppc: Change maintainers

2021-11-06 Thread David Gibson
On Sat, Nov 06, 2021 at 09:28:54AM +0100, Cédric Le Goater wrote: > > > > > Thank you and Greg and Red Hat for all the years of service supporting > > > > > qemu-ppc in the community. IBM will shoulder this responsibility now. > > > > > > > > In term of the MAINTAINERS file: > > > > > > > >

Re: [PATCH] target/ppc, hw/ppc: Change maintainers

2021-11-06 Thread Cédric Le Goater
Thank you and Greg and Red Hat for all the years of service supporting qemu-ppc in the community. IBM will shoulder this responsibility now. In term of the MAINTAINERS file: S: Status, one of the following: Supported: Someone is actually paid to look after this.

Re: Artificially target-dependend compiles

2021-11-06 Thread Markus Armbruster
Paolo Bonzini writes: > On 11/5/21 14:45, Markus Armbruster wrote: >> Moving these definitions to machine-target.json moves the generated C >> from qapi/qapi-*-machine.[ch] to qapi/qapi-*-machine-target.[ch], where >> CONFIG_ACPI_VMGENID is okay. It also makes qmp_query_vm_generation_id() >>

Re: [PATCH v4 6/7] hw/nvram: Update at24c EEPROM init function in NPCM7xx boards

2021-11-06 Thread Markus Armbruster
Hao Wu writes: > We made 3 changes to the at24c_eeprom_init function in > npcm7xx_boards.c: > > 1. We allow the function to take a I2CBus* as parameter. This allows >us to attach an EEPROM device behind an I2C mux which is not >possible with the old method. > > 2. We make at24c EEPROMs

Re: [PATCH v4 5/7] blockdev: Add a new IF type IF_OTHER

2021-11-06 Thread Markus Armbruster
Hao Wu writes: > This type is used to represent block devs that are not suitable to > be represented by other existing types. Hinting at intended use wouldn't hurt: ", such as " > > Signed-of-by: Hao Wu > --- > blockdev.c| 3 ++- > include/sysemu/blockdev.h | 1 + > meson

Re: [PATCH v3 03/12] vfio-user: define vfio-user-server object

2021-11-06 Thread Markus Armbruster
Kevin Wolf writes: > Am 05.11.2021 um 11:08 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > Am 04.11.2021 um 13:13 hat Markus Armbruster geschrieben: >> >> The old syntax almost always has its quirks. Ideally, we'd somehow get >> >> from quirky old to boring new in an orderly