Re: [PATCH v5 10/11] hw/riscv/boot.c: consolidate all kernel init in riscv_load_kernel()

2023-01-10 Thread Alistair Francis
On Wed, Jan 11, 2023 at 6:21 AM Daniel Henrique Barboza wrote: > > > > On 1/10/23 08:43, Daniel Henrique Barboza wrote: > > > > > > On 1/8/23 00:33, Bin Meng wrote: > >> On Mon, Jan 2, 2023 at 7:55 PM Daniel Henrique Barboza > >> wrote: > >>> The microchip_icicle_kit, sifive_u, spike and virt boa

Re: [PATCH v7 4/7] mac_newworld: Add machine types for different mac99 configs

2023-01-10 Thread Mark Cave-Ayland
On 04/01/2023 21:59, BALATON Zoltan wrote: The mac99 machine emulates different machines depending on machine properties or even if it is run as qemu-system-ppc64 or qemu-system-ppc. This is very confusing for users and many hours were lost trying to explain it or finding out why commands users

Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory

2023-01-10 Thread Vishal Annapurve
On Tue, Jan 10, 2023 at 1:19 AM Chao Peng wrote: > > > > Regarding the userspace side of things, please include Vishal's selftests > > in v11, > > it's impossible to properly review the uAPI changes without seeing the > > userspace > > side of things. I'm in the process of reviewing Vishal's v2

Re: [PATCH v7 6/7] mac_newworld: Deprecate mac99 "via" option

2023-01-10 Thread Mark Cave-Ayland
On 04/01/2023 21:59, BALATON Zoltan wrote: Setting emulated machine type with a property called "via" is confusing users so deprecate the "via" option in favour of newly added explicit machine types. The default via=cuda option is not a valid config (no real Mac has this combination of hardware)

Re: [PATCH 1/2] target/riscv/cpu: set cpu->cfg in register_cpu_props()

2023-01-10 Thread Alistair Francis
On Wed, Jan 11, 2023 at 6:17 AM Daniel Henrique Barboza wrote: > > There is an informal contract between the cpu_init() functions and > riscv_cpu_realize(): if cpu->env.misa_ext is zero, assume that the > default settings were loaded via register_cpu_props() and do validations > to set env.misa_ex

Re: [PATCH 2/2] target/riscv/cpu.c: do not skip misa logic in riscv_cpu_realize()

2023-01-10 Thread Alistair Francis
On Wed, Jan 11, 2023 at 6:17 AM Daniel Henrique Barboza wrote: > > All RISCV CPUs are setting cpu->cfg during their cpu_init() functions, > meaning that there's no reason to skip all the misa validation and setup > if misa_ext was set beforehand - especially since we're setting an > updated value

Re: [PATCH 0/1] hw/ide: share bmdma read and write functions

2023-01-10 Thread Bernhard Beschow
Am 9. Januar 2023 19:24:16 UTC schrieb John Snow : >On Tue, Sep 6, 2022 at 10:27 AM Bernhard Beschow wrote: >> >> Am 19. Februar 2022 08:08:17 UTC schrieb Liav Albani : >> >This is a preparation before I send v3 of ich6-ide controller emulation >> >patch. >> >I figured that it's more trivial t

Re: [PATCH qemu v3 1/1] Emulating sun keyboard language layout dip switches, taking the value for the dip switches from the "-k" option to qemu.

2023-01-10 Thread Mark Cave-Ayland
On 06/01/2023 21:33, ~henca wrote: From: Henrik Carlqvist SUN Type 4, 5 and 5c keyboards have dip switches to choose the language layout of the keyboard. Solaris makes an ioctl to query the value of the dipswitches and uses that value to select keyboard layout. Also the SUN bios like the one i

Re: [PATCH v4 00/36] tcg: Support for Int128 with helpers

2023-01-10 Thread Mark Cave-Ayland
On 08/01/2023 02:36, Richard Henderson wrote: Changes for v4: * About half of the v3 series has been merged, * AArch64 host requires even argument register. * target/{arm,ppc,s390x,i386} uses included here. Patches requiring review: 01-tcg-Define-TCG_TYPE_I128-and-related-helper-mac

Re: [PATCH v6 0/4] Make the mc146818 RTC device target independent

2023-01-10 Thread Mark Cave-Ayland
On 10/01/2023 09:53, Thomas Huth wrote: The basic idea of this patch set is to change hw/rtc/mc146818rtc.c into target independent code so that the file only has to be compiled once instead of multiple times (and that it can be used in a qemu-system-all binary once we get there). The first patc

Re: [PATCH v4 1/1] python/machine: Fix AF_UNIX path too long on macOS

2023-01-10 Thread John Snow
On Tue, Jan 10, 2023 at 3:34 AM Peter Delevoryas wrote: > > On macOS, private $TMPDIR's are the default. These $TMPDIR's are > generated from a user's unix UID and UUID [1], which can create a > relatively long path: > > /var/folders/d7/rz20f6hd709c1ty8f6_6y_z4gn/T/ > > QEMU's avocado test

Re: [PATCH v4 1/1] python/machine: Fix AF_UNIX path too long on macOS

2023-01-10 Thread Peter Delevoryas
On Tue, Jan 10, 2023 at 06:18:29PM -0500, John Snow wrote: > On Tue, Jan 10, 2023 at 3:34 AM Peter Delevoryas wrote: > > > > On macOS, private $TMPDIR's are the default. These $TMPDIR's are > > generated from a user's unix UID and UUID [1], which can create a > > relatively long path: > > > >

Re: [PATCH v4 01/36] tcg: Define TCG_TYPE_I128 and related helper macros

2023-01-10 Thread Alex Bennée
Richard Henderson writes: > Begin staging in support for TCGv_i128 with Int128. > Define the type enumerator, the typedef, and the > helper-head.h macros. > > This cannot yet be used, because you can't allocate > temporaries of this new type. > > Signed-off-by: Richard Henderson Reviewed-by:

Re: [PATCH v7 6/7] mac_newworld: Deprecate mac99 "via" option

2023-01-10 Thread BALATON Zoltan
On Tue, 10 Jan 2023, Mark Cave-Ayland wrote: On 04/01/2023 21:59, BALATON Zoltan wrote: Setting emulated machine type with a property called "via" is confusing users so deprecate the "via" option in favour of newly added explicit machine types. The default via=cuda option is not a valid config

Re: [PATCH v7 4/7] mac_newworld: Add machine types for different mac99 configs

2023-01-10 Thread BALATON Zoltan
On Tue, 10 Jan 2023, Mark Cave-Ayland wrote: On 04/01/2023 21:59, BALATON Zoltan wrote: The mac99 machine emulates different machines depending on machine properties or even if it is run as qemu-system-ppc64 or qemu-system-ppc. This is very confusing for users and many hours were lost trying to

Re: [PATCH v7 3/7] mac_{old,new}world: Pass MacOS VGA NDRV in card ROM instead of fw_cfg

2023-01-10 Thread BALATON Zoltan
On Tue, 10 Jan 2023, Mark Cave-Ayland wrote: On 04/01/2023 21:59, BALATON Zoltan wrote: OpenBIOS cannot run FCode ROMs yet but it can detect NDRV in VGA card ROM and add it to the device tree for MacOS. Pass the NDRV this way instead of via fw_cfg. This solves the problem with OpenBIOS also addi

[PATCH v3 0/3] tcg: add perfmap and jitdump

2023-01-10 Thread Ilya Leoshkevich
v2: https://lists.gnu.org/archive/html/qemu-devel/2022-11/msg02385.html https://lists.gnu.org/archive/html/qemu-devel/2023-01/msg01026.html v2 -> v3: * Enable only for CONFIG_LINUX (Alex). * Use qemu_get_thread_id() instead of gettid() (Alex). * Fix CI (Alex). https://gitlab.com/iii-i/qemu/-/pip

[PATCH v3 1/3] linux-user: Clean up when exiting due to a signal

2023-01-10 Thread Ilya Leoshkevich
When exiting due to an exit() syscall, qemu-user calls preexit_cleanup(), but this is currently not the case when exiting due to a signal. This leads to various buffers not being flushed (e.g., for gprof, for gcov, and for the upcoming perf support). Add the missing call. Signed-off-by: Ilya Leos

[PATCH v3 2/3] accel/tcg: Add debuginfo support

2023-01-10 Thread Ilya Leoshkevich
Add libdw-based functions for loading and querying debuginfo. Load debuginfo from the system and the linux-user loaders. This is useful for the upcoming perf support, which can then put human-readable guest symbols instead of raw guest PCs into perfmap and jitdump files. Signed-off-by: Ilya Leosh

[PATCH v3 3/3] tcg: add perfmap and jitdump

2023-01-10 Thread Ilya Leoshkevich
Add ability to dump /tmp/perf-.map and jit-.dump. The first one allows the perf tool to map samples to each individual translation block. The second one adds the ability to resolve symbol names, line numbers and inspect JITed code. Example of use: perf record qemu-x86_64 -perfmap ./a.out

Re: [PATCH] hw/display/xlnx_dp: fix overflow in xlnx_dp_aux_push_tx_fifo()

2023-01-10 Thread Qiang Liu
Dear Fred, On Tue, Jan 10, 2023 at 9:57 PM Konrad, Frederic wrote: > Hi, > > > -Original Message- > > From: qemu-devel-bounces+fkonrad=amd@nongnu.org > On Behalf Of > > Qiang Liu > > Sent: 09 January 2023 07:00 > > To: qemu-devel@nongnu.org > > Cc: Qiang Liu ; Alistair Francis < > a

Re: [PATCH v2 4/5] util/qht: use striped locks under TSAN

2023-01-10 Thread Emilio Cota
On Tue, Jan 10, 2023 at 20:58:01 +, Alex Bennée wrote: > Emilio Cota writes: (snip) > > +static inline void qht_do_if_first_in_stripe(const struct qht_map *map, > > + struct qht_bucket *b, > > + void (*func

Re: [PATCH v2 4/5] hw/i2c/bitbang_i2c: Trace state changes

2023-01-10 Thread Richard Henderson
On 1/10/23 00:29, Philippe Mathieu-Daudé wrote: +static const char *sname[] = { Oh, const char * const sname[] should have caught that the first time. r~

Re: [RFC PATCH v2 07/19] target/arm: Move helper_set_pstate_* into cpregs.c

2023-01-10 Thread Richard Henderson
On 1/9/23 21:52, Richard Henderson wrote: On 1/9/23 14:42, Fabiano Rosas wrote: We want to move sme_helper into the tcg directory, but the cpregs accessor functions cannot go along, otherwise they would be separate from the respective ARMCPRegInfo definition which needs to be compiled with CONFI

[PATCH 0/2] fix for #285

2023-01-10 Thread Emilio Cota
Context: https://gitlab.com/qemu-project/qemu/-/issues/285 So far the only fix that we have had posted on the list is https://lists.gnu.org/archive/html/qemu-devel/2022-10/msg00391.html by Daniel. The approach that I'm following here should have the same outcome, except that it doesn't change

[PATCH 1/2] util: import GTree as QTree

2023-01-10 Thread Emilio Cota
The only reason to add this tree is to control the memory allocator used. Some users (e.g. TCG) cannot work reliably in multi-threaded environments (e.g. forking in user-mode) with GTree's allocator, GSlice. See https://gitlab.com/qemu-project/qemu/-/issues/285 for details. Importing GTree is a te

[PATCH 2/2] tcg: use QTree instead of GTree

2023-01-10 Thread Emilio Cota
qemu-user can hang in a multi-threaded fork. One common reason is that when creating a TB, between fork and exec we manipulate a GTree whose memory allocator (GSlice) is not fork-safe. Although POSIX does not mandate it, the system's allocator (e.g. tcmalloc, libc malloc) is probably fork-safe. F

Re: [RFC PATCH for 8.0 10/13] virtio-net: Migrate vhost inflight descriptors

2023-01-10 Thread Jason Wang
On Tue, Jan 10, 2023 at 11:02 AM Parav Pandit wrote: > > Hi Jason, > > > From: Jason Wang > > Sent: Monday, December 5, 2022 10:25 PM > > > > > A dumb question, any reason we need bother with virtio-net? It looks to me > > it's > > not a must and would complicate migration compatibility. > > Vir

RE: [RFC PATCH for 8.0 10/13] virtio-net: Migrate vhost inflight descriptors

2023-01-10 Thread Parav Pandit
> From: Jason Wang > Sent: Tuesday, January 10, 2023 11:35 PM > > On Tue, Jan 10, 2023 at 11:02 AM Parav Pandit wrote: > > > > Hi Jason, > > > > > From: Jason Wang > > > Sent: Monday, December 5, 2022 10:25 PM > > > > > > > > A dumb question, any reason we need bother with virtio-net? It looks

Re: [PATCH v9 0/9] support subsets of code size reduction extension

2023-01-10 Thread Alistair Francis
On Wed, Dec 28, 2022 at 4:23 PM Weiwei Li wrote: > > This patchset implements RISC-V Zc* extension v1.0.0.RC5.7 version > instructions. > > Specification: > https://github.com/riscv/riscv-code-size-reduction/tree/main/Zc-specification > > The port is available here: > https://github.com/plctlab/p

Re: [PATCH 0/2] target/riscv/cpu: fix sifive_u 32/64bits boot in riscv-to-apply.next

2023-01-10 Thread Alistair Francis
On Wed, Jan 11, 2023 at 6:17 AM Daniel Henrique Barboza wrote: > > Hi, > > I found this bug when testing my avocado changes in riscv-to-apply.next. > The sifive_u board, both 32 and 64 bits, stopped booting OpenSBI. The > guest hangs indefinitely. > > Git bisect points that this patch broke things

Re: [PATCH v5 00/11] riscv: OpenSBI boot test and cleanups

2023-01-10 Thread Alistair Francis
On Mon, Jan 2, 2023 at 9:54 PM Daniel Henrique Barboza wrote: > > Hi, > > This new version is still rebased on top of [1]: > > "[PATCH v2 00/12] hw/riscv: Improve Spike HTIF emulation fidelity" > > from Bin Meng. > > The change from v4 is on patch 9 where we added an extra flag in > riscv_load_ker

Re: [PATCH 1/2] target/riscv/cpu: set cpu->cfg in register_cpu_props()

2023-01-10 Thread Richard Henderson
On 1/10/23 12:14, Daniel Henrique Barboza wrote: +/* + * Register CPU props based on env.misa_ext. If a non-zero + * value was set, register only the required cpu->cfg.ext_* + * properties and leave. env.misa_ext = 0 means that we want + * all the default properties to be registered. + */ stati

Re: [RFC PATCH v2 17/19] target/arm: Move regime_using_lpae_format into internal.h

2023-01-10 Thread Richard Henderson
On 1/9/23 14:42, Fabiano Rosas wrote: This function is needed by common code (ptw.c), so move it along with the other regime_* functions in internal.h. When we enable the build without TCG, the tlb_helper.c file will not be present. Signed-off-by: Fabiano Rosas --- Richard: this cannot into ptw.

Re: make vm-build-freebsd appears to require . in PATH

2023-01-10 Thread Markus Armbruster
Peter Maydell writes: > On Tue, 10 Jan 2023 at 16:26, Markus Armbruster wrote: >> Peter Maydell writes: >> > Does it actually require '.' on the PATH, or does it just want >> > a qemu-img binary on the PATH? (eg your distro one in /usr/bin). >> > I don't have '.' on my PATH and it works for me.

Re: [RFC PATCH for 8.0 10/13] virtio-net: Migrate vhost inflight descriptors

2023-01-10 Thread Jason Wang
On Wed, Jan 11, 2023 at 12:40 PM Parav Pandit wrote: > > > > From: Jason Wang > > Sent: Tuesday, January 10, 2023 11:35 PM > > > > On Tue, Jan 10, 2023 at 11:02 AM Parav Pandit wrote: > > > > > > Hi Jason, > > > > > > > From: Jason Wang > > > > Sent: Monday, December 5, 2022 10:25 PM > > > > >

Re: [PATCH 1/2] target/riscv/cpu: set cpu->cfg in register_cpu_props()

2023-01-10 Thread Bin Meng
On Wed, Jan 11, 2023 at 4:17 AM Daniel Henrique Barboza wrote: > > There is an informal contract between the cpu_init() functions and > riscv_cpu_realize(): if cpu->env.misa_ext is zero, assume that the > default settings were loaded via register_cpu_props() and do validations > to set env.misa_ex

Re: [PATCH 2/2] target/riscv/cpu.c: do not skip misa logic in riscv_cpu_realize()

2023-01-10 Thread Bin Meng
On Wed, Jan 11, 2023 at 4:17 AM Daniel Henrique Barboza wrote: > > All RISCV CPUs are setting cpu->cfg during their cpu_init() functions, > meaning that there's no reason to skip all the misa validation and setup > if misa_ext was set beforehand - especially since we're setting an > updated value

[RFC v1 2/2] spice: Add an option to forward the dmabuf directly to the encoder

2023-01-10 Thread Vivek Kasireddy
This patch adds support for gl=on and port != 0. In other words, with this option enabled, it should be possible to stream the content associated with the dmabuf without making any additional copies. The encoder (that is part of Spice Server) extracts the dmabuf fd from the drawable (RedDrawable)

[RFC v1 1/2] spice: Add an option for users to provide a preferred codec

2023-01-10 Thread Vivek Kasireddy
Giving users an option to choose a particular codec will enable them to make an appropriate decision based on their hardware and use-case. Cc: Gerd Hoffmann Cc: Marc-André Lureau Cc: Dongwon Kim Signed-off-by: Vivek Kasireddy --- qemu-options.hx | 5 + ui/spice-core.c | 14 ++

[RFC v1 0/2] spice: Add an option to forward the dmabuf directly to the encoder

2023-01-10 Thread Vivek Kasireddy
This patch series adds options to select a preferred codec and also to forward a dmabuf directly to the encoder module that is part of the Spice server. Currently, gstreamer:h264 is the only combination tested but additional work is ongoing to test other combinations. Tested with: -device virtio-

Re: [PATCH] bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx

2023-01-10 Thread Philippe Mathieu-Daudé
On 10/1/23 23:01, BALATON Zoltan wrote: On Tue, 10 Jan 2023, Philippe Mathieu-Daudé wrote: The 'hwaddr' type is defined in "exec/hwaddr.h" as:    hwaddr is the type of a physical address   (its size can be different from 'target_ulong'). All definitions use the 'HWADDR_' prefix, except TARGET_

[PATCH] hw/net/lan9118: log [read|write]b when mode_16bit is enabled rather than abort

2023-01-10 Thread Qiang Liu
This patch replaces hw_error to guest error log for [read|write]b accesses when mode_16bit is enabled. This avoids aborting qemu. Fixes: 1248f8d4cbc3 ("hw/lan9118: Add basic 16-bit mode support.") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1433 Reported-by: Qiang Liu Signed-off-by: Q

Re: virtio-iommu issue with VFIO device downstream to a PCIe-to-PCI bridge: VFIO devices are not assigned any iommu group

2023-01-10 Thread Jason Wang
On Tue, Jan 10, 2023 at 5:11 AM Eric Auger wrote: > > Hi, > > On 1/9/23 14:24, Eric Auger wrote: > > Hi, > > > > we have a trouble with virtio-iommu and protected assigned devices > > downstream to a pcie-to-pci bridge. In that use case we observe the > > assigned devices are not put to any group.

Re: [PATCH v9 0/9] support subsets of code size reduction extension

2023-01-10 Thread weiwei
On 2023/1/11 13:00, Alistair Francis wrote: On Wed, Dec 28, 2022 at 4:23 PM Weiwei Li wrote: This patchset implements RISC-V Zc* extension v1.0.0.RC5.7 version instructions. Specification: https://github.com/riscv/riscv-code-size-reduction/tree/main/Zc-specification The port is available he

[PULL 5/6] hw/nvme: clean up confusing use of errp/local_err

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen Remove an unnecessary local Error value in nvme_realize(). In the process, change nvme_check_constraints() to return a bool. Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Klaus Jensen --- hw/nvme/ctrl.c | 48 +++--

[PULL 0/6] hw/nvme updates

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen Hi Peter, The following changes since commit 528d9f33cad5245c1099d77084c78bb2244d5143: Merge tag 'pull-tcg-20230106' of https://gitlab.com/rth7680/qemu into staging (2023-01-08 11:23:17 +) are available in the Git repository at: https://gitlab.com/birkelund/qemu.gi

[PULL 3/6] hw/nvme: fix missing endian conversions for doorbell buffers

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen The eventidx and doorbell value are not handling endianness correctly. Fix this. Fixes: 3f7fe8de3d49 ("hw/nvme: Implement shadow doorbell buffer support") Cc: qemu-sta...@nongnu.org Reported-by: Guenter Roeck Reviewed-by: Keith Busch Signed-off-by: Klaus Jensen --- hw/nvme

[PULL 1/6] hw/nvme: use QOM accessors

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen Replace various ->parent_obj use with the equivalent QOM accessors. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Klaus Jensen --- hw/nvme/ctrl.c | 89 +++--- 1 file changed, 48 insertions(+), 41 deletions(-) diff --git a/hw

[PULL 4/6] hw/nvme: fix missing cq eventidx update

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen Prior to reading the shadow doorbell cq head, we have to update the eventidx. Otherwise, we risk that the driver will skip an mmio doorbell write. This happens on riscv64, as reported by Guenter. Adding the missing update to the cq eventidx fixes the issue. Fixes: 3f7fe8de3d4

[PULL 6/6] hw/nvme: cleanup error reporting in nvme_init_pci()

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen Replace the local Error variable with errp and ERRP_GUARD() and change the return value to bool. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Klaus Jensen --- hw/nvme/ctrl.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git

[PULL 2/6] hw/nvme: rename shadow doorbell related trace events

2023-01-10 Thread Klaus Jensen
From: Klaus Jensen Rename the trace events related to writing the event index and reading the doorbell value to make it more clear that the event is associated with an actual update (write or read respectively). Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch Signed-off-by: Klaus

Re: Questions about how block devices use snapshots

2023-01-10 Thread Zhiyong Ye
Hi Kevin, Thank you for your reply and detailed answers. In my scenario is the iSCSI SAN environment. The network storage device is connected to the physical machine via iSCSI, and LVM is used as the middle layer between the storage device and the VM for storage management and metadata synchr

Re: [PATCH 1/4] hw/isa/Kconfig: Add missing PARALLEL dependency to ISA_SUPERIO

2023-01-10 Thread Philippe Mathieu-Daudé
On 9/1/23 21:41, Bernhard Beschow wrote: isa-superio.c, managed by ISA_SUPERIO, instantiates TYPE_ISA_PARALLEL, managed by PARALLEL. Signed-off-by: Bernhard Beschow --- hw/isa/Kconfig | 1 + 1 file changed, 1 insertion(+) Reviewed-by: Philippe Mathieu-Daudé

[PATCH v3 4/8] meson: replace Perl usage with Python

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau Let's try to remove Perl usage during build time. Signed-off-by: Marc-André Lureau --- tests/qapi-schema/meson.build | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/qapi-schema/meson.build b/tests/qapi-schema/meson.build index 9dfe98bc9a

[PATCH v3 3/8] configure: replace Perl usage with sed

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau Let's try to reduce our Perl usage during config/build-time. Note: this patch might be dropped if "configure: remove backwards-compatibility code" is merged earlier. Signed-off-by: Marc-André Lureau --- configure | 8 +++- 1 file changed, 3 insertions(+), 5 deletio

[PATCH v3 6/8] Update lcitool and fedora to 37

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau Fedora 35 is EOL, upstream lcitool replaced it with 37. Signed-off-by: Marc-André Lureau --- tests/docker/dockerfiles/fedora-win32-cross.docker | 4 ++-- tests/docker/dockerfiles/fedora-win64-cross.docker | 4 ++-- tests/docker/dockerfiles/fedora.docker | 4

[PATCH v3 0/8] Fix win32/msys2 shader compilation & update lcitool deps

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau Hi, Fix the shader compilation error on win32/msys2 and convert the related script from perl to python. Drop unneeded dependencies from lcitool project. v3: - split lcitool & f37 update - fix sed portability usage, add back trailing $ in the regex - add some patches to d

[PATCH v3 7/8] lcitool: drop perl from QEMU project/dependencies

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- .gitlab-ci.d/cirrus/freebsd-12.vars | 2 +- .gitlab-ci.d/cirrus/freebsd-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-12.vars | 2 +- scripts/ci/setup/build-environment.yml

[PATCH v3 2/8] .gitlab-ci.d/windows: do not disable opengl

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau The previous patch should fix shader compilation. Signed-off-by: Marc-André Lureau Reviewed-by: Thomas Huth --- .gitlab-ci.d/windows.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml index a

[PATCH v3 1/8] build-sys: fix crlf-ending C code

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau On msys2, the shader-to-C script produces bad C: ./ui/shader/texture-blit-vert.h:2:5: error: missing terminating " character [-Werror] Fix it by changing the line ending from crlf to lf, and convert the script to Python (qemu build seems perl-free after that). Signed-of

Re: [RFC PATCH v2 13/19] tests: do not run test-hmp on all machines for ARM KVM-only

2023-01-10 Thread Thomas Huth
On 09/01/2023 23.42, Fabiano Rosas wrote: From: Claudio Fontana on ARM we currently list and build all machines, even when building KVM-only, without TCG. Until we fix this (and we only list and build machines that are compatible with KVM), only test specifically using the "virt" machine in th

[PATCH v3 5/8] docs: drop texinfo options

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau It looks like this is no longer wanted, we only build the html output. Signed-off-by: Marc-André Lureau --- docs/conf.py | 13 - 1 file changed, 13 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e33cf3d381..73a287a4f2 100644 --- a/docs/conf.py

Re: [RFC v4 2/3] memory: add depth assert in address_space_to_flatview

2023-01-10 Thread Chuang Xu
Hi, Peter and Paolo, I'm sorry I didn't reply to your email in time. I was infected with COVID-19 two weeks ago, so I couldn't think about the problems discussed in your email for a long time.😷 On 2023/1/4 上午1:43, Peter Xu wrote: > Hi, Paolo, > > On Wed, Dec 28, 2022 at 09:27:50AM +0100, Paolo Bon

[PATCH v2 4/5] hw/i2c/bitbang_i2c: Trace state changes

2023-01-10 Thread Philippe Mathieu-Daudé
Trace bitbang state machine changes with trace events. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/i2c/bitbang_i2c.c | 33 - hw/i2c/trace-events | 3 +++ 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/hw/i2c/bitb

[PATCH v2 2/5] hw/i2c/versatile_i2c: Replace VersatileI2CState -> ArmSbconI2CState

2023-01-10 Thread Philippe Mathieu-Daudé
In order to rename TYPE_VERSATILE_I2C as TYPE_ARM_SBCON_I2C (the formal ARM naming), start renaming its state. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/versatile_i2c.c | 10 +- include/hw/i2c/arm_sbcon_i2c.h | 3 +-- 2 files changed, 6 ins

Re: [PATCH v4 1/1] python/machine: Fix AF_UNIX path too long on macOS

2023-01-10 Thread Philippe Mathieu-Daudé
On 10/1/23 09:07, Peter Delevoryas wrote: On macOS, private $TMPDIR's are the default. These $TMPDIR's are generated from a user's unix UID and UUID [1], which can create a relatively long path: /var/folders/d7/rz20f6hd709c1ty8f6_6y_z4gn/T/ QEMU's avocado tests create a temporary direc

[PATCH v2 3/5] hw/i2c/versatile_i2c: Replace TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C

2023-01-10 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/arm/realview.c | 2 +- hw/arm/versatilepb.c | 2 +- hw/arm/vexpress.c | 2 +- hw/i2c/versatile_i2c.c | 4 ++-- include/hw/i2c/arm_sbcon_i2c.h | 3 +-- 5 files changed, 6 insert

Re: [PATCH v3 1/1] python/machine: Fix AF_UNIX path too long on macOS

2023-01-10 Thread Peter Delevoryas
On Mon, Jan 09, 2023 at 04:09:32PM -0500, John Snow wrote: > On Mon, Jul 25, 2022 at 5:06 AM Daniel P. Berrangé > wrote: > > > > On Fri, Jul 22, 2022 at 11:25:08AM -0700, Peter Delevoryas wrote: > > > On macOS, private $TMPDIR's are the default. These $TMPDIR's are > > > generated from a user's u

[PATCH v3 8/8] lcitool: drop texinfo from QEMU project/dependencies

2023-01-10 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- .gitlab-ci.d/cirrus/freebsd-12.vars | 2 +- .gitlab-ci.d/cirrus/freebsd-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-12.vars | 2 +- tests/docker/dockerfiles/alpine.docker

Re: [PATCH v5 0/1] python/machine: Fix AF_UNIX path too long

2023-01-10 Thread Philippe Mathieu-Daudé
On 10/1/23 09:29, Peter Delevoryas wrote: $ make check-avocado Avocado crashed: TypeError: cannot pickle '_thread.RLock' object Yeah... you have to pick Cleber's patches from https://gitlab.com/cleber.gnu/qemu/-/commits/WIP/tests_fixes and run as: $ TMPDIR=/tmp avocado run --test-runner=nr

[PATCH v2 2/5] hw/i2c/bitbang_i2c: Remove unused dummy MemoryRegion

2023-01-10 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/bitbang_i2c.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/i2c/bitbang_i2c.c b/hw/i2c/bitbang_i2c.c index ac84bf0262..e41cb63daa 100644 --- a/hw/i2c/bitbang_i2c.c +++ b/hw/i2c/bitbang

[PATCH v4 1/1] python/machine: Fix AF_UNIX path too long on macOS

2023-01-10 Thread Peter Delevoryas
On macOS, private $TMPDIR's are the default. These $TMPDIR's are generated from a user's unix UID and UUID [1], which can create a relatively long path: /var/folders/d7/rz20f6hd709c1ty8f6_6y_z4gn/T/ QEMU's avocado tests create a temporary directory prefixed by "avo_qemu_sock_", and create

[PATCH v2 0/5] hw/i2c: Rename TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C

2023-01-10 Thread Philippe Mathieu-Daudé
Series fully reviewed. Since v1: - Updated MAINTAINERS - Picked R-b tags --- Lot of churn for what started as a QOM cleanup. We have: typedef ArmSbconI2CState VersatileI2CState; // [*] DECLARE_INSTANCE_CHECKER(VersatileI2CState, VERSATILE_I2C, TYPE_VERSATILE_I2C)

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-10 Thread Michael S. Tsirkin
On Tue, Jan 10, 2023 at 02:08:34AM -0500, Chuck Zmudzinski wrote: > Intel specifies that the Intel IGD must occupy slot 2 on the PCI bus, > as noted in docs/igd-assign.txt in the Qemu source code. > > Currently, when the xl toolstack is used to configure a Xen HVM guest with > Intel IGD passthroug

[PATCH v2 1/5] hw/i2c/versatile_i2c: Drop useless casts from void * to pointer

2023-01-10 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/versatile_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i2c/versatile_i2c.c b/hw/i2c/versatile_i2c.c index 3a04ba3969..52a650f45e 100644 --- a/hw/i2c/versatile_i2c.c +++ b/hw/i2c/ve

Re: [PATCH v3 6/8] Update lcitool and fedora to 37

2023-01-10 Thread Thomas Huth
On 10/01/2023 09.02, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Fedora 35 is EOL, upstream lcitool replaced it with 37. Signed-off-by: Marc-André Lureau --- ... diff --git a/tests/lcitool/libvirt-ci b/tests/lcitool/libvirt-ci index e3eb28cf2e..319a534c22 16 --- a/tests/l

[PATCH] remove unnecessary extern "C" blocks

2023-01-10 Thread Paolo Bonzini
A handful of header files in QEMU are wrapped with extern "C" blocks. These are not necessary: there are C++ source files anymore in QEMU, and even where there were some, they did not include most of these files anyway. Remove them for consistency. Signed-off-by: Paolo Bonzini --- include/disas

[PATCH v4 09/11] iotests.py: pause_job(): drop return value

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
The returned value is unused. It's simple to check by command git grep -B 3 '\.pause_job(' Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iote

[PATCH v2 5/5] hw/i2c/bitbang_i2c: Convert DPRINTF() to trace events

2023-01-10 Thread Philippe Mathieu-Daudé
Convert the remaining DPRINTF debug macro uses to tracepoints. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/bitbang_i2c.c | 18 ++ hw/i2c/trace-events | 4 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/hw/i2c/bitbang_i

[PATCH v4 01/11] python: rename QEMUMonitorProtocol.cmd() to cmd_raw()

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
Having cmd() and command() methods in one class doesn't look good. Rename cmd() to cmd_raw(), to show its meaning better. We also want to rename command() to cmd() in future, so this commit is a necessary first step. Keep new cmd_raw() only in a few places where it's really needed and move to com

[PATCH v2 0/5] hw/i2c/bitbang_i2c: Housekeeping

2023-01-10 Thread Philippe Mathieu-Daudé
Series fully reviewed. Since v1: - Fixed overwritten RECEIVING_BIT7 entry (Richard) - Picked R-b tags - Remove unused dummy MemoryRegion - Convert DPRINTF() to using trace events (series used as base for follow-up, better if merged via ARM tree) Philippe Mathieu-Daudé (5): hw/i2c/bitbang_i2c:

[PATCH v4 04/11] iotests: QemuStorageDaemon: add cmd() method like in QEMUMachine.

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
Add similar method for consistency. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 4 1 file changed, 4 insertions(+) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index c69b10ac82..dd08cd8a2b 100644 --- a/tests/qemu-iotests/iot

[PATCH v4 06/11] iotests: refactor some common qmp result checks into generic pattern

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
To simplify further conversion. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/040 | 3 ++- tests/qemu-iotests/147 | 3 ++- tests/qemu-iotests/155 | 4 ++-- tests/qemu-iotests/218 | 4 ++-- tests/qemu-iotests/296 | 3 ++- 5 files changed, 10 insertions(+), 7 deletions(-) dif

[PATCH v4 0/1] python/machine: Fix AF_UNIX path too long

2023-01-10 Thread Peter Delevoryas
v1: https://lore.kernel.org/qemu-devel/20220705214659.73369-1-pe...@pjd.dev/ v2: https://lore.kernel.org/qemu-devel/20220716173434.17183-1-pe...@pjd.dev/ v3: - Changed QEMUMachine._name to f"{id(self):x}". Suggestion was to do f"{id(self):02x}", but the id's look like they are probably ju

[PATCH v4 08/11] iotests: drop some extra ** in qmp() call

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
qmp() method supports passing dict (if it doesn't need substituting '_' to '-' in keys). So, drop some extra '**' operators. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/040| 4 +- tests/qemu-iotests/041| 14 +++--- tests/qem

[PATCH v4 05/11] iotests: add some missed checks of qmp result

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/041| 1 + tests/qemu-iotests/151| 1 + tests/qemu-iotests/152| 2 ++ tests/qemu-iotests/tests/migrate-bitmaps-test | 2 ++ 4 files changed, 6 insertions(+) d

[PATCH v2 1/5] hw/i2c/bitbang_i2c: Define TYPE_GPIO_I2C in public header

2023-01-10 Thread Philippe Mathieu-Daudé
Define TYPE_GPIO_I2C in the public "hw/i2c/bitbang_i2c.h" header and use it in hw/arm/musicpal.c. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/arm/musicpal.c| 3 ++- hw/i2c/bitbang_i2c.c | 1 - include/hw/i2c/bitbang_i2c.h | 2 ++ 3 files chang

Re: [PATCH v2 3/5] thread: de-const qemu_spin_destroy

2023-01-10 Thread Alex Bennée
Emilio Cota writes: > Signed-off-by: Emilio Cota > --- > include/qemu/thread.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/include/qemu/thread.h b/include/qemu/thread.h > index 7c6703bce3..7841084199 100644 > --- a/include/qemu/thread.h > +++ b/include/qemu/t

Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory

2023-01-10 Thread Chao Peng
On Mon, Jan 09, 2023 at 07:32:05PM +, Sean Christopherson wrote: > On Fri, Jan 06, 2023, Chao Peng wrote: > > On Thu, Jan 05, 2023 at 11:23:01AM +, Jarkko Sakkinen wrote: > > > On Fri, Dec 02, 2022 at 02:13:41PM +0800, Chao Peng wrote: > > > > To make future maintenance easy, internally use

Re: [PATCH 4/5] hw/i2c/bitbang_i2c: Trace state changes

2023-01-10 Thread Philippe Mathieu-Daudé
On 9/1/23 17:07, Richard Henderson wrote: On 1/9/23 00:41, Philippe Mathieu-Daudé wrote: +    NAME(WAITING_FOR_ACK), +    [RECEIVING_BIT7] = "RECEIVING_BIT7 (ACK)", +    NAME(RECEIVING_BIT7), You've overwritten your special case. Oops good catch. Otherwise, Reviewed-by: Richard Henderson

[PATCH v2 3/5] hw/i2c/bitbang_i2c: Change state calling bitbang_i2c_set_state() helper

2023-01-10 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/bitbang_i2c.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/hw/i2c/bitbang_i2c.c b/hw/i2c/bitbang_i2c.c index e41cb63daa..bf4b781393 100644 --- a/hw/i2c/bitbang_i2c.c ++

Re: [PATCH v4 15/17] ui: Don't check for mode change after mouse_set error

2023-01-10 Thread Daniel P . Berrangé
On Mon, Jan 09, 2023 at 08:03:19PM +0100, Markus Armbruster wrote: > hmp_mouse_set() doesn't bail out when it can't find a mouse. > Harmless, since qemu_input_check_mode_change() should be a no-op then. > Clean it up anyway. > > Signed-off-by: Markus Armbruster > --- > ui/input.c | 1 + > 1 file

[PATCH v4 07/11] iotests: drop some occasional semicolons

2023-01-10 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/041 | 2 +- tests/qemu-iotests/196 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041 index 4d7a829b65..550e4dc391 100755 --- a/tests/qemu-iotests/041 +++ b/tests

<    1   2   3   4