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/hw/virtio
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
..
cbor-helpers.h device/virtio-nsm: Support for Nitro Secure Module device 1 year ago
iothread-vq-mapping.h virtio: extract iothread-vq-mapping.h API 10 months ago
vdpa-dev.h
vhost-backend.h vhost: add support for negotiating extended features 3 months ago
vhost-scsi-common.h vhost-user: return failure if backend crash when live migration 8 months ago
vhost-scsi.h
vhost-user-base.h char: rename CharBackend->CharFrontend 2 months ago
vhost-user-blk.h char: rename CharBackend->CharFrontend 2 months ago
vhost-user-fs.h char: rename CharBackend->CharFrontend 2 months ago
vhost-user-gpio.h
vhost-user-i2c.h
vhost-user-rng.h
vhost-user-scmi.h char: rename CharBackend->CharFrontend 2 months ago
vhost-user-scsi.h
vhost-user-snd.h
vhost-user-vsock.h char: rename CharBackend->CharFrontend 2 months ago
vhost-user.h char: rename CharBackend->CharFrontend 2 months ago
vhost-vdpa.h vdpa: move iova_tree allocation to net_vhost_vdpa_init 7 months ago
vhost-vsock-common.h vhost-user: return failure if backend crash when live migration 8 months ago
vhost-vsock.h
vhost.h vhost: add support for negotiating extended features 3 months ago
virtio-access.h
virtio-acpi.h license: Update deprecated SPDX tag GPL-2.0+ to GPL-2.0-or-later 1 year ago
virtio-balloon.h hw/virtio: reset virtio balloon stats on machine reset 10 months ago
virtio-blk-common.h
virtio-blk.h hw/vmapple/virtio-blk: Add support for apple virtio-blk 10 months ago
virtio-bus.h
virtio-crypto.h include: Rename sysemu/ -> system/ 1 year ago
virtio-dmabuf.h
virtio-features.h virtio: introduce extended features type 3 months ago
virtio-gpu-bswap.h
virtio-gpu-pci.h
virtio-gpu-pixman.h
virtio-gpu.h char: rename CharBackend->CharFrontend 2 months ago
virtio-input.h include: Rename sysemu/ -> system/ 1 year ago
virtio-iommu.h include: Rename sysemu/ -> system/ 1 year ago
virtio-md-pci.h
virtio-mem.h hw/virtio/virtio-mem: Fix definition of VirtIOMEMClass 7 months ago
virtio-mmio.h
virtio-net.h Revert "hw/net/virtio-net: make VirtIONet.vlans an array instead of a pointer" 2 weeks ago
virtio-nsm.h device/virtio-nsm: Support for Nitro Secure Module device 1 year ago
virtio-pci.h virtio-pci: implement support for extended features 3 months ago
virtio-pmem.h hw/virtio/virtio-pmem: Fix definition of VirtIOPMEMClass 7 months ago
virtio-rng.h include: Rename sysemu/ -> system/ 1 year ago
virtio-scsi.h char: rename CharBackend->CharFrontend 2 months ago
virtio-serial.h qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2 months ago
virtio.h virtio: unify virtio_notify_irqfd() and virtio_notify() 3 months ago