Misc HW patches for 2024-04-02
The following changes since commit 7fcf7575f3d201fc84ae168017ffdfd6c86257a6:
Merge tag 'pull-target-arm-20240402' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-04-02 11:34:49 +0100)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20240402
for you to fetch changes up to 4c54f5bc8e1d38f15cc35b6a6932d8fbe219c692:
hw/net/virtio-net: fix qemu set used ring flag even vhost started (2024-04-02 16:15:07 +0200)
----------------------------------------------------------------
Misc HW patch queue
- MAINTAINERS updates (Zhao, Glenn)
- Replace incorrect mentions of 'softmmu' by 'system' (Phil)
- Avoid using inlined functions with external linkage (Phil)
- Restrict CXL to x86 PC PCI-based machines (Phil)
- Remove unnecessary NULL check in bdrv_pad_request (Kevin)
- Fix a pair of -Werror=maybe-uninitialized (Marc-André)
- Initialize variable in xen_evtchn_soft_reset (Artem)
- Do not access virtio-net tx queue until vhost is started (Yajun)
----------------------------------------------------------------
Artem Chernyshev (1):
hw/xen_evtchn: Initialize flush_kvm_routes
Glenn Miles (1):
gpio/pca955x: Update maintainer email address
Kevin Wolf (1):
block: Remove unnecessary NULL check in bdrv_pad_request()
Marc-André Lureau (2):
plugins: fix -Werror=maybe-uninitialized false-positive hw/nvme: fix -Werror=maybe-uninitialized
Philippe Mathieu-Daudé (8):
accel/tcg/plugin: Remove CONFIG_SOFTMMU_GATE definition
gdbstub: Correct invalid mentions of 'softmmu' by 'system' gdbstub/system: Rename 'user_ctx' argument as 'ctx' target/ppc: Rename init_excp_4xx_softmmu() -> init_excp_4xx() hw/arm/smmu: Avoid using inlined functions with external linkage again accel/hvf: Un-inline hvf_arch_supports_guest_debug() qtest/libqos: Reduce size_to_prdtl() declaration scope hw/i386/pc: Restrict CXL to PCI-based machines
Yajun Wu (1):
hw/net/virtio-net: fix qemu set used ring flag even vhost started
Zhao Liu (1):
MAINTAINERS: Fix error-report.c entry
MAINTAINERS | 4 ++-- gdbstub/internals.h | 26 +++++++++++++------------- tests/qtest/libqos/ahci.h | 1 - accel/tcg/plugin-gen.c | 6 ------ block/io.c | 2 +- gdbstub/system.c | 10 +++++----- hw/arm/smmu-common.c | 2 +- hw/i386/kvm/xen_evtchn.c | 2 +- hw/i386/pc.c | 4 +++- hw/net/virtio-net.c | 4 ++++ hw/nvme/ctrl.c | 2 +- plugins/loader.c | 2 +- target/arm/hvf/hvf.c | 2 +- target/i386/hvf/hvf.c | 2 +- target/ppc/cpu_init.c | 4 ++-- tests/qtest/libqos/ahci.c | 2 +- 16 files changed, 37 insertions(+), 38 deletions(-)
Signature · 1 line
2.41.0
[PULL 02/15] gdbstub: Correct invalid mentions of 'softmmu' by 'system'
Message-Id: <[email protected]>
--- gdbstub/internals.h | 20 ++++++++++---------- gdbstub/system.c | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-)
gdbstub/internals.h +10 -10
@@ -115,7 +115,7 @@ void gdb_read_byte(uint8_t ch);/* * Packet acknowledgement - we handle this slightly differently -* between user and softmmu mode, mainly to deal with the differences +* between user and system mode, mainly to deal with the differences * between the flexible chardev and the direct fd approaches. * * We currently don't support a negotiated QStartNoAckMode
@@ -125,7 +125,7 @@ void gdb_read_byte(uint8_t ch);* gdb_got_immediate_ack() - check ok to continue * * Returns true to continue, false to re-transmit for user only, the -* softmmu stub always returns true. +* system stub always returns true. */ bool gdb_got_immediate_ack (void );/* utility helpers */
@@ -135,12 +135,12 @@ CPUState *gdb_first_attached_cpu(void);void gdb_append_thread_id (CPUState *cpu,GString *buf);int gdb_get_cpu_index (CPUState *cpu);unsigned int gdb_get_max_cpus (void );/* both */ -bool gdb_can_reverse (void );/* softmmu, stub for user */ +bool gdb_can_reverse (void );/* system emulation, stub for user */ int gdb_target_sigtrap (void );/* user */ void gdb_create_default_process (GDBState *s); -/* signal mapping, common for softmmu, specialised for user-mode */ +/* signal mapping, common for system, specialised for user-mode */ int gdb_signal_to_target (int sig);int gdb_target_signal_to_gdb (int sig);
@@ -157,12 +157,12 @@ void gdb_continue(void);int gdb_continue_partial (char *newstates);/* -* Helpers with separate softmmu and user implementations +* Helpers with separate system and user implementations */ void gdb_put_buffer (const uint8_t *buf,int len);/* -* Command handlers - either specialised or softmmu or user only +* Command handlers - either specialised or system or user only */ void gdb_init_gdbserver_state (void );
@@ -187,7 +187,7 @@ typedef union GdbCmdVariant {#define get_param (p, i) (&g_array_index(p, GdbCmdVariant, i)) -void gdb_handle_query_rcmd (GArray *params,void *user_ctx);/* softmmu */ +void gdb_handle_query_rcmd (GArray *params,void *user_ctx);/* system */ void gdb_handle_query_offsets (GArray *params,void *user_ctx);/* user */ void gdb_handle_query_xfer_auxv (GArray *params,void *user_ctx);/*user */ void gdb_handle_query_xfer_siginfo (GArray *params,void *user_ctx);/*user */
@@ -203,7 +203,7 @@ bool gdb_handle_detach_user(uint32_t pid); /* user */void gdb_handle_query_attached (GArray *params,void *user_ctx);/* both */ -/* softmmu only */ +/* system only */ void gdb_handle_query_qemu_phy_mem_mode (GArray *params,void *user_ctx);void gdb_handle_set_qemu_phy_mem_mode (GArray *params,void *user_ctx);
@@ -213,11 +213,11 @@ bool gdb_handled_syscall(void);void gdb_disable_syscalls (void );void gdb_syscall_reset (void ); -/* user/softmmu specific syscall handling */ +/* user/system specific syscall handling */ void gdb_syscall_handling (const char *syscall_packet);/* -* Break/Watch point support - there is an implementation for softmmu +* Break/Watch point support - there is an implementation for system * and user mode. */ bool gdb_supports_guest_debug (void );
gdbstub/system.c +1 -1
@@ -1,5 +1,5 @@/* -* gdb server stub - softmmu specific bits +* gdb server stub - system specific bits * * Debug integration depends on support from the individual * accelerators so most of this involves calling the ops helpers.
Signature · 1 line
2.41.0
[PULL 03/15] gdbstub/system: Rename 'user_ctx' argument as 'ctx'
In reply to Philippe Mathieu-DaudéMessage-Id: <[email protected]>
--- gdbstub/internals.h | 8 ++++---- gdbstub/system.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
gdbstub/internals.h +4 -4
@@ -187,7 +187,7 @@ typedef union GdbCmdVariant {#define get_param (p, i) (&g_array_index(p, GdbCmdVariant, i)) -void gdb_handle_query_rcmd (GArray *params,void *user_ctx);/* system */ +void gdb_handle_query_rcmd (GArray *params,void *ctx);/* system */ void gdb_handle_query_offsets (GArray *params,void *user_ctx);/* user */ void gdb_handle_query_xfer_auxv (GArray *params,void *user_ctx);/*user */ void gdb_handle_query_xfer_siginfo (GArray *params,void *user_ctx);/*user */
@@ -201,11 +201,11 @@ void gdb_handle_query_supported_user(const char *gdb_supported); /* user */bool gdb_handle_set_thread_user (uint32_t pid,uint32_t tid);/* user */ bool gdb_handle_detach_user (uint32_t pid);/* user */ -void gdb_handle_query_attached (GArray *params,void *user_ctx);/* both */ +void gdb_handle_query_attached (GArray *params,void *ctx);/* both */ /* system only */ -void gdb_handle_query_qemu_phy_mem_mode (GArray *params,void *user_ctx); -void gdb_handle_set_qemu_phy_mem_mode (GArray *params,void *user_ctx); +void gdb_handle_query_qemu_phy_mem_mode (GArray *params,void *ctx); +void gdb_handle_set_qemu_phy_mem_mode (GArray *params,void *ctx);/* sycall handling */ void gdb_handle_file_io (GArray *params,void *user_ctx);
gdbstub/system.c +4 -4
@@ -488,13 +488,13 @@ bool gdb_can_reverse(void)*/ void gdb_handle_query_qemu_phy_mem_mode (GArray *params, -void *user_ctx) +void *ctx) {g_string_printf (gdbserver_state.str_buf,"%d" , phy_memory_mode);gdb_put_strbuf (); } -void gdb_handle_set_qemu_phy_mem_mode (GArray *params,void *user_ctx) +void gdb_handle_set_qemu_phy_mem_mode (GArray *params,void *ctx) {if (!params->len) {gdb_put_packet ("E22" );
@@ -509,7 +509,7 @@ void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *user_ctx)gdb_put_packet ("OK" ); } -void gdb_handle_query_rcmd (GArray *params,void *user_ctx) +void gdb_handle_query_rcmd (GArray *params,void *ctx) {const guint8 zero =0 ;int len;
@@ -539,7 +539,7 @@ void gdb_handle_query_rcmd(GArray *params, void *user_ctx)* Execution state helpers */ -void gdb_handle_query_attached (GArray *params,void *user_ctx) +void gdb_handle_query_attached (GArray *params,void *ctx) {gdb_put_packet ("1" ); }
Signature · 1 line
2.41.0
[PULL 05/15] hw/arm/smmu: Avoid using inlined functions with external linkage again
In reply to Philippe Mathieu-DaudéSimilarly to commit 9de9fa5cf2 ("hw/arm/smmu-common: Avoid using inlined functions with external linkage"):
None of our code base require / use inlined functions with external linkage. Some places use internal inlining in the hot path. These two functions are certainly not in any hot path and don't justify any inlining, so these are likely oversights rather than intentional.
Fix:
C compiler for the host machine: clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
...
hw/arm/smmu-common.c:203:43: error: static function 'smmu_hash_remove_by_vmid' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
^
include/hw/arm/smmu-common.h:197:1: note: use 'static' to give inline function 'smmu_iotlb_inv_vmid' internal linkage
void smmu_iotlb_inv_vmid(SMMUState *s, uint16_t vmid);
^
static
hw/arm/smmu-common.c:139:17: note: 'smmu_hash_remove_by_vmid' declared here
static gboolean smmu_hash_remove_by_vmid(gpointer key, gpointer value,
^Message-Id: <[email protected]>
--- hw/arm/smmu-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/smmu-common.c +1 -1
@@ -197,7 +197,7 @@ void smmu_iotlb_inv_asid(SMMUState *s, uint16_t asid)g_hash_table_foreach_remove (s->iotlb, smmu_hash_remove_by_asid, &asid); } -inline void smmu_iotlb_inv_vmid (SMMUState *s,uint16_t vmid) +void smmu_iotlb_inv_vmid (SMMUState *s,uint16_t vmid) {trace_smmu_iotlb_inv_vmid (vmid);g_hash_table_foreach_remove (s->iotlb, smmu_hash_remove_by_vmid, &vmid);
Signature · 1 line
2.41.0
[PULL 11/15] plugins: fix -Werror=maybe-uninitialized false-positive
In reply to Philippe Mathieu-DaudéFrom: Marc-André Lureau <[email protected]>
../plugins/loader.c:405:15: error: ‘ctx’ may be used uninitialized [-Werror=maybe-uninitialized]
Message-ID: <[email protected]>
--- plugins/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
plugins/loader.c +1 -1
@@ -390,7 +390,7 @@ void plugin_reset_uninstall(qemu_plugin_id_t id, bool reset) {struct qemu_plugin_reset_data *data; -struct qemu_plugin_ctx *ctx; +struct qemu_plugin_ctx *ctx =NULL ; WITH_QEMU_LOCK_GUARD(&plugin.lock) { ctx =plugin_id_to_ctx_locked (id);
Signature · 1 line
2.41.0
[PULL 09/15] hw/i386/pc: Restrict CXL to PCI-based machines
In reply to Philippe Mathieu-DaudéCXL is based on PCIe. In is pointless to initialize its context on non-PCI machines.
Message-ID: <[email protected]>
--- hw/i386/pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
hw/i386/pc.c +3 -1
@@ -1738,7 +1738,9 @@ static void pc_machine_initfn(Object *obj) pcms->pcspk =isa_new (TYPE_PC_SPEAKER );object_property_add_alias (OBJECT (pcms),"pcspk-audiodev" ,OBJECT (pcms->pcspk),"audiodev" ); -cxl_machine_init (obj, &pcms->cxl_devices_state); +if (pcmc->pci_enabled) { +cxl_machine_init (obj, &pcms->cxl_devices_state); + } pcms->machine_done.notify = pc_machine_done;qemu_add_machine_init_done_notifier (&pcms->machine_done);
Signature · 1 line
2.41.0
[PULL 01/15] accel/tcg/plugin: Remove CONFIG_SOFTMMU_GATE definition
In reply to Philippe Mathieu-DaudéThe CONFIG_SOFTMMU_GATE definition was never used, remove it.
Message-Id: <[email protected]>
--- accel/tcg/plugin-gen.c | 6 ------ 1 file changed, 6 deletions(-)
accel/tcg/plugin-gen.c +0 -6
@@ -57,12 +57,6 @@#include "exec/helper-info.c.inc" #undef HELPER_H -#ifdef CONFIG_SOFTMMU -# define CONFIG_SOFTMMU_GATE 1 -#else -# define CONFIG_SOFTMMU_GATE 0 -#endif -/* * plugin_cb_start TCG op args[]: * 0: enum plugin_gen_from
Signature · 1 line
2.41.0
[PULL 06/15] accel/hvf: Un-inline hvf_arch_supports_guest_debug()
In reply to Philippe Mathieu-DaudéSee previous commit and commit 9de9fa5cf2 ("Avoid using inlined functions with external linkage") for rationale.
Message-Id: <[email protected]>
--- target/arm/hvf/hvf.c | 2 +- target/i386/hvf/hvf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
target/arm/hvf/hvf.c +1 -1
@@ -2246,7 +2246,7 @@ void hvf_arch_update_guest_debug(CPUState *cpu)hvf_arch_set_traps (); } -inline bool hvf_arch_supports_guest_debug (void ) +bool hvf_arch_supports_guest_debug (void ) {return true; }
target/i386/hvf/hvf.c +1 -1
@@ -708,7 +708,7 @@ void hvf_arch_update_guest_debug(CPUState *cpu) { } -inline bool hvf_arch_supports_guest_debug (void ) +bool hvf_arch_supports_guest_debug (void ) {return false; }
Signature · 1 line
2.41.0
[PULL 15/15] hw/net/virtio-net: fix qemu set used ring flag even vhost started
In reply to Philippe Mathieu-DaudéFrom: Yajun Wu <[email protected]>
When vhost-user or vhost-kernel is handling virtio net datapath, QEMU should not touch used ring.
But with vhost-user socket reconnect scenario, in a very rare case (has pending kick event). VRING_USED_F_NO_NOTIFY is set by QEMU in following code path:
#0 virtio_queue_split_set_notification (vq=0x7ff5f4c920a8, enable=0) at ../hw/virtio/virtio.c:511 #1 0x0000559d6dbf033b in virtio_queue_set_notification (vq=0x7ff5f4c920a8, enable=0) at ../hw/virtio/virtio.c:576 #2 0x0000559d6dbbbdbc in virtio_net_handle_tx_bh (vdev=0x559d703a6aa0, vq=0x7ff5f4c920a8) at ../hw/net/virtio-net.c:2801 #3 0x0000559d6dbf4791 in virtio_queue_notify_vq (vq=0x7ff5f4c920a8) at ../hw/virtio/virtio.c:2248 #4 0x0000559d6dbf79da in virtio_queue_host_notifier_read (n=0x7ff5f4c9211c) at ../hw/virtio/virtio.c:3525 #5 0x0000559d6d9a5814 in virtio_bus_cleanup_host_notifier (bus=0x559d703a6a20, n=1) at ../hw/virtio/virtio-bus.c:321 #6 0x0000559d6dbf83c9 in virtio_device_stop_ioeventfd_impl (vdev=0x559d703a6aa0) at ../hw/virtio/virtio.c:3774 #7 0x0000559d6d9a55c8 in virtio_bus_stop_ioeventfd (bus=0x559d703a6a20) at ../hw/virtio/virtio-bus.c:259 #8 0x0000559d6d9a53e8 in virtio_bus_grab_ioeventfd (bus=0x559d703a6a20) at ../hw/virtio/virtio-bus.c:199 #9 0x0000559d6dbf841c in virtio_device_grab_ioeventfd (vdev=0x559d703a6aa0) at ../hw/virtio/virtio.c:3783 #10 0x0000559d6d9bde18 in vhost_dev_enable_notifiers (hdev=0x559d707edd70, vdev=0x559d703a6aa0) at ../hw/virtio/vhost.c:1592 #11 0x0000559d6d89a0b8 in vhost_net_start_one (net=0x559d707edd70, dev=0x559d703a6aa0) at ../hw/net/vhost_net.c:266 #12 0x0000559d6d89a6df in vhost_net_start (dev=0x559d703a6aa0, ncs=0x559d7048d890, data_queue_pairs=31, cvq=0) at ../hw/net/vhost_net.c:412 #13 0x0000559d6dbb5b89 in virtio_net_vhost_status (n=0x559d703a6aa0, status=15 '\017') at ../hw/net/virtio-net.c:311 #14 0x0000559d6dbb5e34 in virtio_net_set_status (vdev=0x559d703a6aa0, status=15 '\017') at ../hw/net/virtio-net.c:392 #15 0x0000559d6dbb60d8 in virtio_net_set_link_status (nc=0x559d7048d890) at ../hw/net/virtio-net.c:455 #16 0x0000559d6da64863 in qmp_set_link (name=0x559d6f0b83d0 "hostnet1", up=true, errp=0x7ffdd76569f0) at ../net/net.c:1459 #17 0x0000559d6da7226e in net_vhost_user_event (opaque=0x559d6f0b83d0, event=CHR_EVENT_OPENED) at ../net/vhost-user.c:301 #18 0x0000559d6ddc7f63 in chr_be_event (s=0x559d6f2ffea0, event=CHR_EVENT_OPENED) at ../chardev/char.c:62 #19 0x0000559d6ddc7fdc in qemu_chr_be_event (s=0x559d6f2ffea0, event=CHR_EVENT_OPENED) at ../chardev/char.c:82
This issue causes guest kernel stop kicking device and traffic stop.
Add vhost_started check in virtio_net_handle_tx_bh to fix this wrong VRING_USED_F_NO_NOTIFY set.
Message-ID: <[email protected]>
--- hw/net/virtio-net.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/net/virtio-net.c +4 -0
@@ -2865,6 +2865,10 @@ static void virtio_net_handle_tx_bh(VirtIODevice *vdev, VirtQueue *vq)VirtIONet *n =VIRTIO_NET (vdev);VirtIONetQueue *q = &n->vqs[vq2q (virtio_get_queue_index (vq))]; +if (unlikely (n->vhost_started)) { +return ; + } +if (unlikely ((n->status &VIRTIO_NET_S_LINK_UP ) ==0 )) {virtio_net_drop_tx_queue_data (vdev, vq);return ;
Signature · 1 line
2.41.0
[PULL 07/15] qtest/libqos: Reduce size_to_prdtl() declaration scope
In reply to Philippe Mathieu-DaudéSince size_to_prdtl() is only used within ahci.c, declare it statically. This removes the last use of "inlined function with external linkage". See previous commit and commit 9de9fa5cf2 for rationale.
Message-Id: <[email protected]>
--- tests/qtest/libqos/ahci.h | 1 - tests/qtest/libqos/ahci.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
tests/qtest/libqos/ahci.h +0 -1
@@ -599,7 +599,6 @@ void ahci_port_check_cmd_sanity(AHCIQState *ahci, AHCICommand *cmd);/* Misc */ bool is_atapi (AHCIQState *ahci,uint8_t port); -unsigned size_to_prdtl (unsigned bytes,unsigned bytes_per_prd);/* Command: Macro level execution */ void ahci_guest_io(AHCIQState *ahci, uint8_t port, uint8_t ide_cmd,
tests/qtest/libqos/ahci.c +1 -1
@@ -662,7 +662,7 @@ unsigned ahci_pick_cmd(AHCIQState *ahci, uint8_t port)g_assert_not_reached (); } -inline unsigned size_to_prdtl (unsigned bytes,unsigned bytes_per_prd) +static unsigned size_to_prdtl (unsigned bytes,unsigned bytes_per_prd) {/* Each PRD can describe up to 4MiB */ g_assert_cmphex(bytes_per_prd, <=, 4096 * 1024);
Signature · 1 line
2.41.0
[PULL 04/15] target/ppc: Rename init_excp_4xx_softmmu() -> init_excp_4xx()
In reply to Philippe Mathieu-DaudéUnify with other init_excp_FOO() in the same file.
Message-Id: <[email protected]>
--- target/ppc/cpu_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/ppc/cpu_init.c +2 -2
@@ -1642,7 +1642,7 @@ static void register_8xx_sprs(CPUPPCState *env)/*****************************************************************************/ /* Exception vectors models */ -static void init_excp_4xx_softmmu (CPUPPCState *env) +static void init_excp_4xx (CPUPPCState *env) {#if !defined(CONFIG_USER_ONLY ) env->excp_vectors[POWERPC_EXCP_CRITICAL ] =0x00000100 ;
@@ -2120,7 +2120,7 @@ static void init_proc_405(CPUPPCState *env) env->id_tlbs =0 ; env->tlb_type =TLB_EMB ;#endif -init_excp_4xx_softmmu (env); +init_excp_4xx (env); env->dcache_line_size =32 ; env->icache_line_size =32 ;/* Allocate hardware IRQ controller */
Signature · 1 line
2.41.0
[PULL 14/15] hw/xen_evtchn: Initialize flush_kvm_routes
In reply to Philippe Mathieu-DaudéFrom: Artem Chernyshev <[email protected]>
In xen_evtchn_soft_reset() variable flush_kvm_routes can be used before being initialized.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Message-ID: <[email protected]>
--- hw/i386/kvm/xen_evtchn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/kvm/xen_evtchn.c +1 -1
@@ -1097,7 +1097,7 @@ static int close_port(XenEvtchnState *s, evtchn_port_t port,int xen_evtchn_soft_reset (void ) {XenEvtchnState *s = xen_evtchn_singleton; -bool flush_kvm_routes; +bool flush_kvm_routes = false;int i;if (!s) {
Signature · 1 line
2.41.0
[PULL 12/15] hw/nvme: fix -Werror=maybe-uninitialized
In reply to Philippe Mathieu-DaudéFrom: Marc-André Lureau <[email protected]>
../hw/nvme/ctrl.c:6081:21: error: ‘result’ may be used uninitialized [-Werror=maybe-uninitialized]
It's not obvious that 'result' is set in all code paths. When &result is a returned argument, it's even less clear.
Looking at various assignments, 0 seems to be a suitable default value.
Message-ID: <[email protected]>
--- hw/nvme/ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/nvme/ctrl.c +1 -1
@@ -5894,7 +5894,7 @@ static uint16_t nvme_get_feature(NvmeCtrl *n, NvmeRequest *req)uint32_t dw10 =le32_to_cpu (cmd->cdw10);uint32_t dw11 =le32_to_cpu (cmd->cdw11);uint32_t nsid =le32_to_cpu (cmd->nsid); -uint32_t result; +uint32_t result =0 ;uint8_t fid =NVME_GETSETFEAT_FID (dw10);NvmeGetFeatureSelect sel =NVME_GETFEAT_SELECT (dw10);uint16_t iv;
Signature · 1 line
2.41.0
[PULL 08/15] MAINTAINERS: Fix error-report.c entry
In reply to Philippe Mathieu-DaudéFrom: Zhao Liu <[email protected]>
The commit 15002f60f792 ("util: rename qemu-error.c to match its header name") renamed util/qemu-error.c to util/error-report.c but missed to change the corresponding entry.
To avoid get_maintainer.pl failing, update the error-report.c entry.
Message-ID: <[email protected]>
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -3013,7 +3013,7 @@ F: include/qapi/error.h F: include/qemu/error-report.h F: qapi/error.json F: util/error.c -F: util/qemu-error.c +F: util/error-report.c F: scripts/coccinelle/err-bad-newline.cocci F: scripts/coccinelle/error-use-after-free.cocci F: scripts/coccinelle/error_propagate_null.cocci
Signature · 1 line
2.41.0
[PULL 10/15] block: Remove unnecessary NULL check in bdrv_pad_request()
In reply to Philippe Mathieu-DaudéFrom: Kevin Wolf <[email protected]>
Coverity complains that the check introduced in commit 3f934817 suggests that qiov could be NULL and we dereference it before reaching the check. In fact, all of the callers pass a non-NULL pointer, so just remove the misleading check.
Resolves: Coverity CID 1542668
Message-ID: <[email protected]>
--- block/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/io.c +1 -1
@@ -1730,7 +1730,7 @@ static int bdrv_pad_request(BlockDriverState *bs,* For prefetching in stream_populate(), no qiov is passed along, because * only copy-on-read matters. */ -if (qiov && *qiov) { +if (*qiov) { sliced_iov =qemu_iovec_slice (*qiov, *qiov_offset, *bytes, &sliced_head, &sliced_tail, &sliced_niov);
Signature · 1 line
2.41.0
[PULL 13/15] gpio/pca955x: Update maintainer email address
In reply to Philippe Mathieu-DaudéFrom: Glenn Miles <[email protected]>
It was noticed that my linux.vnet.ibm.com address does not always work so dropping the vnet to see if that works better.
Message-ID: <[email protected]>
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -1545,7 +1545,7 @@ F: pc-bios/skiboot.lid F: tests/qtest/pnv* pca955x -M: Glenn Miles <[email protected]> +M: Glenn Miles <[email protected]> L: [email protected] L: [email protected] S: Odd Fixes
Signature · 1 line
2.41.0
Peter Maydell
AppliedQuoted 16 lines · Philippe Mathieu-Daudé
The following changes since commit
7fcf7575f3d201fc84ae168017ffdfd6c86257a6:Merge tag 'pull-target-arm-20240402' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-04-02 11:34:49 +0100)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20240402
for you to fetch changes up to
4c54f5bc8e1d38f15cc35b6a6932d8fbe219c692:hw/net/virtio-net: fix qemu set used ring flag even vhost started (2024-04-02 16:15:07 +0200)
----------------------------------------------------------------
Misc HW patch queue
Quoted 8 lines
-
MAINTAINERSupdates (Zhao, Glenn)
- Replace incorrect mentions of 'softmmu' by 'system' (Phil)
- Avoid using inlined functions with external linkage (Phil)
- Restrict CXL to x86 PC PCI-based machines (Phil)
- Remove unnecessary NULL check inbdrv_pad_request(Kevin)
- Fix a pair of -Werror=maybe-uninitialized (Marc-André)
- Initialize variable inxen_evtchn_soft_reset(Artem)
- Do not access virtio-net tx queue until vhost is started (Yajun)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.
-- PMM