qemu-cr16/include/hw
Wafer Xie ad2c2ef5e5 vdpa: fix vhost-vdpa suspended state not be shared
When stopping a vhost-vdpa device, only the first queue pair is marked as suspended,
while the remaining queues are not updated to the suspended state.
As a result, when stopping a multi-queue vhost-vdpa device,
the following error message will be printed.

qemu-system-x86_64:vhost VQ 2 ring restore failed: -1: Operation not permitted (1)

qemu-system-x86_64:vhost VQ 3 ring restore failed: -1: Operation not permitted (1)

So move v->suspended to v->shared, and then all the vhost_vdpa devices cannot
have different suspended states.

Fixes: 0bb302a996 ("vdpa: add vhost_vdpa_suspend")
Suggested-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Wafer Xie <wafer@jaguarmicro.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20251119132452.3117-1-wafer@jaguarmicro.com>
(cherry picked from commit fd3a2c601ab4a1bdb669e4c584b364e00a978702)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-02-06 00:31:38 +03:00
..
acpi qapi/acpi-hest: add an interface to do generic CPER error injection 2025-10-05 08:06:32 -04:00
adc
arm hw/arm/aspeed: Rename and export connect_serial_hds_to_uarts() as aspeed_connect_serial_hds_to_uarts() 2025-11-04 09:27:59 +01:00
audio audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
block block: enable stats-intervals for storage devices 2025-10-29 12:10:09 +01:00
char * char: rename CharBackend->CharFrontend 2025-10-29 10:43:56 +01:00
core exec/cpu: Declare cpu_memory_rw_debug() in 'hw/core/cpu.h' and document 2025-11-03 11:59:32 +01:00
cpu
cxl hw/cxl: mailbox-utils: 0x5604 - FMAPI Initiate DC Add 2025-07-15 02:56:40 -04:00
display audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
dma include/hw/dma/xlnx_dpdma: Remove dependency on console.h 2025-05-14 11:50:42 +02:00
firmware hw/smbios: allow clearing the VM bit in SMBIOS table 0 2025-10-05 08:17:08 -04:00
fsi
gpio hw/gpio/aspeed: Fix definition of AspeedGPIOClass 2025-06-10 12:59:09 +02:00
hyperv include/hw/hyperv: Add MSHV ABI header definitions 2025-10-08 19:17:29 +02:00
i2c include/hw: replace FSF postal address with licenses URL 2025-06-26 00:42:37 +02:00
i386 intel_iommu: Handle PASID cache invalidation 2025-11-09 08:23:48 -05:00
ide
input qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2025-10-28 08:08:04 +01:00
intc hw/int/loongarch: Include missing 'system/memory.h' header 2025-10-28 08:19:18 +01:00
ipack
ipmi
isa audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
loongarch hw/loongarch/virt: Sort order by hardware device base address 2025-10-15 11:07:37 +08:00
m68k
mem
mips
misc hw/southbridge/lasi: Correct LasiState parent 2025-11-18 19:59:36 +01:00
net hw/hppa: Enable LASI i82596 network on 715 machine 2025-11-04 16:14:51 +01:00
nubus
nvram hw/core/register: remove the calls to `register_finalize_block' 2025-10-21 20:16:46 +02:00
openrisc
pci hw/pci: Fix typo in documentation 2025-12-09 20:56:14 +01:00
pci-bridge
pci-host qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2025-10-28 08:08:04 +01:00
ppc ppc/spapr: Cleanup MSI IRQ number handling 2025-10-30 12:45:32 +05:30
remote
riscv hw/riscv: Widen OpenSBI dynamic info struct 2025-10-28 08:19:18 +01:00
rtc
rx
s390x hw/s390x/ccw: Remove SCLPDevice::increment_size field 2025-10-21 15:47:21 +02:00
scsi qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2025-10-28 08:08:04 +01:00
sd hw/sd/sdcard: Remove support for spec v1.10 2025-09-02 17:56:37 +02:00
sensor
sh4
southbridge x86: ich9: fix default value of 'No Reboot' bit in GCS 2025-10-05 09:01:08 -04:00
sparc
ssi hw/ssi: Document ssi_transfer() method 2025-09-02 17:57:05 +02:00
timer hw/pcspk: use explicitly the required PIT types 2025-10-22 08:55:28 +02:00
tricore
uefi hw/uefi: Include missing 'system/memory.h' header 2025-10-28 08:19:18 +01:00
usb
vfio qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2025-10-28 08:08:04 +01:00
virtio vdpa: fix vhost-vdpa suspended state not be shared 2026-02-06 00:31:38 +03:00
vmapple
watchdog
xen hw/xen: Avoid non-inclusive language in params.h 2025-10-28 16:52:13 +03:00
xtensa
boards.h hw/boards: Introduce DEFINE_MACHINE_WITH_INTERFACE_ARRAY() macro 2025-10-21 20:09:56 +02:00
clock.h
elf_ops.h.inc
fw-path-provider.h
hotplug.h
hw.h
irq.h hw/irq: New qemu_init_irq_child() function 2025-09-02 17:57:05 +02:00
loader-fit.h
loader.h hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
nmi.h
or-irq.h
platform-bus.h
ptimer.h
qdev-clock.h
qdev-core.h hw/qdev: Have qdev_get_gpio_out_connector() take const DeviceState arg 2025-10-28 08:19:18 +01:00
qdev-dma.h
qdev-properties-system.h audio: remove QEMUSoundCard 2025-10-30 22:56:28 +04:00
qdev-properties.h qdev: Change PropertyInfo method print() to return malloc'ed string 2025-10-28 14:50:07 +01:00
register.h hw/core/register: remove the `register_finalize_block' function 2025-10-21 20:16:46 +02:00
registerfields.h
resettable.h
stream.h
sysbus.h hw/sysbus: Have various helpers take a const SysBusDevice argument 2025-10-28 08:19:18 +01:00
usb.h
vmstate-if.h