qemu-e2k/include/hw/virtio
Stefan Hajnoczi 2bbadb08ce virtio-balloon: fix QEMU 4.0 config size migration incompatibility
The virtio-balloon config size changed in QEMU 4.0 even for existing
machine types.  Migration from QEMU 3.1 to 4.0 can fail in some
circumstances with the following error:

  qemu-system-x86_64: get_pci_config_device: Bad config data: i=0x10 read: a1 device: 1 cmask: ff wmask: c0 w1cmask:0

This happens because the virtio-balloon config size affects the VIRTIO
Legacy I/O Memory PCI BAR size.

Introduce a qdev property called "qemu-4-0-config-size" and enable it
only for the QEMU 4.0 machine types.  This way <4.0 machine types use
the old size, 4.0 uses the larger size, and >4.0 machine types use the
appropriate size depending on enabled virtio-balloon features.

Live migration to and from old QEMUs to QEMU 4.1 works again as long as
a versioned machine type is specified (do not use just "pc"!).

Originally-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20190710141440.27635-1-stefanha@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Tested-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Tested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2019-07-12 10:56:26 -04:00
..
vhost-backend.h vhost-user: add vhost_user_gpu_set_socket() 2019-05-29 06:29:07 +02:00
vhost-scsi-common.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
vhost-scsi.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
vhost-user-blk.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
vhost-user-scsi.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
vhost-user.h vhost-user: simplify vhost_user_init/vhost_user_cleanup 2019-03-12 21:22:31 -04:00
vhost-vsock.h Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00
vhost.h vhost-user: Support transferring inflight buffer between qemu and backend 2019-03-12 22:31:21 -04:00
virtio-access.h
virtio-balloon.h virtio-balloon: fix QEMU 4.0 config size migration incompatibility 2019-07-12 10:56:26 -04:00
virtio-blk.h virtio-blk: add DISCARD and WRITE_ZEROES features 2019-02-22 09:42:17 +00:00
virtio-bus.h
virtio-crypto.h Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00
virtio-gpu-bswap.h virtio-gpu: add bswap helpers header 2019-05-29 06:29:07 +02:00
virtio-gpu-pci.h hw/display: add vhost-user-vga & gpu-pci 2019-05-29 06:30:45 +02:00
virtio-gpu-pixman.h virtio-gpu: add a pixman helper header 2019-05-29 06:29:07 +02:00
virtio-gpu.h edid: flip the default to enabled 2019-06-13 09:34:50 +02:00
virtio-input.h Add vhost-user-input-pci 2019-05-10 14:52:47 +02:00
virtio-net.h virtio-net: Switch to using announce timer 2019-03-05 11:27:41 +08:00
virtio-pmem.h virtio-pmem: add virtio device 2019-07-02 12:59:22 -04:00
virtio-rng.h
virtio-scsi.h
virtio-serial.h
virtio.h virtio: Set "start_on_kick" for legacy devices 2019-07-04 17:00:32 -04:00