[PATCH] linux-headers: Update to Linux v6.6-rc1

2023-09-12 Thread Thomas Huth
This update contains the required header changes for the "target/s390x: AP-passthrough for PV guests" patch from Steffen Eiden. Signed-off-by: Thomas Huth --- See https://lore.kernel.org/qemu-devel/20230823142219.1046522-1-sei...@linux.ibm.com/ I'll add this patch to my next pull request

Re: [PATCH 02/11] hw/i386/pc: Use qdev_prop_set_array()

2023-09-12 Thread Peter Maydell
On Mon, 11 Sept 2023 at 17:42, Kevin Wolf wrote: > > Am 11.09.2023 um 17:42 hat Peter Maydell geschrieben: > > On Fri, 8 Sept 2023 at 15:37, Kevin Wolf wrote: > > > > > > Instead of manually setting "foo-len" and "foo[i]" properties, build a > > > QList and use the new qdev_prop_set_array()

RE: [PATCH v2 00/10] Adds CPU hot-plug support to Loongarch

2023-09-12 Thread Salil Mehta via
Hi Xianglai, > From: qemu-devel-bounces+salil.mehta=huawei@nongnu.org bounces+salil.mehta=huawei@nongnu.org> On Behalf Of xianglai li > Sent: Tuesday, September 12, 2023 3:12 AM > To: qemu-devel@nongnu.org > Cc: Salil Mehta ; Xiaojuan Yang > ; Song Gao ; Michael S. > Tsirkin ; Igor

Re: [PATCH RESEND v5 51/57] target/loongarch: Implement xvinsgr2vr xvpickve2gr

2023-09-12 Thread gaosong
在 2023/9/12 上午6:27, Richard Henderson 写道: On 9/7/23 01:31, Song Gao wrote: +static bool trans_xvinsgr2vr_w(DisasContext *ctx, arg_vr_i *a) +{ +    if (!avail_LASX(ctx)) { +    return false; +    } +    return trans_vinsgr2vr_w(ctx, a); +} Using the other translator doesn't help. static

[PATCH v4 0/5] Implement reconnect for vhost-user-scsi

2023-09-12 Thread Li Feng
This patchset adds reconnect support for vhost-user-scsi. At the same time, improve the error messages and silent errors are now reported. And fix a lost reconnect issue for all vhost-user backend. Changes for v4: - Merge https://lore.kernel.org/all/20230830045722.611224-1-fen...@smartx.com/

[PATCH v4 4/5] vhost-user-scsi: start vhost when guest kicks

2023-09-12 Thread Li Feng
Let's keep the same behavior as vhost-user-blk. Some old guests kick virtqueue before setting VIRTIO_CONFIG_S_DRIVER_OK. Signed-off-by: Li Feng --- hw/scsi/vhost-user-scsi.c | 51 +++ 1 file changed, 46 insertions(+), 5 deletions(-) diff --git

[PATCH v4 2/5] vhost: move and rename the conn retry times

2023-09-12 Thread Li Feng
Multiple devices need this macro, move it to a common header. Signed-off-by: Li Feng Reviewed-by: Raphael Norwitz --- hw/block/vhost-user-blk.c | 4 +--- hw/virtio/vhost-user-gpio.c | 3 +-- include/hw/virtio/vhost.h | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH v4 5/5] vhost-user: fix lost reconnect

2023-09-12 Thread Li Feng
When the vhost-user is reconnecting to the backend, and if the vhost-user fails at the get_features in vhost_dev_init(), then the reconnect will fail and it will not be retriggered forever. The reason is: When the vhost-user fails at get_features, the vhost_dev_cleanup will be called immediately.

[PATCH v4 1/5] vhost-user-common: send get_inflight_fd once

2023-09-12 Thread Li Feng
Currently the get_inflight_fd will be sent every time the device is started, and the backend will allocate shared memory to save the inflight state. If the backend finds that it receives the second get_inflight_fd, it will release the previous shared memory, which breaks inflight working logic.

[PATCH v4 3/5] vhost-user-scsi: support reconnect to backend

2023-09-12 Thread Li Feng
If the backend crashes and restarts, the device is broken. This patch adds reconnect for vhost-user-scsi. This patch also improves the error messages, and reports some silent errors. Tested with spdk backend. Signed-off-by: Li Feng --- hw/scsi/vhost-scsi-common.c | 16 +-

Re: [PATCH v11 0/9] rutabaga_gfx + gfxstream

2023-09-12 Thread Alyssa Ross
Gurchetan Singh writes: > On Fri, Aug 25, 2023 at 12:37 PM Alyssa Ross wrote: > >> Alyssa Ross writes: >> >> > Gurchetan Singh writes: >> > >> >> On Fri, Aug 25, 2023 at 12:11 AM Alyssa Ross wrote: >> >> >> >>> Gurchetan Singh writes: >> >>> >> >>> > On Wed, Aug 23, 2023 at 4:07 AM Alyssa

Re: [PATCH v7 14/18] cpu: Call plugin hooks only when ready

2023-09-12 Thread Philippe Mathieu-Daudé
Hi Akihiko, On 12/9/23 09:12, Akihiko Odaki wrote: The initialization and exit hooks will not affect the state of vCPU, What about: qemu_plugin_vcpu_init_hook() -> plugin_cpu_update__locked() -> plugin_cpu_update__async() -> bitmap_copy(cpu->plugin_mask, ...)

Re: riscv64 virt board crash upon startup

2023-09-12 Thread Laszlo Ersek
On 9/11/23 15:12, Laszlo Ersek wrote: > On 9/11/23 10:53, Gerd Hoffmann wrote: >> On Mon, Sep 11, 2023 at 12:12:43PM +0400, Marc-André Lureau wrote: Gerd, here's the question for you: why are "device" and "head" QOM properties in the first place? What are they needed for? >>> >>>

Re: [PATCH v3 2/2] vhost: Add Error parameter to vhost_scsi_common_start()

2023-09-12 Thread Li Feng
> On 1 Sep 2023, at 8:00 PM, Markus Armbruster wrote: > > Li Feng mailto:fen...@smartx.com>> writes: > >> Add a Error parameter to report the real error, like vhost-user-blk. >> >> Signed-off-by: Li Feng >> --- >> hw/scsi/vhost-scsi-common.c | 16 +--- >>

Re: [PATCH v3 4/5] vhost-user-scsi: support reconnect to backend

2023-09-12 Thread Li Feng
> On 1 Sep 2023, at 8:00 PM, Markus Armbruster wrote: > > Li Feng mailto:fen...@smartx.com>> writes: > >> If the backend crashes and restarts, the device is broken. >> This patch adds reconnect for vhost-user-scsi. >> >> Tested with spdk backend. >> >> Signed-off-by: Li Feng >> --- >>

Re: [PATCH qemu 2/2] dump: Only use the makedumpfile flattened format when necessary

2023-09-12 Thread Daniel P . Berrangé
On Tue, Sep 12, 2023 at 10:34:04AM +0400, Marc-André Lureau wrote: > Hi > > On Wed, Aug 23, 2023 at 2:03 PM Marc-André Lureau > wrote: > > > > Hi > > > > On Wed, Aug 23, 2023 at 4:31 AM Stephen Brennan > > wrote: > > > > > > Stephen Brennan writes: > > > > Marc-André Lureau writes: > > > >> I

Re: [PATCH v2 03/10] make qdev_disconnect_gpio_out_named() public

2023-09-12 Thread Philippe Mathieu-Daudé
Hi, On 12/9/23 04:11, xianglai li wrote: It will be reused in loongarch/virt.c for unwiring the vcpu<->exioi interrupts for the vcpu hot-(un)plug cases. Since we never had to use this, I'm surprised we really need it. QEMU IRQs/GPIOs are similar to hardware ones, and aren't expected to be

Re: [PATCH v3 5/5] vhost-user-scsi: start vhost when guest kicks

2023-09-12 Thread Li Feng
> On 1 Sep 2023, at 7:44 PM, Markus Armbruster wrote: > > Li Feng mailto:fen...@smartx.com>> writes: > >> Let's keep the same behavior as vhost-user-blk. >> >> Some old guests kick virtqueue before setting VIRTIO_CONFIG_S_DRIVER_OK. >> >> Signed-off-by: Li Feng >> --- >>

Re: [PATCH qemu 2/2] dump: Only use the makedumpfile flattened format when necessary

2023-09-12 Thread Thomas Huth
On Tue, 2023-09-12 at 10:34 +0400, Marc-André Lureau wrote: > Hi > > On Wed, Aug 23, 2023 at 2:03 PM Marc-André Lureau > wrote: > > > > Hi > > > > On Wed, Aug 23, 2023 at 4:31 AM Stephen Brennan > > wrote: > > > > > > Stephen Brennan writes: > > > > Marc-André Lureau writes: > > > > > I am

[PATCH v7 08/18] gdbstub: Use GDBFeature for gdb_register_coprocessor

2023-09-12 Thread Akihiko Odaki
This is a tree-wide change to introduce GDBFeature parameter to gdb_register_coprocessor(). The new parameter just replaces num_regs and xml parameters for now. GDBFeature will be utilized to simplify XML lookup in a following change. Signed-off-by: Akihiko Odaki Acked-by: Alex Bennée ---

[PATCH v7 11/18] hw/core/cpu: Remove gdb_get_dynamic_xml member

2023-09-12 Thread Akihiko Odaki
This function is no longer used. Signed-off-by: Akihiko Odaki --- include/hw/core/cpu.h | 4 target/arm/cpu.h | 6 -- target/ppc/cpu.h | 1 - target/arm/cpu.c | 1 - target/arm/gdbstub.c | 18 -- target/ppc/cpu_init.c | 3 --- target/ppc/gdbstub.c

[PATCH v7 10/18] gdbstub: Simplify XML lookup

2023-09-12 Thread Akihiko Odaki
Now we know all instances of GDBFeature that is used in CPU so we can traverse them to find XML. This removes the need for a CPU-specific lookup function for dynamic XMLs. Signed-off-by: Akihiko Odaki --- gdbstub/gdbstub.c | 23 +-- 1 file changed, 9 insertions(+), 14

[PATCH v7 13/18] gdbstub: Expose functions to read registers

2023-09-12 Thread Akihiko Odaki
gdb_find_feature() and gdb_find_feature_register() find registers. gdb_read_register() actually reads registers. Signed-off-by: Akihiko Odaki --- include/exec/gdbstub.h | 5 + gdbstub/gdbstub.c | 50 +- 2 files changed, 54 insertions(+), 1

[PATCH v7 14/18] cpu: Call plugin hooks only when ready

2023-09-12 Thread Akihiko Odaki
The initialization and exit hooks will not affect the state of vCPU, but they may depend on the state of vCPU. Therefore, it's better to call plugin hooks after the vCPU state is fully initialized and before it gets uninitialized. Signed-off-by: Akihiko Odaki --- cpu.c| 11

[PATCH v7 01/18] gdbstub: Add num_regs member to GDBFeature

2023-09-12 Thread Akihiko Odaki
Currently the number of registers exposed to GDB is written as magic numbers in code. Derive the number of registers GDB actually see from XML files to replace the magic numbers in code later. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée ---

[PATCH v7 07/18] target/riscv: Use GDBFeature for dynamic XML

2023-09-12 Thread Akihiko Odaki
In preparation for a change to use GDBFeature as a parameter of gdb_register_coprocessor(), convert the internal representation of dynamic feature from plain XML to GDBFeature. Signed-off-by: Akihiko Odaki --- target/riscv/cpu.h | 4 +-- target/riscv/cpu.c | 4 +--

[PATCH v7 17/18] plugins: Support C++

2023-09-12 Thread Akihiko Odaki
Make qemu-plugin.h consumable for C++ platform. Signed-off-by: Akihiko Odaki --- include/qemu/qemu-plugin.h | 4 1 file changed, 4 insertions(+) diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 40aae8db68..55f514ca6c 100644 --- a/include/qemu/qemu-plugin.h +++

[PATCH v7 16/18] contrib/plugins: Allow to log registers

2023-09-12 Thread Akihiko Odaki
This demonstrates how a register can be read from a plugin. Signed-off-by: Akihiko Odaki --- docs/devel/tcg-plugins.rst | 10 +++- contrib/plugins/execlog.c | 120 +++-- 2 files changed, 97 insertions(+), 33 deletions(-) diff --git a/docs/devel/tcg-plugins.rst

[PATCH v7 09/18] gdbstub: Use GDBFeature for GDBRegisterState

2023-09-12 Thread Akihiko Odaki
Simplify GDBRegisterState by replacing num_regs and xml members with one member that points to GDBFeature. Signed-off-by: Akihiko Odaki --- gdbstub/gdbstub.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index

[PATCH v7 03/18] hw/core/cpu: Replace gdb_core_xml_file with gdb_core_feature

2023-09-12 Thread Akihiko Odaki
This is a tree-wide change to replace gdb_core_xml_file, the path to GDB XML file with gdb_core_feature, the pointer to GDBFeature. This also replaces the values assigned to gdb_num_core_regs with the num_regs member of GDBFeature where applicable to remove magic numbers. A following change will

[PATCH v7 06/18] target/ppc: Use GDBFeature for dynamic XML

2023-09-12 Thread Akihiko Odaki
In preparation for a change to use GDBFeature as a parameter of gdb_register_coprocessor(), convert the internal representation of dynamic feature from plain XML to GDBFeature. Signed-off-by: Akihiko Odaki Reviewed-by: Richard Henderson --- target/ppc/cpu-qom.h | 3 +-- target/ppc/cpu.h

[PATCH v7 05/18] target/arm: Use GDBFeature for dynamic XML

2023-09-12 Thread Akihiko Odaki
In preparation for a change to use GDBFeature as a parameter of gdb_register_coprocessor(), convert the internal representation of dynamic feature from plain XML to GDBFeature. Signed-off-by: Akihiko Odaki Acked-by: Richard Henderson --- target/arm/cpu.h | 20 +++---

[PATCH v7 15/18] plugins: Allow to read registers

2023-09-12 Thread Akihiko Odaki
It is based on GDB protocol to ensure interface stability. The timing of the vcpu init hook is also changed so that the hook will get called after GDB features are initialized. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1706 Signed-off-by: Akihiko Odaki ---

[PATCH v7 12/18] gdbstub: Add members to identify registers to GDBFeature

2023-09-12 Thread Akihiko Odaki
These members will be used to help plugins to identify registers. The added members in instances of GDBFeature dynamically generated by CPUs will be filled in later changes. Signed-off-by: Akihiko Odaki --- include/exec/gdbstub.h | 3 +++ gdbstub/gdbstub.c | 10 --

[PATCH v7 18/18] contrib/plugins: Add cc plugin

2023-09-12 Thread Akihiko Odaki
This demonstrates how to write a plugin in C++. Signed-off-by: Akihiko Odaki --- docs/devel/tcg-plugins.rst | 8 configure | 15 --- contrib/plugins/Makefile | 5 + contrib/plugins/cc.cc | 17 + tests/tcg/Makefile.target | 3

[PATCH v7 00/18] plugins: Allow to read registers

2023-09-12 Thread Akihiko Odaki
Based-on: <20230912065811.27796-1-akihiko.od...@daynix.com> ("[PATCH v2 00/11] gdbstub and TCG plugin improvements") I and other people in the University of Tokyo, where I research processor design, found TCG plugins are very useful for processor design exploration. The feature we find missing

[PATCH v7 02/18] gdbstub: Introduce gdb_find_static_feature()

2023-09-12 Thread Akihiko Odaki
This function is useful to determine the number of registers exposed to GDB from the XML name. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson --- include/exec/gdbstub.h | 2 ++ gdbstub/gdbstub.c | 13

[PATCH v7 04/18] gdbstub: Introduce GDBFeatureBuilder

2023-09-12 Thread Akihiko Odaki
GDBFeatureBuilder unifies the logic to generate dynamic GDBFeature. Signed-off-by: Akihiko Odaki Reviewed-by: Richard Henderson --- include/exec/gdbstub.h | 20 ++ gdbstub/gdbstub.c | 59 ++ 2 files changed, 79 insertions(+) diff --git

Re: [PATCH v2 2/2] ui: add precondition for dpy_get_ui_info()

2023-09-12 Thread Albert Esteve
On Tue, Sep 12, 2023 at 8:28 AM wrote: > From: Marc-André Lureau > > Ensure that it only get called when dpy_ui_info_supported(). The > function should always return a result. There should be a non-null > console or active_console. > > Modify the argument to be const as well. > > Signed-off-by:

[PATCH v2 10/11] gdbstub: Remove gdb_has_xml variable

2023-09-12 Thread Akihiko Odaki
GDB has XML support since 6.7 which was released in 2007. It's time to remove support for old GDB versions without XML support. Signed-off-by: Akihiko Odaki --- gdbstub/internals.h| 2 -- include/exec/gdbstub.h | 8 gdbstub/gdbstub.c | 15 --- 3 files changed, 25

[PATCH v2 06/11] hw/core/cpu: Return static value with gdb_arch_name()

2023-09-12 Thread Akihiko Odaki
All implementations of gdb_arch_name() returns dynamic duplicates of static strings. It's also unlikely that there will be an implementation of gdb_arch_name() that returns a truly dynamic value due to the nature of the function returning a well-known identifiers. Qualify the value gdb_arch_name()

[PATCH v2 08/11] target/arm: Remove references to gdb_has_xml

2023-09-12 Thread Akihiko Odaki
GDB has XML support since 6.7 which was released in 2007. It's time to remove support for old GDB versions without XML support. Signed-off-by: Akihiko Odaki Acked-by: Alex Bennée --- target/arm/gdbstub.c | 32 ++-- 1 file changed, 2 insertions(+), 30 deletions(-)

Re: [PATCH v2 04/10] Introduce the CPU address space destruction function

2023-09-12 Thread David Hildenbrand
On 12.09.23 04:11, xianglai li wrote: Introduce new function to destroy CPU address space resources for cpu hot-(un)plug. How do other archs handle that? Or how are they able to get away without destroying? -- Cheers, David / dhildenb

[PATCH v2 09/11] target/ppc: Remove references to gdb_has_xml

2023-09-12 Thread Akihiko Odaki
GDB has XML support since 6.7 which was released in 2007. It's time to remove support for old GDB versions without XML support. Signed-off-by: Akihiko Odaki --- target/ppc/gdbstub.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/target/ppc/gdbstub.c

Re: [PATCH v1 2/2] target/s390x: flag te and cte as deprecated

2023-09-12 Thread David Hildenbrand
On 11.09.23 22:52, Collin Walling wrote: Add the CONSTRAINT_TRANSACTIONAL_EXE (cte) and TRANSACTIONAL_EXE (te) under the list of deprecated features. Signed-off-by: Collin Walling --- target/s390x/cpu_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 11/11] gdbstub: Replace gdb_regs with an array

2023-09-12 Thread Akihiko Odaki
An array is a more appropriate data structure than a list for gdb_regs since it is initialized only with append operation and read-only after initialization. Signed-off-by: Akihiko Odaki --- include/hw/core/cpu.h | 2 +- gdbstub/gdbstub.c | 34 -- 2 files

[PATCH v2 05/11] target/arm: Move the reference to arm-core.xml

2023-09-12 Thread Akihiko Odaki
Some subclasses overwrite gdb_core_xml_file member but others don't. Always initialize the member in the subclasses for consistency. This especially helps for AArch64; in a following change, the file specified by gdb_core_xml_file is always looked up even if it's going to be overwritten later.

[PATCH v2 04/11] gdbstub: Introduce GDBFeature structure

2023-09-12 Thread Akihiko Odaki
Before this change, the information from a XML file was stored in an array that is not descriptive. Introduce a dedicated structure type to make it easier to understand and to extend with more fields. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée

Re: [PATCH v2 1/2] ui: fix crash when there are no active_console

2023-09-12 Thread Albert Esteve
On Tue, Sep 12, 2023 at 8:28 AM wrote: > From: Marc-André Lureau > > Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. > 0x55888630 in dpy_ui_info_supported (con=0x0) at > ../ui/console.c:812 > 812 return con->hw_ops->ui_info != NULL; > (gdb) bt > #0

[PATCH v2 03/11] contrib/plugins: Use GRWLock in execlog

2023-09-12 Thread Akihiko Odaki
execlog had the following comment: > As we could have multiple threads trying to do this we need to > serialise the expansion under a lock. Threads accessing already > created entries can continue without issue even if the ptr array > gets reallocated during resize. However, when the ptr array

[PATCH v2 07/11] gdbstub: Use g_markup_printf_escaped()

2023-09-12 Thread Akihiko Odaki
g_markup_printf_escaped() is a safer alternative to simple printf() as it automatically escapes values. Signed-off-by: Akihiko Odaki --- gdbstub/gdbstub.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/gdbstub/gdbstub.c

[PATCH v2 00/11] gdbstub and TCG plugin improvements

2023-09-12 Thread Akihiko Odaki
This series extracts fixes and refactorings that can be applied independently from "[PATCH RESEND v5 00/26] plugins: Allow to read registers" as suggested by Nicholas Piggin. Patch "target/ppc: Remove references to gdb_has_xml" is also updated to remove some dead code I missed earlier and thus

[PATCH v2 01/11] gdbstub: Fix target_xml initialization

2023-09-12 Thread Akihiko Odaki
target_xml is no longer a fixed-length array but a pointer to a variable-length memory. Fixes: 56e534bd11 ("gdbstub: refactor get_feature_xml") Signed-off-by: Akihiko Odaki --- gdbstub/softmmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbstub/softmmu.c

[PATCH v2 02/11] gdbstub: Fix target.xml response

2023-09-12 Thread Akihiko Odaki
It was failing to return target.xml after the first request. Fixes: 56e534bd11 ("gdbstub: refactor get_feature_xml") Signed-off-by: Akihiko Odaki --- gdbstub/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index

Re: [PATCH v1 1/2] target/s390x: introduce "host-recommended" option for model expansion

2023-09-12 Thread David Hildenbrand
On 11.09.23 22:52, Collin Walling wrote: Patch subject is wrong (should contain "static-recommended") Newer S390 machines may drop support for features completely, rendering guests operating with older CPU models incapable of running on said machines. A manual effort to disable certain CPU

Re: [PATCH] vdpa: fix gcc cvq_isolated uninitialized variable warning

2023-09-12 Thread Eugenio Perez Martin
On Mon, Sep 11, 2023 at 11:54 PM Stefan Hajnoczi wrote: > > gcc 13.2.1 emits the following warning: > > net/vhost-vdpa.c: In function ‘net_vhost_vdpa_init.constprop’: > net/vhost-vdpa.c:1394:25: error: ‘cvq_isolated’ may be used uninitialized > [-Werror=maybe-uninitialized] >1394 |

Re: [PATCH qemu 2/2] dump: Only use the makedumpfile flattened format when necessary

2023-09-12 Thread Marc-André Lureau
Hi On Wed, Aug 23, 2023 at 2:03 PM Marc-André Lureau wrote: > > Hi > > On Wed, Aug 23, 2023 at 4:31 AM Stephen Brennan > wrote: > > > > Stephen Brennan writes: > > > Marc-André Lureau writes: > > >> I am a bit reluctant to change the dump format by default. But since the > > >> flatten format

[PATCH v2 2/2] ui: add precondition for dpy_get_ui_info()

2023-09-12 Thread marcandre . lureau
From: Marc-André Lureau Ensure that it only get called when dpy_ui_info_supported(). The function should always return a result. There should be a non-null console or active_console. Modify the argument to be const as well. Signed-off-by: Marc-André Lureau --- include/ui/console.h | 2 +-

[PATCH v2 1/2] ui: fix crash when there are no active_console

2023-09-12 Thread marcandre . lureau
From: Marc-André Lureau Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. 0x55888630 in dpy_ui_info_supported (con=0x0) at ../ui/console.c:812 812 return con->hw_ops->ui_info != NULL; (gdb) bt #0 0x55888630 in dpy_ui_info_supported (con=0x0) at

Re: [PATCH] ui: fix crash when there are no active_console

2023-09-12 Thread Marc-André Lureau
Hi On Mon, Sep 11, 2023 at 6:44 PM Albert Esteve wrote: > > > > On Mon, Sep 11, 2023 at 4:08 PM wrote: >> >> From: Marc-André Lureau >> >> Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. >> 0x55888630 in dpy_ui_info_supported (con=0x0) at ../ui/console.c:812 >>

Re: [PATCH] vdpa: fix gcc cvq_isolated uninitialized variable warning

2023-09-12 Thread Philippe Mathieu-Daudé
On 11/9/23 23:54, Stefan Hajnoczi wrote: gcc 13.2.1 emits the following warning: net/vhost-vdpa.c: In function ‘net_vhost_vdpa_init.constprop’: net/vhost-vdpa.c:1394:25: error: ‘cvq_isolated’ may be used uninitialized [-Werror=maybe-uninitialized] 1394 | s->cvq_isolated =

Re: [PULL v2 38/45] hw/riscv/virt.c: fix non-KVM --enable-debug build

2023-09-12 Thread Michael Tokarev
12.09.2023 00:43, Daniel Henrique Barboza: On 9/11/23 16:54, Michael Tokarev wrote: ...   /* KVM AIA only has one APLIC instance */ -    if (virt_use_kvm_aia(s)) { +    if (kvm_enabled() && virt_use_kvm_aia(s)) {   create_fdt_socket_aplic(s, memmap, 0, ... As has been discovered

<    1   2   3   4