Files
qemu/include/hw
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
..
2019-06-16 16:16:52 -04:00
2016-10-04 13:28:07 +01:00
2019-07-01 17:29:00 +01:00
2019-06-12 13:20:20 +02:00
2019-05-13 08:58:55 +02:00
2017-01-27 18:07:59 +01:00
2019-06-13 09:34:38 +02:00
2019-06-12 13:20:20 +02:00
2019-02-22 09:42:13 +00:00
2016-05-18 15:04:27 +03:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-07-01 17:29:00 +01:00
2019-06-12 13:20:20 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-07-01 17:28:59 +01:00
2019-07-01 17:29:00 +01:00
2019-06-24 10:42:30 +01:00
2017-01-27 18:07:59 +01:00
2019-02-05 16:50:16 +01:00
2018-12-11 15:45:22 -02:00
2019-06-12 13:20:21 +02:00