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/net
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>
3 weeks ago
..
can hw/net/can/xlnx-versal-canfd: remove register API usage for banked regs 2 months ago
fsl_etsec qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2 months ago
rocker hw/net/rocker: Don't overflow in of_dpa_mask2prefix() 2 months ago
Kconfig hw/net: Remove mipsnet device model 4 months ago
allwinner-sun8i-emac.c qom: Have class_init() take a const data argument 8 months ago
allwinner_emac.c qom: Have class_init() take a const data argument 8 months ago
cadence_gem.c hw/net/cadence_gem: Add pcs-enabled property 2 months ago
dp8393x.c qom: Have class_init() take a const data argument 8 months ago
e1000.c hw/net/e1000: Remove unused E1000_FLAG_MAC flag 7 months ago
e1000_common.h e1000: Split header files 3 years ago
e1000_regs.h hw/net: spelling fixes 2 years ago
e1000e.c qom: Make InterfaceInfo[] uses const 8 months ago
e1000e_core.c hw/net/e1000e_core: Adjust e1000e_write_payload_frag_to_rx_buffers() assert 1 month ago
e1000e_core.h e1000e: fix link state on resume 2 years ago
e1000x_common.c e1000x: Take CRC into consideration for size check 3 years ago
e1000x_common.h e1000x: Share more Rx filtering logic 3 years ago
e1000x_regs.h hw/net/e1000: Remove stray empty comment in header 8 months ago
eepro100.c qom: Make InterfaceInfo[] uses const 8 months ago
ftgmac100.c qom: Have class_init() take a const data argument 8 months ago
i82596.c i82596: Adding proper break-statement functionality in RX functions 2 months ago
i82596.h i82596: Added core infrastructure and helper functions 2 months ago
igb.c qom: Make InterfaceInfo[] uses const 8 months ago
igb_common.h igb: Add a VF reset handler 2 years ago
igb_core.c net: bundle all offloads in a single struct 3 months ago
igb_core.h igb: fix link state on resume 2 years ago
igb_regs.h license: Update deprecated SPDX tag GPL-2.0 to GPL-2.0-only 1 year ago
igbvf.c pcie_sriov: Fix broken MMIO accesses from SR-IOV VFs 3 months ago
imx_fec.c qom: Have class_init() take a const data argument 8 months ago
lan9118.c qemu: Declare all load/store helper in 'qemu/bswap.h' 6 months ago
lan9118_phy.c qom: Have class_init() take a const data argument 8 months ago
lance.c qom: Have class_init() take a const data argument 8 months ago
lasi_i82596.c i82596: Added core infrastructure and helper functions 2 months ago
mcf_fec.c qom: Have class_init() take a const data argument 8 months ago
meson.build hw/net: Remove mipsnet device model 4 months ago
msf2-emac.c qom: Have class_init() take a const data argument 8 months ago
mv88w8618_eth.c qom: Have class_init() take a const data argument 8 months ago
ne2000-isa.c qom: Have class_init() take a const data argument 8 months ago
ne2000-pci.c qom: Make InterfaceInfo[] uses const 8 months ago
ne2000.c include/system: Move exec/memory.h to system/memory.h 8 months ago
ne2000.h Include hw/hw.h exactly where needed 6 years ago
net_rx_pkt.c hw/net/net_rx_pkt: Remove deadcode 1 year ago
net_rx_pkt.h hw/net/net_rx_pkt: Remove deadcode 1 year ago
net_tx_pkt.c Revert "hw/net/net_tx_pkt: Fix overrun in update_sctp_checksum()" 10 months ago
net_tx_pkt.h igb: Implement Tx SCTP CSO 3 years ago
npcm7xx_emc.c qom: Have class_init() take a const data argument 8 months ago
npcm_gmac.c hw/net/npcm_gmac.c: Drop 'buf' local variable 5 months ago
npcm_pcs.c qom: Have class_init() take a const data argument 8 months ago
opencores_eth.c qom: Have class_init() take a const data argument 8 months ago
pcnet-pci.c qom: Make InterfaceInfo[] uses const 8 months ago
pcnet.c Avoid unaligned fetch in ladr_match() 2 years ago
pcnet.h include/system: Move exec/memory.h to system/memory.h 8 months ago
rtl8139.c qemu: Declare all load/store helper in 'qemu/bswap.h' 6 months ago
smc91c111.c qom: Have class_init() take a const data argument 8 months ago
spapr_llan.c qom: Have class_init() take a const data argument 8 months ago
stellaris_enet.c qom: Have class_init() take a const data argument 8 months ago
sungem.c qom: Make InterfaceInfo[] uses const 8 months ago
sunhme.c qom: Make InterfaceInfo[] uses const 8 months ago
trace-events i82596: Implement enhanced TX/RX with packet queuing and filtering 2 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
tulip.c hw/net/tulip: skip automatic zero-init of large array 7 months ago
tulip.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 5 years ago
vhost_net-stub.c vhost-net: implement extended features support 3 months ago
vhost_net.c vhost-net: implement extended features support 3 months ago
virtio-net.c Revert "hw/net/virtio-net: make VirtIONet.vlans an array instead of a pointer" 3 weeks ago
vmware_utils.h hw/net/vmxnet3: Fix code to work on big endian hosts, too 8 years ago
vmxnet3.c net: bundle all offloads in a single struct 3 months ago
vmxnet3.h hw: replace FSF postal address with licenses URL 6 months ago
vmxnet3_defs.h include/hw/pci: Split pci_device.h off pci.h 3 years ago
vmxnet_debug.h Clean up ill-advised or unusual header guards 10 years ago
xen_nic.c qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2 months ago
xgmac.c hw/net/xgamc: skip automatic zero-init of large array 7 months ago
xilinx_axienet.c qom: Make InterfaceInfo[] uses const 8 months ago
xilinx_ethlite.c qom: Have class_init() take a const data argument 8 months ago