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/hw
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>
4 days ago
..
9pfs hw/9pfs: Correct typo 4 days ago
acpi acpi/generic_event_device.c: enable use_hest_addr for QEMU 10.x 2 months ago
adc
alpha hw/core/loader: capture Error from load_image_targphys 2 months ago
arm aspeed: Deprecate the fby35 machine 1 week ago
audio hw/audio/lm4549: Don't try to open a zero-frequency audio voice 4 weeks ago
avr
block block: enable stats-intervals for storage devices 2 months ago
char * char: rename CharBackend->CharFrontend 2 months ago
core hw/core/machine: Provide a description for aux-ram-share property 3 weeks ago
cpu
cxl cxl: Clean up includes 4 weeks ago
display hw/display/exynos4210_fimd: Account for zero length in fimd_update_memory_section() 3 weeks ago
dma hw/dma/zynq-devcfg: Fix register memory 4 weeks ago
fsi
gpio hw/gpio/pl061: Declare pullups/pulldowns as 8-bit types 1 month ago
hppa hw/hppa: Enable LASI i82596 network on 715 machine 1 month ago
hyperv system/ramblock: Move ram_block_discard_*_range() declarations 2 months ago
i2c hw/i2c/smbus_eeprom: Add minimum write recovery time for DDR2 2 months ago
i386 q35: increase default tseg size 1 month ago
ide hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace" 2 months ago
input hid: fix incorrect return value for hid 2 months ago
intc hw/intc/ioapic: Fix ACCEL_KERNEL_GSI_IRQFD_POSSIBLE typo 4 weeks ago
ipack
ipmi * char: rename CharBackend->CharFrontend 2 months ago
isa x86: ich9: fix default value of 'No Reboot' bit in GCS 2 months ago
loongarch hw/core/loader: capture Error from load_image_targphys 2 months ago
m68k hw/core/loader: capture Error from load_image_targphys 2 months ago
mem cxl: Clean up includes 4 weeks ago
microblaze hw/core/loader: capture Error from load_image_targphys 2 months ago
mips * char: rename CharBackend->CharFrontend 2 months ago
misc hw/aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN 3 weeks ago
net Revert "hw/net/virtio-net: make VirtIONet.vlans an array instead of a pointer" 4 days ago
nubus hw/core/loader: capture Error from load_image_targphys 2 months ago
nvme hw/nvme: Validate PMR memory size 3 weeks ago
nvram nw/nvram/ds1225y: Fix nvram MemoryRegion owner 2 months ago
openrisc hw/core/loader: capture Error from load_image_targphys 2 months ago
pci hw/pci: Make msix_init take a uint32_t for nentries 3 weeks ago
pci-bridge hw/arm/smmu-common: Check SMMU has PCIe Root Complex association 3 months ago
pci-host hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug 3 weeks ago
ppc hw/ppc/pegasos: Fix memory leak 1 month ago
remote hw: Remove unnecessary 'system/ram_addr.h' header 2 months ago
riscv hw/riscv: Replace target_ulong uses 1 month ago
rtc hw/aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN 3 weeks ago
rx hw/core/loader: capture Error from load_image_targphys 2 months ago
s390x hw/s390x: Fix a possible crash with passed-through virtio devices 3 weeks ago
scsi hw/scsi: Use error_setg_file_open() for a better error message 3 weeks ago
sd hw/aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN 3 weeks ago
sensor
sh4 hw/core/loader: capture Error from load_image_targphys 2 months ago
smbios hw/core/loader: capture Error from load_image_targphys 2 months ago
sparc hw/core/loader: capture Error from load_image_targphys 2 months ago
sparc64 hw/core/loader: capture Error from load_image_targphys 2 months ago
ssi
timer hw/pcspk: use explicitly the required PIT types 2 months ago
tpm
tricore
uefi hw/uefi/ovmf-log: Fix memory leak in hmp_info_firmware_log 2 months ago
ufs
usb hw/usb: Convert to qemu_create() for a better error message 3 weeks ago
vfio Fix the typo of vfio-pci device's enable-migration option 3 weeks ago
vfio-user vfio-user: recycle msg on failure 1 week ago
virtio vhost: Always initialize cached vring data 4 days ago
vmapple hw/gpio/pl061: Declare pullups/pulldowns as 8-bit types 1 month ago
watchdog wdt_i6300esb: fix incorrect mask for interrupt type 2 months ago
xen hw/xen: Build only once 1 month ago
xenpv
xtensa hw/core/loader: capture Error from load_image_targphys 2 months ago
Kconfig
meson.build