Re: [PATCH v3 00/27] target/s390x: pc-relative translation blocks

2023-02-19 Thread Thomas Huth
On 09/01/2023 21.07, Richard Henderson wrote: This is the S390 specific changes required to reduce the amount of translation for address space randomization. Changes for v3: * Rebase and fixup conflicts. All patches are reviewed. Hi Richard, as far as I can see, this series has not been

Re: [RFC PATCH 10/43] target/loongarch: Implement vaddw/vsubw

2023-02-19 Thread gaosong
Hi, Richard 在 2022/12/25 上午1:48, Richard Henderson 写道: On 12/24/22 00:16, Song Gao wrote: +TRANS(vaddwev_h_b, gen_vvv, gen_helper_vaddwev_h_b) +TRANS(vaddwev_w_h, gen_vvv, gen_helper_vaddwev_w_h) +TRANS(vaddwev_d_w, gen_vvv, gen_helper_vaddwev_d_w) +TRANS(vaddwev_q_d, gen_vvv,

Re: [PATCH] ui: fix crash on serial reset, during init

2023-02-19 Thread Philippe Mathieu-Daudé
On 20/2/23 08:22, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau For ex, when resetting the xlnx-zcu102 machine: (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x50) * frame #0: 0x10020a740 gd_vc_send_chars(vc=0x0)

[PATCH] ui: fix crash on serial reset, during init

2023-02-19 Thread marcandre . lureau
From: Marc-André Lureau For ex, when resetting the xlnx-zcu102 machine: (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x50) * frame #0: 0x10020a740 gd_vc_send_chars(vc=0x0) at gtk.c:1759:41 [opt] frame #1: 0x100636264

Re: [PATCH v1 3/4] linux-user: add target to host netlink conversions

2023-02-19 Thread Philippe Mathieu-Daudé
On 17/2/23 17:35, Mathis Marion wrote: From: Mathis Marion Added conversions for: - IFLA_MTU - IFLA_TXQLEN - IFLA_AF_SPEC AF_INET6 IFLA_INET6_ADDR_GEN_MODE These relate to the libnl functions rtnl_link_set_mtu, rtnl_link_set_txqlen, and rtnl_link_inet6_set_addr_gen_mode. Signed-off-by: Mathis

Re: [PATCH] xio3130_downstream: Add ACS (Access Control Services) capability

2023-02-19 Thread Philippe Mathieu-Daudé
Hi Paul, On 31/1/23 07:30, wlfightup wrote: When vfio-pci devices are attached to the downstream, pcie acs capability may be needed, Consistent with physical machine. It has been tested in our environment, and pcie acs capability is required in some scenarios. Claim ACS support in the

Re: [PATCH v8 0/8] Introduce igb

2023-02-19 Thread Akihiko Odaki
On 2023/02/20 16:01, Jason Wang wrote: 在 2023/2/6 20:30, Akihiko Odaki 写道: Hi Jason, Let me remind that every patches in this series now has Reviewed-by: or Acked-by: tag though I forgot to include tags the prior versions of this series received to the latest version: No worries, I can

Re: [PATCH v8 0/8] Introduce igb

2023-02-19 Thread Jason Wang
在 2023/2/6 20:30, Akihiko Odaki 写道: Hi Jason, Let me remind that every patches in this series now has Reviewed-by: or Acked-by: tag though I forgot to include tags the prior versions of this series received to the latest version: No worries, I can do that. But when I try, it doesn't

[PATCH] Updated the FSF address to

2023-02-19 Thread Khadija Kamran
From: Khadija Kamran The Free Software Foundation moved to a new address and some sources in QEMU referred to their old location. The address should be updated and replaced to a pointer to Resolves: https://gitlab.com/qemu-project/qemu/-/issues/379

Re: [PATCH RESEND 04/18] i386/cpu: Fix number of addressable IDs in CPUID.04H

2023-02-19 Thread Xiaoyao Li
On 2/13/2023 5:36 PM, Zhao Liu wrote: For i-cache and d-cache, the maximum IDs for CPUs sharing cache ( CPUID.04H.00H:EAX[bits 25:14] and CPUID.04H.01H:EAX[bits 25:14]) are both 0, and this means i-cache and d-cache are shared in the SMT level. This is correct if there's single thread per core,

Re: [PATCH 3/2] hw/timer: Rename ptimer_state -> PTimer

2023-02-19 Thread Thomas Huth
On 17/02/2023 22.58, Philippe Mathieu-Daudé wrote: Remove a pointless cast in ptimer_tick() and rename 'ptimer_state' as 'PTimer' to follow the Structure naming convention. See docs/devel/style.rst: Variables are lower_case_with_underscores; easy to type and read. Structured type names

Re: [PATCH v2 0/7] Python: Drop support for Python 3.6

2023-02-19 Thread Thomas Huth
On 17/02/2023 21.46, John Snow wrote: On Thu, Feb 16, 2023 at 5:58 AM Thomas Huth wrote: On 15/02/2023 20.05, Markus Armbruster wrote: The discussion under PATCH 6 makes me think there's a bit of confusion about the actual impact of dropping support for Python 3.6. Possibly because it's

Re: [PATCH RESEND 18/18] i386: Add new property to control L2 cache topo in CPUID.04H

2023-02-19 Thread wangyanan (Y)
在 2023/2/20 10:49, Zhao Liu 写道: On Fri, Feb 17, 2023 at 05:08:31PM +0800, wangyanan (Y) wrote: Date: Fri, 17 Feb 2023 17:08:31 +0800 From: "wangyanan (Y)" Subject: Re: [PATCH RESEND 18/18] i386: Add new property to control L2 cache topo in CPUID.04H 在 2023/2/17 15:26, Zhao Liu 写道: On Fri,

[PULL 6/7] tests/tcg/linux-test: Add linux-fork-trap test

2023-02-19 Thread Richard Henderson
From: Ilya Leoshkevich Check that dying due to a signal does not deadlock. Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Ilya Leoshkevich Message-Id: <20230214140829.45392-5-...@linux.ibm.com> Signed-off-by: Richard Henderson ---

[PULL 1/7] accel/tcg: Allow the second page of an instruction to be MMIO

2023-02-19 Thread Richard Henderson
If an instruction straddles a page boundary, and the first page was ram, but the second page was MMIO, we would abort. Handle this as if both pages are MMIO, by setting the ram_addr_t for the first page to -1. Reported-by: Sid Manning Reported-by: Jørgen Hansen Reviewed-by: Philippe

[PULL 3/7] linux-user: Always exit from exclusive state in fork_end()

2023-02-19 Thread Richard Henderson
From: Ilya Leoshkevich fork()ed processes currently start with current_cpu->in_exclusive_context set, which is, strictly speaking, not correct, but does not cause problems (even assertion failures). With one of the next patches, the code begins to rely on this value, so fix it by always calling

[PULL 0/7] tcg patch queue

2023-02-19 Thread Richard Henderson
-pull-request' of https://gitlab.com/juan.quintela/qemu into staging (2023-02-16 13:09:51 +) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20230219 for you to fetch changes up to 2f5b4792c0220920831ac84f94c3435b14791857: target/microblaze: Add

[PULL 7/7] target/microblaze: Add gdbstub xml

2023-02-19 Thread Richard Henderson
Mirroring the upstream gdb xml files, the two stack boundary registers are separated out. Reviewed-by: Edgar E. Iglesias Signed-off-by: Richard Henderson --- configs/targets/microblaze-linux-user.mak | 1 + configs/targets/microblaze-softmmu.mak | 1 +

[PULL 2/7] linux-user/sparc: Raise SIGILL for all unhandled software traps

2023-02-19 Thread Richard Henderson
The linux kernel's trap tables vector all unassigned trap numbers to BAD_TRAP, which then raises SIGILL. Tested-by: Ilya Leoshkevich Reported-by: Ilya Leoshkevich Signed-off-by: Richard Henderson --- linux-user/sparc/cpu_loop.c | 8 1 file changed, 8 insertions(+) diff --git

[PULL 5/7] linux-user/microblaze: Handle privileged exception

2023-02-19 Thread Richard Henderson
From: Ilya Leoshkevich Follow what kernel's full_exception() is doing. Reviewed-by: Richard Henderson Signed-off-by: Ilya Leoshkevich Message-Id: <20230214140829.45392-4-...@linux.ibm.com> Signed-off-by: Richard Henderson --- linux-user/microblaze/cpu_loop.c | 10 -- 1 file changed,

[PULL 4/7] cpus: Make {start,end}_exclusive() recursive

2023-02-19 Thread Richard Henderson
From: Ilya Leoshkevich Currently dying to one of the core_dump_signal()s deadlocks, because dump_core_and_abort() calls start_exclusive() two times: first via stop_all_tasks(), and then via preexit_cleanup() -> qemu_plugin_user_exit(). There are a number of ways to solve this: resume after

Re: [RFC PATCH 0/2] Add flag as THP allocation hint for memfd_restricted() syscall

2023-02-19 Thread Yuan Yao
On Sat, Feb 18, 2023 at 12:43:00AM +, Ackerley Tng wrote: > Hello, > > This patchset builds upon the memfd_restricted() system call that has > been discussed in the ‘KVM: mm: fd-based approach for supporting KVM’ > patch series, at >

Re: [PATCH RESEND 18/18] i386: Add new property to control L2 cache topo in CPUID.04H

2023-02-19 Thread Zhao Liu
On Fri, Feb 17, 2023 at 11:45:58AM +0800, wangyanan (Y) wrote: > Date: Fri, 17 Feb 2023 11:45:58 +0800 > From: "wangyanan (Y)" > Subject: Re: [PATCH RESEND 18/18] i386: Add new property to control L2 > cache topo in CPUID.04H > > 在 2023/2/17 11:35, Zhao Liu 写道: > > On Thu, Feb 16, 2023 at

Re: [PATCH RESEND 18/18] i386: Add new property to control L2 cache topo in CPUID.04H

2023-02-19 Thread Zhao Liu
On Fri, Feb 17, 2023 at 05:08:31PM +0800, wangyanan (Y) wrote: > Date: Fri, 17 Feb 2023 17:08:31 +0800 > From: "wangyanan (Y)" > Subject: Re: [PATCH RESEND 18/18] i386: Add new property to control L2 > cache topo in CPUID.04H > > 在 2023/2/17 15:26, Zhao Liu 写道: > > On Fri, Feb 17, 2023 at

Optimization for the virtio-balloon feature on the ARM platform

2023-02-19 Thread Yangming via
Dear QEMU maintainers, I am writing to discuss a possible optimization for the virtio-balloon feature on the ARM platform. The 'virtio_balloon_set_config' function is called frequently during the balloon inflation process, and its subfunction 'get_current_ram_size' needs to traverse the

Re: [PATCH v1 1/2] hw: allwinner-i2c: Make the trace message more readable

2023-02-19 Thread qianfan
在 2023/2/20 6:30, Philippe Mathieu-Daudé 写道: Hi, On 17/2/23 10:42, qianfangui...@163.com wrote: From: qianfan Zhao Next is an example when allwinner_i2c_rw enabled: allwinner_i2c_rw write   CNTR[0x0c]: 50 { M_STP BUS_EN  } allwinner_i2c_rw write   CNTR[0x0c]: e4 { A_ACK M_STA BUS_EN

Re: [PATCH v1 1/2] hw: allwinner-i2c: Make the trace message more readable

2023-02-19 Thread Philippe Mathieu-Daudé
Hi, On 17/2/23 10:42, qianfangui...@163.com wrote: From: qianfan Zhao Next is an example when allwinner_i2c_rw enabled: allwinner_i2c_rw write CNTR[0x0c]: 50 { M_STP BUS_EN } allwinner_i2c_rw write CNTR[0x0c]: e4 { A_ACK M_STA BUS_EN INT_EN } allwinner_i2c_rw read CNTR[0x0c]: cc {

Re: [PATCH v2 07/18] hw/ide/piix: Ensure IDE output IRQs are wired at realization

2023-02-19 Thread Philippe Mathieu-Daudé
+Daniel, Igor, Marcel & libvirt On 16/2/23 16:33, Philippe Mathieu-Daudé wrote: On 16/2/23 15:43, Bernhard Beschow wrote: On Wed, Feb 15, 2023 at 5:20 PM Philippe Mathieu-Daudé mailto:phi...@linaro.org>> wrote:     Ensure both IDE output IRQ lines are wired.     We can remove the last

[PATCH 2/5] virtio-net: Added property to load eBPF RSS with fds.

2023-02-19 Thread Andrew Melnychenko
eBPF RSS program and maps may now be passed during initialization. Initially was implemented for libvirt to launch qemu without permissions, and initialized eBPF program through the helper. Signed-off-by: Andrew Melnychenko --- hw/net/virtio-net.c| 77

[PATCH 1/5] ebpf: Added eBPF initialization by fds and map update.

2023-02-19 Thread Andrew Melnychenko
Changed eBPF map updates through mmaped array. Mmaped arrays provide direct access to map data. It should omit using bpf_map_update_elem() call, which may require capabilities that are not present. Also, eBPF RSS context may be initialized by file descriptors. virtio-net may provide fds passed by

[PATCH 5/5] qmp: Added find-ebpf-rss-helper command.

2023-02-19 Thread Andrew Melnychenko
New qmp command to query ebpf helper. It's crucial that QEMU and helper are in sync. Technically helper should pass eBPF fds that QEMU may accept. And different QEMU's builds may have different eBPF programs. QEMU returns helper that should "fit" to virtio-net. QEMU would check the stamp of the

[PATCH 0/5] eBPF RSS Helper support.

2023-02-19 Thread Andrew Melnychenko
This series of patches provides the ability to initialize eBPF RSS steering with the helper. Now, virtio-net devices can accept eBPF programs and maps through properties as external file descriptors. Access to the eBPF map is direct through mmap() call, so it should not require additional

[PATCH 3/5] qmp: Added the helper stamp check.

2023-02-19 Thread Andrew Melnychenko
Added a function to check the stamp in the helper. eBPF helper should have a special symbol that generates during the build. QEMU checks the helper and determines that it fits, so the helper will produce proper output. Signed-off-by: Andrew Melnychenko --- meson.build

[PATCH 4/5] ebpf_rss_helper: Added helper for eBPF RSS.

2023-02-19 Thread Andrew Melnychenko
Helper program. Loads eBPF RSS program and maps and passes them through unix socket. Libvirt may launch this helper and pass eBPF fds to qemu virtio-net. Also, libbpf dependency for now is exclusively for Linux. Libbpf is used for eBPF RSS steering, which is supported only by Linux TAP. There is

Re: [PATCH v4 8/8] hw/mem/cxl_type3: Add CXL RAS Error Injection Support.

2023-02-19 Thread Jonathan Cameron via
> > static void ct3d_reg_write(void *opaque, hwaddr offset, uint64_t value, > > unsigned size) > > { > > @@ -341,6 +402,83 @@ static void ct3d_reg_write(void *opaque, hwaddr > > offset, uint64_t value, > > should_commit = FIELD_EX32(value,

Re: [PATCH 05/12] hw/i2c/smbus_ich9: Inline ich9_smb_init() and remove it

2023-02-19 Thread Corey Minyard
On Sun, Feb 19, 2023 at 02:45:44PM +0100, Philippe Mathieu-Daudé wrote: > On 18/2/23 21:25, Corey Minyard wrote: > > On Mon, Feb 13, 2023 at 06:30:26PM +0100, Bernhard Beschow wrote: > > > ich9_smb_init() is a legacy init function, so modernize the code. > > > > > > Note that the smb_io_base

Re: [PATCH 05/12] hw/i2c/smbus_ich9: Inline ich9_smb_init() and remove it

2023-02-19 Thread Philippe Mathieu-Daudé
On 18/2/23 21:25, Corey Minyard wrote: On Mon, Feb 13, 2023 at 06:30:26PM +0100, Bernhard Beschow wrote: ich9_smb_init() is a legacy init function, so modernize the code. Note that the smb_io_base parameter was unused. Acked-by: Corey Minyard Signed-off-by: Bernhard Beschow ---

Re: [RFC PATCH] docs/about/deprecated: Deprecate 32-bit host systems

2023-02-19 Thread Stefan Weil via
Am 19.02.23 um 12:27 schrieb Reinoud Zandijk: On Fri, Feb 17, 2023 at 12:05:46PM +0100, Stefan Weil wrote: So there still seems to be a certain small need for QEMU installers for 32-bit Windows: 170 users für 32 bit only, 339 users for both 32 and 64 bit, 5132 users for 64 bit only. As you

Re: [RFC PATCH] docs/about/deprecated: Deprecate 32-bit host systems

2023-02-19 Thread Reinoud Zandijk
On Fri, Feb 17, 2023 at 12:05:46PM +0100, Stefan Weil wrote: > On Fri, Feb 17, 2023 at 11:36:41AM +0100, Markus Armbruster wrote: > > > Which 32-bit hosts are still useful, and why? > > Citing my previous mail: > >I now checked all downloads of the latests installers since 2022-12-30. > >

Re: [RFC PATCH] docs/about/deprecated: Deprecate 32-bit host systems

2023-02-19 Thread Reinoud Zandijk
On Fri, Feb 17, 2023 at 08:22:43AM -1000, Richard Henderson wrote: > On 2/17/23 06:06, Reinoud Zandijk wrote: > > On Fri, Feb 17, 2023 at 11:36:41AM +0100, Markus Armbruster wrote: > > > I feel the discussion petered out without a conclusion. > > > > > > I don't think letting the status quo win

Re: [PATCH] target/ppc/translate: Add dummy implementation for dcblc instruction

2023-02-19 Thread Bernhard Beschow
Am 30. Januar 2023 22:23:59 UTC schrieb Richard Henderson : >On 1/30/23 08:49, Bernhard Beschow wrote: >> The dcblc instruction is used by u-boot in mpc85xx/start.S. Without it, >> an illegal istruction exception is generated very early in the boot >> process where the processor is not yet

Re: [PATCH 4/4] ui/gtk: enable backend to send multi-touch events

2023-02-19 Thread Marc-André Lureau
Hi Sergio On Sat, Feb 18, 2023 at 8:23 PM Sergio Lopez wrote: > > GTK3 provides the infrastructure to receive and process multi-touch > events through the "touch-event" signal and the GdkEventTouch type. > Make use of it to transpose events from the host to the guest. > > This allows users of

Re: [PATCH 1/4] virtio-input: generalize virtio_input_key_config()

2023-02-19 Thread Marc-André Lureau
On Sat, Feb 18, 2023 at 8:23 PM Sergio Lopez wrote: > > As there are other bitmap-based config properties that need to be dealt in a > similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to > receive select and subsel as arguments, and rename it to > virtio_input_extend_config()

Re: [PATCH 3/4] ui: add helpers for virtio-multitouch events

2023-02-19 Thread Marc-André Lureau
On Sat, Feb 18, 2023 at 8:23 PM Sergio Lopez wrote: > > Add helpers for generating Multi-touch events from the UI backends that > can be sent to the guest through a virtio-multitouch device. > > Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau > --- > include/ui/input.h | 5 +

Re: [PATCH 2/4] virtio-input: add a virtio-mulitouch device

2023-02-19 Thread Marc-André Lureau
Hi On Sat, Feb 18, 2023 at 8:23 PM Sergio Lopez wrote: > > Add a virtio-multitouch device to the family of devices emulated by > virtio-input implementing the Multi-touch protocol as descripted here: > > https://www.kernel.org/doc/html/latest/input/multi-touch-protocol.html?highlight=multi+touch