[PATCH v4] target/arm: Add Neoverse-N1 registers

2023-03-12 Thread Chen Baozi
Add implementation defined registers for neoverse-n1 which would be accessed by TF-A. Since there is no DSU in Qemu, CPUCFR_EL1.SCU bit is set to 1 to avoid DSU registers definition. Signed-off-by: Chen Baozi --- target/arm/cpu64.c | 69 ++ 1 file

RE: [PATCH] intel-iommu: Set status bit after operation completed

2023-03-12 Thread Duan, Zhenzhong
>-Original Message- >From: Peter Xu >Sent: Friday, March 10, 2023 10:29 PM >To: Duan, Zhenzhong >Cc: qemu-devel@nongnu.org; m...@redhat.com; jasow...@redhat.com; >pbonz...@redhat.com; richard.hender...@linaro.org; edua...@habkost.net; >marcel.apfelb...@gmail.com >Subject: Re: [PATCH]

Re: [PATCH v7 3/6] memory: Introduce memory_region_transaction_do_commit()

2023-03-12 Thread Chuang Xu
Hi, Peter, On 2023/3/10 下午10:51, Peter Xu wrote: On Fri, Mar 10, 2023 at 10:24:22AM +0800, Chuang Xu wrote: Split memory_region_transaction_do_commit() from memory_region_transaction_commit(). We'll call do_commit() in address_space_to_flatview() in the later patch. Signed-off-by: Chuang Xu

Re: [RFC QEMU PATCH 08/18] virtio-gpu: Initialize Venus

2023-03-12 Thread Dmitry Osipenko
On 3/12/23 20:51, Dmitry Osipenko wrote: > On 3/12/23 12:22, Huang Rui wrote: >> From: Antonio Caggiano >> >> Request Venus when initializing VirGL. >> >> Signed-off-by: Antonio Caggiano >> --- >> hw/display/virtio-gpu-virgl.c | 4 >> 1 file changed, 4 insertions(+) >> >> diff --git

Re: [PATCH-for-8.0] gitlab-ci: Remove job building EDK2 firmware binaries

2023-03-12 Thread Bin Meng
On Fri, Mar 10, 2023 at 9:50 PM Philippe Mathieu-Daudé wrote: > > On 10/3/23 14:38, Peter Maydell wrote: > > On Fri, 10 Mar 2023 at 13:33, Philippe Mathieu-Daudé > > wrote: > >> > >> When we introduced this Gitlab-CI job in commit 71920809ce > >> ("gitlab-ci.yml: Add jobs to build EDK2 firmware

Re: [PATCH v2 07/10] contrib/gitdm: add Alibaba to the domain-map

2023-03-12 Thread Xuan Zhuo
On Fri, 10 Mar 2023 18:03:29 +, =?utf-8?q?Alex_Benn=C3=A9e?= wrote: > This replaces the previous attempt to add c-sky.com so I've dropped > the review/ack tags. Group everything under Alibaba now. > > Added as requested by LIU Zhiwei. > > Signed-off-by: Alex Bennée > Cc: LIU Zhiwei > Cc:

Re: [PATCH v2 07/10] contrib/gitdm: add Alibaba to the domain-map

2023-03-12 Thread LIU Zhiwei
On 2023/3/11 2:03, Alex Bennée wrote: This replaces the previous attempt to add c-sky.com so I've dropped the review/ack tags. Group everything under Alibaba now. Added as requested by LIU Zhiwei. Signed-off-by: Alex Bennée Cc: LIU Zhiwei Cc: Xuan Zhuo Cc: Guo Ren ---

[PATCH v2] include/block: fixup typos

2023-03-12 Thread Wilfred Mallawa
From: Wilfred Mallawa Fixup a few minor typos Signed-off-by: Wilfred Mallawa --- v2: - Fixup typo in commit msg. include/block/aio-wait.h | 2 +- include/block/block_int-common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/block/aio-wait.h

[PATCH] include/blcok: fixup typos

2023-03-12 Thread Wilfred Mallawa
From: Wilfred Mallawa Fixup a few minor typos Signed-off-by: Wilfred Mallawa --- include/block/aio-wait.h | 2 +- include/block/block_int-common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/block/aio-wait.h b/include/block/aio-wait.h index

Re: [PATCH v2 6/6] monitor: convert monitor_cleanup() to AIO_WAIT_WHILE_UNLOCKED()

2023-03-12 Thread Wilfred Mallawa
On Thu, 2023-03-09 at 14:08 -0500, Stefan Hajnoczi wrote: > monitor_cleanup() is called from the main loop thread. Calling > AIO_WAIT_WHILE(qemu_get_aio_context(), ...) from the main loop thread > is > equivalent to AIO_WAIT_WHILE_UNLOCKED(NULL, ...) because neither > unlocks > the AioContext and

Re: [PATCH v2 5/6] hmp: convert handle_hmp_command() to AIO_WAIT_WHILE_UNLOCKED()

2023-03-12 Thread Wilfred Mallawa
On Thu, 2023-03-09 at 14:08 -0500, Stefan Hajnoczi wrote: > The HMP monitor runs in the main loop thread. Calling > AIO_WAIT_WHILE(qemu_get_aio_context(), ...) from the main loop thread > is > equivalent to AIO_WAIT_WHILE_UNLOCKED(NULL, ...) because neither > unlocks > the AioContext and the

Re: [PATCH v2 4/6] block: convert bdrv_drain_all_begin() to AIO_WAIT_WHILE_UNLOCKED()

2023-03-12 Thread Wilfred Mallawa
On Thu, 2023-03-09 at 14:08 -0500, Stefan Hajnoczi wrote: > Since the AioContext argument was already NULL, AIO_WAIT_WHILE() was > never going to unlock the AioContext. Therefore it is possible to > replace AIO_WAIT_WHILE() with AIO_WAIT_WHILE_UNLOCKED(). > > Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 3/6] block: convert bdrv_graph_wrlock() to AIO_WAIT_WHILE_UNLOCKED()

2023-03-12 Thread Wilfred Mallawa
On Thu, 2023-03-09 at 14:08 -0500, Stefan Hajnoczi wrote: > The following conversion is safe and does not change behavior: > > GLOBAL_STATE_CODE(); > ... >   -  AIO_WAIT_WHILE(qemu_get_aio_context(), ...); >   +  AIO_WAIT_WHILE_UNLOCKED(NULL, ...); > > Since we're in

Re: [PATCH v2 2/6] block: convert blk_exp_close_all_type() to AIO_WAIT_WHILE_UNLOCKED()

2023-03-12 Thread Wilfred Mallawa
On Thu, 2023-03-09 at 14:08 -0500, Stefan Hajnoczi wrote: > There is no change in behavior. Switch to AIO_WAIT_WHILE_UNLOCKED() > instead of AIO_WAIT_WHILE() to document that this code has already > been > audited and converted. The AioContext argument is already NULL so > aio_context_release() is

Re: [PATCH v2 1/6] block: don't acquire AioContext lock in bdrv_drain_all()

2023-03-12 Thread Wilfred Mallawa
On Thu, 2023-03-09 at 14:08 -0500, Stefan Hajnoczi wrote: > There is no need for the AioContext lock in bdrv_drain_all() because > nothing in AIO_WAIT_WHILE() needs the lock and the condition is > atomic. > > AIO_WAIT_WHILE_UNLOCKED() has no use for the AioContext parameter > other > than

[PATCH] xen: fix dm_restrict startup

2023-03-12 Thread Jason Andryuk
QEMU is failing to signal it start when launched by libxl with dm_restrict=1. When xenstore_record_dm_state() is called, the restrictions prevent xs_open() from succeeding. QEMU can't write running to the xenstore, and libxl fails the VM start up. Pass in a open xenstore connection. Let the

Re: [PATCH 04/45] target/riscv: Refactor some of the generic vector functionality

2023-03-12 Thread Wilfred Mallawa
On Fri, 2023-03-10 at 09:11 +, Lawrence Hunter wrote: > From: Kiran Ostrolenk > > This refactoring ensures these functions/macros can be used by both > vector and vector-crypto helpers (latter implemented in proceeding > commit). > > Signed-off-by: Kiran Ostrolenk > --- >  

Re: [PATCH v2 0/6] Resolve TYPE_PIIX3_XEN_DEVICE

2023-03-12 Thread Bernhard Beschow
Am 12. März 2023 21:02:03 UTC schrieb Chuck Zmudzinski : >On 3/12/23 5:22 AM, Bernhard Beschow wrote: >> >> >> Am 11. März 2023 22:20:29 UTC schrieb Chuck Zmudzinski : >>>On 2/9/2023 4:53 PM, Bernhard Beschow wrote: Am 1. Februar 2023 08:11:10 UTC schrieb Bernhard Beschow : >

Re: [PATCH v2 09/10] contrib/gitdm: add more individual contributors

2023-03-12 Thread Bernhard Beschow
Am 10. März 2023 18:03:31 UTC schrieb "Alex Bennée" : >I'll only add names explicitly acked here. Let me know if you want >contributions mapped to a company instead. > >Signed-off-by: Alex Bennée >Cc: Bernhard Beschow >Cc: Amarjargal Gundjalam >Cc: Bin Meng >Cc: Jason A. Donenfeld >Cc:

Re: [PATCH v2] hw/riscv: Fix the bug of max size limit when put initrd to RAM

2023-03-12 Thread Daniel Henrique Barboza
Hi, First, all patches in QEMU must also go to to the general mailing list (qemu-devel) as well. I'm adding it in the CC in this reply. Sorry to not mentioning it in the first version - I noticed that you didn't CC qemu-devel here, and in v1, just now when replying to this patch. As for the

[PATCH v7 0/8] igb: merge changes from <20221229190817.25500-1-sriram.yagnara...@est.tech>

2023-03-12 Thread Sriram Yagnaraman
Now that Akhiko's patchset for introducing igb device is merged, I have rebased my changes on master. The changes proposed here adds support for - Correct PF/VF reset handling - Introduce ICR_RXDW register definition - Impement support for VFTE/VFRE/VMOLR_RSSE/VMVIR/VMOLR registers - Check

[PATCH v7 4/8] igb: implement VFRE and VFTE registers

2023-03-12 Thread Sriram Yagnaraman
Also introduce: - Checks for RXDCTL/TXDCTL queue enable bits - IGB_NUM_VM_POOLS enum (Sec 1.5: Table 1-7) Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 38 +++--- hw/net/igb_core.h | 1 + hw/net/igb_regs.h | 3 +++ 3 files changed, 35 insertions(+),

[PATCH v7 7/8] igb: implement VF Tx and Rx stats

2023-03-12 Thread Sriram Yagnaraman
Please note that loopback counters for VM to VM traffic is not implemented yet: VFGOTLBC, VFGPTLBC, VFGORLBC and VFGPRLBC. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/hw/net/igb_core.c

[PATCH v7 5/8] igb: check oversized packets for VMDq

2023-03-12 Thread Sriram Yagnaraman
Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 41 - 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index b2ea3a18ed..cb6993dd3b 100644 --- a/hw/net/igb_core.c +++ b/hw/net/igb_core.c @@

[PATCH v7 2/8] igb: handle PF/VF reset properly

2023-03-12 Thread Sriram Yagnaraman
Use PFRSTD to reset RSTI bit for VFs, and raise VFLRE interrupt when VF is reset. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 33 + hw/net/igb_regs.h | 3 +++ hw/net/trace-events | 2 ++ 3 files changed, 26 insertions(+), 12 deletions(-) diff

[PATCH v7 3/8] igb: add ICR_RXDW

2023-03-12 Thread Sriram Yagnaraman
IGB uses RXDW ICR bit to indicate that rx descriptor has been written back. This is the same as RXT0 bit in older HW. Signed-off-by: Sriram Yagnaraman --- hw/net/e1000x_regs.h | 4 hw/net/igb_core.c| 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v7 1/8] MAINTAINERS: Add Sriram Yagnaraman as a igb reviewer

2023-03-12 Thread Sriram Yagnaraman
I would like to review and be informed on changes to igb device Signed-off-by: Sriram Yagnaraman --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 95c957d587..70685c9dab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2251,6 +2251,7 @@ F:

[PATCH v7 8/8] igb: respect VMVIR and VMOLR for VLAN

2023-03-12 Thread Sriram Yagnaraman
Add support for stripping/inserting VLAN for VFs. Had to move CSUM calculation back into the for loop, since packet data is pulled inside the loop based on strip VLAN decision for every VF. net_rx_pkt_fix_l4_csum should be extended to accept a buffer instead for igb. Work for a future patch.

[PATCH 1/2] cpu, qapi, target/arm, i386, s390x: Refactor query-cpu-model-expansion

2023-03-12 Thread Dinah Baum
This patch enables 'query-cpu-model-expansion' on all architectures. Only architectures that implement the command will return results, others will return an error message as before. This patch lays the groundwork for parsing a -cpu cpu,help option as specified in

[PATCH 0/2] *** Enable -cpu ,help ***

2023-03-12 Thread Dinah Baum
This patch series enables printing the CPU options using '-cpu cpu,help' as requested in https://gitlab.com/qemu-project/qemu/-/issues/1480 Sample output: athlon features: 3dnow= 3dnowext= 3dnowprefetch= ... Part 1 is a refactor patch that enables query-cpu-model-expansion on all

[PATCH 2/2] cpu, qdict, vl: Enable printing options for CPU type

2023-03-12 Thread Dinah Baum
Change parsing of -cpu argument to allow -cpu cpu,help to print options for the CPU type similar to how the '-device' option works. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1480 Signed-off-by: Dinah Baum --- cpu.c | 41 +++

Re: [PATCH v2 0/6] Resolve TYPE_PIIX3_XEN_DEVICE

2023-03-12 Thread Chuck Zmudzinski
On 3/12/23 5:22 AM, Bernhard Beschow wrote: > > > Am 11. März 2023 22:20:29 UTC schrieb Chuck Zmudzinski : >>On 2/9/2023 4:53 PM, Bernhard Beschow wrote: >>> Am 1. Februar 2023 08:11:10 UTC schrieb Bernhard Beschow >>> : >>> > >>> > >>> >Am 24. Januar 2023 17:07:30 UTC schrieb Bernhard Beschow

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread BALATON Zoltan
On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 12.03.23 um 16:34 schrieb BALATON Zoltan: On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 12.03.23 um 14:23 schrieb BALATON Zoltan: On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 11.03.23 um 23:54 schrieb BALATON Zoltan: Hello, I've noticed before

Re: [PATCH] pci: add enforce_slot_reserved_mask_manual property

2023-03-12 Thread Chuck Zmudzinski
On 3/12/2023 10:13 AM, Mark Cave-Ayland wrote: > On 06/03/2023 16:37, Chuck Zmudzinski wrote: > > > On 1/28/2023 4:58 PM, Mark Cave-Ayland wrote: > >> On 28/01/2023 03:39, Chuck Zmudzinski wrote: > >> > >>> On 1/27/2023 8:28 AM, Michael S. Tsirkin wrote: > On Sun, Jan 15, 2023 at 07:49:51PM

[PATCH 0/2] util: Add thread-safe qemu_strerror() function

2023-03-12 Thread Yohei Kojima
This patch series adds qemu_strerror() function, which is thread-safe version of the libc strerror(). The first patch adds the qemu_strerror() funciton, and the second patch replaces strerror() function in linux-user/* with qemu_strerror() function. Because it involves thread-safety, and the

[PATCH 2/2] linux-user: replace strerror() function to the thread safe qemu_strerror()

2023-03-12 Thread Yohei Kojima
strerror() is not guaranteed to be thread-safe as described in (https://gitlab.com/qemu-project/qemu/-/issues/416). This commit changes files under /linux-user that call strerror() to call the safer qemu_strerror(). Signed-off-by: Yohei Kojima --- linux-user/elfload.c | 4 ++--

[PATCH 1/2] util: Add thread-safe qemu_strerror() function

2023-03-12 Thread Yohei Kojima
Add qemu_strerror() which follows the POSIX specification for strerror(). While strerror() is not guaranteed to be thread-safe, this function is thread-safe. This function is added to solve the following issue: https://gitlab.com/qemu-project/qemu/-/issues/416 Signed-off-by: Yohei Kojima ---

Re: [PULL 13/27] hw/xen: Add xenstore operations to allow redirection to internal emulation

2023-03-12 Thread Jason Andryuk
On Tue, Mar 7, 2023 at 1:29 PM David Woodhouse wrote: > > From: Paul Durrant > > Signed-off-by: Paul Durrant > Signed-off-by: David Woodhouse > Reviewed-by: Paul Durrant > --- > accel/xen/xen-all.c | 11 +- > hw/char/xen_console.c | 2 +- >

Re: [RFC QEMU PATCH 08/18] virtio-gpu: Initialize Venus

2023-03-12 Thread Dmitry Osipenko
On 3/12/23 12:22, Huang Rui wrote: > From: Antonio Caggiano > > Request Venus when initializing VirGL. > > Signed-off-by: Antonio Caggiano > --- > hw/display/virtio-gpu-virgl.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/hw/display/virtio-gpu-virgl.c

Re: [PATCH] tests/qtest/migration-test: Disable migration/multifd/tcp/plain/cancel

2023-03-12 Thread Peter Maydell
On Sun, 12 Mar 2023 at 14:06, Peter Maydell wrote: > > On Tue, 7 Mar 2023 at 09:53, Peter Maydell wrote: > > > > On Sat, 4 Mar 2023 at 15:39, Peter Maydell wrote: > > > > > > On Thu, 2 Mar 2023 at 17:22, Peter Maydell > > > wrote: > > > > > > > > migration-test has been flaky for a long time,

Re: [PULL 0/3] Block layer patches

2023-03-12 Thread Peter Maydell
On Fri, 10 Mar 2023 at 17:55, Kevin Wolf wrote: > > The following changes since commit ee59483267de29056b5b2ee2421ef3844e5c9932: > > Merge tag 'qemu-openbios-20230307' of https://github.com/mcayland/qemu into > staging (2023-03-09 16:55:03 +) > > are available in the Git repository at: > >

Re: [PULL 00/28] Linux user for 8.0 patches

2023-03-12 Thread Peter Maydell
On Fri, 10 Mar 2023 at 22:12, Laurent Vivier wrote: > > The following changes since commit 817fd33836e73812df2f1907612b57750fcb9491: > > Merge tag 'audio-pull-request' of https://gitlab.com/marcandre.lureau/qemu > into staging (2023-03-06 14:06:06 +) > > are available in the Git repository

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread Volker Rümelin
Am 12.03.23 um 16:34 schrieb BALATON Zoltan: On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 12.03.23 um 14:23 schrieb BALATON Zoltan: On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 11.03.23 um 23:54 schrieb BALATON Zoltan: Hello, I've noticed before that since commit a806f95904cdb audio plays

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread BALATON Zoltan
On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 12.03.23 um 14:23 schrieb BALATON Zoltan: On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 11.03.23 um 23:54 schrieb BALATON Zoltan: Hello, I've noticed before that since commit a806f95904cdb audio plays slower (like half speed) under AmigaOS on

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread Volker Rümelin
Am 12.03.23 um 14:23 schrieb BALATON Zoltan: On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 11.03.23 um 23:54 schrieb BALATON Zoltan: Hello, I've noticed before that since commit a806f95904cdb audio plays slower (like half speed) under AmigaOS on sam460ex with ES1370 but I did not have any

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread Volker Rümelin
Am 12.03.23 um 15:09 schrieb Rene Engel: Tested with -audiodev coreaudio,id=audio0,out.buffer-count=1 to 12 1 is too slow the rest up to 12 has no effect The sampling frequency of the via-ac97 driver is 48000 Hz under AmigaOs4.1 Any other ideas? In audio/audio_template.h in the AUD_open_

Re: [PATCH] pci: add enforce_slot_reserved_mask_manual property

2023-03-12 Thread Mark Cave-Ayland
On 06/03/2023 16:37, Chuck Zmudzinski wrote: On 1/28/2023 4:58 PM, Mark Cave-Ayland wrote: On 28/01/2023 03:39, Chuck Zmudzinski wrote: On 1/27/2023 8:28 AM, Michael S. Tsirkin wrote: On Sun, Jan 15, 2023 at 07:49:51PM -0500, Chuck Zmudzinski wrote: The current reserved slot check in

Re: [PATCH] tests/qtest/migration-test: Disable migration/multifd/tcp/plain/cancel

2023-03-12 Thread Peter Maydell
On Tue, 7 Mar 2023 at 09:53, Peter Maydell wrote: > > On Sat, 4 Mar 2023 at 15:39, Peter Maydell wrote: > > > > On Thu, 2 Mar 2023 at 17:22, Peter Maydell wrote: > > > > > > migration-test has been flaky for a long time, both in CI and > > > otherwise: > > > > > > > > > > In the cases where

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread BALATON Zoltan
On Sun, 12 Mar 2023, Volker Rümelin wrote: Am 11.03.23 um 23:54 schrieb BALATON Zoltan: Hello, I've noticed before that since commit a806f95904cdb audio plays slower (like half speed) under AmigaOS on sam460ex with ES1370 but I did not have any other guests to reproduce it and verify this

[PATCH v4] target/riscv: fix H extension TVM trap

2023-03-12 Thread Yi Chen
- Trap satp/hgatp accesses from HS-mode when MSTATUS.TVM is enabled. - Trap satp accesses from VS-mode when HSTATUS.VTVM is enabled. - Raise RISCV_EXCP_ILLEGAL_INST when U-mode executes SFENCE.VMA/SINVAL.VMA. - Raise RISCV_EXCP_VIRT_INSTRUCTION_FAULT when VU-mode executes SFENCE.VMA/SINVAL.VMA

[PATCH v3 4/6] hw/isa/piix3: Avoid Xen-specific variant of piix3_write_config()

2023-03-12 Thread Bernhard Beschow
Subscribe to pci_bus_fire_intx_routing_notifier() instead which allows for having a common piix3_write_config() for the PIIX3 device models. While at it, move the subscription into machine code to facilitate resolving TYPE_PIIX3_XEN_DEVICE. In a possible future followup,

[PATCH v3 2/6] hw/isa/piix3: Reuse piix3_realize() in piix3_xen_realize()

2023-03-12 Thread Bernhard Beschow
This is a preparational patch for the next one to make the following more obvious: First, pci_bus_irqs() is now called twice in case of Xen where the second call overrides the pci_set_irq_fn with the Xen variant. Second, pci_bus_set_route_irq_fn() is now also called in Xen mode. Signed-off-by:

[PATCH v3 1/6] include/hw/xen/xen: Rename xen_piix3_set_irq() to xen_intx_set_irq()

2023-03-12 Thread Bernhard Beschow
xen_piix3_set_irq() isn't PIIX specific: PIIX is a single PCI device while xen_piix3_set_irq() maps multiple PCI devices to their respective IRQs, which is board-specific. Rename xen_piix3_set_irq() to communicate this. Also rename XEN_PIIX_NUM_PIRQS to XEN_IOAPIC_NUM_PIRQS since the Xen's IOAPIC

[PATCH v3 5/6] hw/isa/piix3: Resolve redundant k->config_write assignments

2023-03-12 Thread Bernhard Beschow
The previous patch unified handling of piix3_write_config() accross the PIIX3 device models which allows for assigning k->config_write once in the base class. Signed-off-by: Bernhard Beschow Reviewed-by: Michael S. Tsirkin --- hw/isa/piix3.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v3 6/6] hw/isa/piix3: Resolve redundant TYPE_PIIX3_XEN_DEVICE

2023-03-12 Thread Bernhard Beschow
During the last patches, TYPE_PIIX3_XEN_DEVICE turned into a clone of TYPE_PIIX3_DEVICE. Remove this redundancy. Signed-off-by: Bernhard Beschow Reviewed-by: Michael S. Tsirkin --- include/hw/southbridge/piix.h | 1 - hw/i386/pc_piix.c | 5 ++--- hw/isa/piix3.c|

[PATCH v3 3/6] hw/isa/piix3: Wire up Xen PCI IRQ handling outside of PIIX3

2023-03-12 Thread Bernhard Beschow
xen_intx_set_irq() doesn't depend on PIIX3State. In order to resolve TYPE_PIIX3_XEN_DEVICE and in order to make Xen agnostic about the precise south bridge being used, set up Xen's PCI IRQ handling of PIIX3 in the board. Signed-off-by: Bernhard Beschow Reviewed-by: Michael S. Tsirkin ---

[PATCH v3 0/6] Resolve TYPE_PIIX3_XEN_DEVICE

2023-03-12 Thread Bernhard Beschow
There is currently a dedicated PIIX3 device model for use under Xen. By reusing existing PCI API during initialization this device model can be eliminated and the plain PIIX3 device model can be used instead. Resolving TYPE_PIIX3_XEN_DEVICE results in less code while also making Xen agnostic

Re: [PULL 0/5] gitdm updates

2023-03-12 Thread Peter Maydell
On Sun, 12 Mar 2023 at 08:50, Alex Bennée wrote: > > > Alex Bennée writes: > > > The following changes since commit ee59483267de29056b5b2ee2421ef3844e5c9932: > > > > Merge tag 'qemu-openbios-20230307' of https://github.com/mcayland/qemu > > into staging (2023-03-09 16:55:03 +) > > > > are

Re: [PULL 0/5] gitdm updates

2023-03-12 Thread Peter Maydell
On Fri, 10 Mar 2023 at 15:57, Alex Bennée wrote: > > The following changes since commit ee59483267de29056b5b2ee2421ef3844e5c9932: > > Merge tag 'qemu-openbios-20230307' of https://github.com/mcayland/qemu into > staging (2023-03-09 16:55:03 +) > > are available in the Git repository at: >

Re: [PULL V2 00/44] Net patches

2023-03-12 Thread Peter Maydell
On Fri, 10 Mar 2023 at 09:35, Jason Wang wrote: > > The following changes since commit ee59483267de29056b5b2ee2421ef3844e5c9932: > > Merge tag 'qemu-openbios-20230307' of https://github.com/mcayland/qemu into > staging (2023-03-09 16:55:03 +) > > are available in the git repository at: > >

Re: Audio playback speed issue on sam460ex and pegasos2

2023-03-12 Thread Volker Rümelin
Am 11.03.23 um 23:54 schrieb BALATON Zoltan: Hello, I've noticed before that since commit a806f95904cdb audio plays slower (like half speed) under AmigaOS on sam460ex with ES1370 but I did not have any other guests to reproduce it and verify this with so I did not report that yet. Now that

Re: [PATCH v3] target/riscv: fix H extension TVM trap

2023-03-12 Thread liweiwei
On 2023/3/11 00:42, Yi Chen wrote: - Trap satp/hgatp accesses from HS-mode when MSTATUS.TVM is enabled. - Trap satp accesses from VS-mode when HSTATUS.VTVM is enabled. - Raise RISCV_EXCP_ILLEGAL_INST when U-mode executes SFENCE.VMA/SINVAL.VMA. - Raise RISCV_EXCP_VIRT_INSTRUCTION_FAULT when

[RFC QEMU PATCH 00/18] Add VirtIO GPU and Passthrough GPU support on Xen

2023-03-12 Thread Huang Rui
Hi all, We are working to introduce VirtIO GPU and Passthrough GPU support on Xen. https://lists.xenproject.org/archives/html/xen-devel/2023-03/msg00714.html Currently, only virgl for VirtIO GPU and Passthrough GPU on PV dom0 can works on Xen. These series introduce more graphic support for Xen

[RFC QEMU PATCH 06/18] virtio-gpu: Resource UUID

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Enable resource UUID feature and implement command resource assign UUID. This is done by introducing a hash table to map resource IDs to their UUIDs. Signed-off-by: Antonio Caggiano --- hw/display/trace-events| 1 + hw/display/virtio-gpu-base.c | 2 ++

[RFC QEMU PATCH 09/18] meson: Enable virglrenderer unstable APIs

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Also, use alternatives to meson compiler has_function, which does not work properly on my development environment. Signed-off-by: Antonio Caggiano --- meson.build | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build

[RFC QEMU PATCH 14/18] softmmu: Add ram block check to map the xen ram memory

2023-03-12 Thread Huang Rui
The xen ram memory should be mapped with addr instead of ramblock offset. So we need to add a check to make sure current ramblock is xen ram memory. Signed-off-by: Huang Rui --- softmmu/physmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softmmu/physmem.c

[RFC QEMU PATCH 16/18] virtio-gpu: fix hw-display-virtio-gpu.so undefined symbol virtio_gpu_virgl_resource_unmap

2023-03-12 Thread Huang Rui
From: Honglei Huang Move virtio_gpu_virgl_resource_unmap to virtio-gpu.c cause virtio-gpu.so call this function but this function in virtio-gpu-gl.so before. Add virgl dependency into virtio-gpu-gl.so. Suggested-by: Stefano Stabellini Signed-off-by: Honglei Huang Reviewed-by: Huang Rui

[RFC QEMU PATCH 13/18] hw/i386/xen/xen-hvm: Introduce xen_ram_block_check function

2023-03-12 Thread Huang Rui
Introduce xen_ram_block_check function to check whether current ramblock is xen ram memory. Signed-off-by: Huang Rui --- hw/i386/xen/xen-hvm.c | 15 +++ include/hw/xen/xen.h | 1 + 2 files changed, 16 insertions(+) diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c index

[RFC QEMU PATCH 10/18] virtio-gpu: Handle set scanout blob command

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Use mapped data pointer as data for the scanout. Signed-off-by: Antonio Caggiano --- hw/display/virtio-gpu-virgl.c | 3 +++ hw/display/virtio-gpu.c| 11 +++ include/hw/virtio/virtio-gpu.h | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff

[RFC QEMU PATCH 18/18] xen: translate irq of host pci device to gsi

2023-03-12 Thread Huang Rui
From: Chen Jiqian Use the new interface in the kernel to map pirq for qemu. Signed-off-by: Chen Jiqian Signed-off-by: Huang Rui --- hw/xen/xen-host-pci-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xen/xen-host-pci-device.c b/hw/xen/xen-host-pci-device.c

[RFC QEMU PATCH 17/18] virtio-gpu: Add video hardware accelerate support for virgl

2023-03-12 Thread Huang Rui
From: Honglei Huang Add get_drm_fd callback let the guest OS can get render node to using hw accel codec. Signed-off-by: Honglei Huang Signed-off-by: Huang Rui --- hw/display/virtio-gpu-virgl.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git

[RFC QEMU PATCH 07/18] virtio-gpu: Support Venus capset

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Add support for the Venus capset, which enables Vulkan support through the Venus Vulkan driver for virtio-gpu. Signed-off-by: Antonio Caggiano --- hw/display/virtio-gpu-virgl.c | 21 + include/standard-headers/linux/virtio_gpu.h | 2 ++

[RFC QEMU PATCH 12/18] softmmu: Fix the size to map cache with xen for host virtual address

2023-03-12 Thread Huang Rui
The xen_map_cache function wants to pass offset and size of this memory block as the input parameters to map the host virtual address. However, block->offset is too large as 0x1 (4G), if we assign the size as block->max_length (0x11000), the mapped host address will be out of

[RFC QEMU PATCH 15/18] softmmu: Enable qemu ram allocation with fd for Xen

2023-03-12 Thread Huang Rui
Venus is requesting the function on Xen as well, enable this path on Xen hypervisor. Signed-off-by: Huang Rui --- softmmu/physmem.c | 5 - 1 file changed, 5 deletions(-) diff --git a/softmmu/physmem.c b/softmmu/physmem.c index e54561bace..2838dee2f2 100644 --- a/softmmu/physmem.c +++

[RFC QEMU PATCH 08/18] virtio-gpu: Initialize Venus

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Request Venus when initializing VirGL. Signed-off-by: Antonio Caggiano --- hw/display/virtio-gpu-virgl.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c index fe03dc916f..f5ce206b93 100644 ---

[RFC QEMU PATCH 11/18] virtio-gpu: make blob scanout use dmabuf fd

2023-03-12 Thread Huang Rui
From: Robert Beckett This relies on a virglrenderer change to include the dmabuf fd when returning resource info. Signed-off-by: Robert Beckett --- hw/display/virtio-gpu-virgl.c | 103 - hw/display/virtio-gpu.c| 4 +- include/hw/virtio/virtio-gpu.h |

[RFC QEMU PATCH 05/18] virtio-gpu: Unrealize

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Implement an unrealize function for virtio gpu device. Signed-off-by: Antonio Caggiano --- hw/display/virtio-gpu-base.c | 2 +- hw/display/virtio-gpu.c| 11 +++ include/hw/virtio/virtio-gpu.h | 1 + 3 files changed, 13 insertions(+), 1 deletion(-)

[RFC QEMU PATCH 03/18] virtio-gpu: Handle resource blob commands

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Support BLOB resources creation, mapping and unmapping by calling the new stable virglrenderer 0.10 interface. Only enabled when available and via the blob config. E.g. -device virtio-vga-gl,blob=true Signed-off-by: Antonio Caggiano Signed-off-by: Dmitry Osipenko ---

[RFC QEMU PATCH 02/18] virtio-gpu: hostmem

2023-03-12 Thread Huang Rui
From: Gerd Hoffmann Use VIRTIO_GPU_SHM_ID_HOST_VISIBLE as id for virtio-gpu. Signed-off-by: Antonio Caggiano Acked-by: Michael S. Tsirkin --- hw/display/virtio-gpu-pci.c| 14 ++ hw/display/virtio-gpu.c| 1 + hw/display/virtio-vga.c| 33

[RFC QEMU PATCH 04/18] virtio-gpu: CONTEXT_INIT feature

2023-03-12 Thread Huang Rui
From: Antonio Caggiano Create virgl renderer context with flags using context_id when valid. The feature can be enabled via the context_init config option. A warning message will be emitted and the feature will not be used when linking with virglrenderer versions without context_init support.

[RFC QEMU PATCH 01/18] virtio: Add shared memory capability

2023-03-12 Thread Huang Rui
From: "Dr. David Alan Gilbert" Define a new capability type 'VIRTIO_PCI_CAP_SHARED_MEMORY_CFG' to allow defining shared memory regions with sizes and offsets of 2^32 and more. Multiple instances of the capability are allowed and distinguished by a device-specific 'id'. Signed-off-by: Dr. David

Re: [PATCH v2 0/6] Resolve TYPE_PIIX3_XEN_DEVICE

2023-03-12 Thread Bernhard Beschow
Am 11. März 2023 22:20:29 UTC schrieb Chuck Zmudzinski : >On 2/9/2023 4:53 PM, Bernhard Beschow wrote: >> Am 1. Februar 2023 08:11:10 UTC schrieb Bernhard Beschow : >> > >> > >> >Am 24. Januar 2023 17:07:30 UTC schrieb Bernhard Beschow >> >: >> >> >> >> >> >>Am 24. Januar 2023 16:11:47 UTC

Re: [PULL 0/5] gitdm updates

2023-03-12 Thread Alex Bennée
Alex Bennée writes: > The following changes since commit ee59483267de29056b5b2ee2421ef3844e5c9932: > > Merge tag 'qemu-openbios-20230307' of https://github.com/mcayland/qemu into > staging (2023-03-09 16:55:03 +) > > are available in the Git repository at: > >

Re: [PATCH v7] audio/pwaudio.c: Add Pipewire audio backend for QEMU

2023-03-12 Thread Volker Rümelin
+/* output data processing function to read stuffs from the buffer */ +static void +playback_on_process(void *data) +{ +PWVoice *v = (PWVoice *) data; +void *p; +struct pw_buffer *b; +struct spa_buffer *buf; +uint32_t n_frames, req, index, n_bytes; +int32_t avail; + +