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>
2025-12-09 21:00:15 +01:00
..
2025-10-21 20:16:47 +02:00
2025-10-28 08:08:04 +01:00
2025-10-23 14:13:38 +01:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-10-24 09:24:08 +10:00
2025-04-25 17:00:41 +02:00
2023-09-20 07:54:34 +03:00
2025-05-30 09:52:08 +02:00
2025-11-14 09:59:55 +08:00
2024-03-12 19:28:32 +08:00
2025-04-25 17:00:41 +02:00
2023-05-23 15:20:15 +08:00
2023-05-23 15:20:15 +08:00
2025-05-09 23:49:26 +03:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-11-07 11:18:32 +01:00
2025-11-04 16:14:51 +01:00
2023-11-13 15:33:37 +08:00
2025-10-04 10:50:36 -04:00
2024-03-12 19:28:31 +08:00
2024-09-20 10:11:59 +03:00
2025-04-25 17:00:41 +02:00
2025-10-05 09:01:08 -04:00
2025-04-25 17:00:41 +02:00
2025-09-02 17:57:05 +02:00
2025-04-25 17:00:41 +02:00
2025-07-15 02:56:39 -04:00
2025-04-25 17:00:41 +02:00
2025-11-04 16:14:51 +01:00
2025-04-25 17:00:41 +02:00
2025-09-02 17:57:05 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-23 14:08:21 -07:00
2024-10-03 17:26:05 +03:00
2024-10-03 17:26:05 +03:00
2025-03-10 17:07:16 +08:00
2023-05-23 15:20:15 +08:00
2025-04-25 17:00:41 +02:00
2025-07-21 10:21:51 +08:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2024-03-12 19:28:32 +08:00
2025-04-23 14:08:21 -07:00
2025-07-15 02:56:39 -04:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00
2025-11-04 16:14:51 +01:00
2025-06-12 13:40:15 -04:00
2025-10-04 10:50:37 -04:00
2025-10-04 10:50:37 -04:00
2025-12-09 21:00:15 +01:00
2025-10-04 10:50:36 -04:00
2025-06-26 00:42:37 +02:00
2025-10-28 08:08:04 +01:00
2025-06-12 13:40:16 -04:00
2025-04-25 17:00:41 +02:00
2025-04-25 17:00:41 +02:00