You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include
Philippe Mathieu-Daudé efd6b3d176 Revert "hw/net/virtio-net: make VirtIONet.vlans an array instead of a pointer"
Per https://lore.kernel.org/qemu-devel/7798584d-e861-47b7-af52-2c2efb67a4de@proxmox.com/:

Loading a VM state taken with v10.1.2 or older doesn't work anymore,
using the script [*] we get:

  kvm: VQ 1 size 0x100 < last_avail_idx 0x9 - used_idx 0x3e30
  kvm: load of migration failed: Operation not permitted: error while loading state for instance 0x0 of device '0000:00:13.0/virtio-net': Failed to load element of type virtio for virtio: -1
  qemu-system-x86_64: Missing section footer for 0000:00:13.0/virtio-net
  qemu-system-x86_64: Section footer error, section_id: 41

[*]:

  #!/bin/bash
  rm /tmp/disk.qcow2
  args="
    -netdev type=tap,id=net1,ifname=tap104i1,script=/usr/libexec/qemu-server/pve-bridge,downscript=/usr/libexec/qemu-server/pve-bridgedown,vhost=on
    -device virtio-net-pci,mac=BC:24:11:32:3C:69,netdev=net1,bus=pci.0,addr=0x13,id=net1
    -machine type=pc-i440fx-10.1
  "
  $1/qemu-img create -f qcow2 /tmp/disk.qcow2 1G
  $1/qemu-system-x86_64 --qmp stdio --blockdev qcow2,node-name=node0,file.driver=file,file.filename=/tmp/disk.qcow2 $args <<EOF
  {"execute": "qmp_capabilities"}
  {"execute": "snapshot-save", "arguments": { "job-id": "save0", "tag": "snap", "vmstate": "node0", "devices": ["node0"] } }
  {"execute": "quit"}
  EOF
  $2/qemu-system-x86_64 --qmp stdio --blockdev qcow2,node-name=node0,file.driver=file,file.filename=/tmp/disk.qcow2 $args -loadvm snap

This reverts commit 3a9cd2a4a1.

Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Suggested-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2 weeks ago
..
accel accel/tcg: Add cpu_atomic_*_mmu for 16-byte xchg, fetch_and, fetch_or 4 months ago
authz
block hw/nvme: fix namespace atomic parameter setup 1 month ago
chardev char: rename CharBackend->CharFrontend 2 months ago
crypto crypto: support upto 5 parallel certificate identities 2 months ago
disas disas: Fix build against Capstone v6 (again) 1 year ago
exec exec/cpu: Declare cpu_memory_rw_debug() in 'hw/core/cpu.h' and document 2 months ago
fpu fpu: Move m68k_denormal fmt flag into floatx80_behaviour 10 months ago
gdbstub gdbstub/helpers: Replace TARGET_BIG_ENDIAN -> target_big_endian() 5 months ago
hw Revert "hw/net/virtio-net: make VirtIONet.vlans an array instead of a pointer" 2 weeks ago
io qio: Add QIONetListener API for using AioContext 1 month ago
libdecnumber include/libdecnumber: replace FSF postal address with licenses URL 6 months ago
migration Revert "migration/vmstate: remove VMSTATE_BUFFER_POINTER_UNSAFE macro" 2 weeks ago
monitor qdev: add qdev_find_default_bus() 2 months ago
net qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2 months ago
qapi error: Kill @error_warn 3 months ago
qemu osdep: Undefine FSCALE definition to fix Solaris builds 2 weeks ago
qobject qobject: make refcount atomic 2 months ago
qom qom: reverse order of instance_post_init calls 7 months ago
scsi hw/ufs: Support for UFS logical unit 2 years ago
semihosting include/semihosting/common-semi: extract common_semi API 3 months ago
standard-headers linux-headers: Update to Linux v6.18-rc3 2 months ago
system block: use pwrite_zeroes_alignment when writing first sector 1 month ago
tcg tcg/tci: Disable -Wundef FFI_GO_CLOSURES warning 3 weeks ago
ui ui/gtk: Add scale option 5 months ago
user accel/tcg: Add clear_flags argument to page_set_flags 2 months ago
elf.h elf: Add EF_MIPS_ARCH_ASE definitions 4 months ago
glib-compat.h include/glib-compat.h: Poison g_list_sort and g_slist_sort 8 months ago
qemu-io.h
qemu-main.h ui & main loop: Redesign of system-specific main thread event handling 12 months ago