xen-pvdevice: Introduce a simplistic xen-pvdevice save state
commit1dd6af7395670f3dcd05ddb64ce6c374a81ae701
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 13 Mar 2018 23:14:54 +0000 (13 23:14 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 18 May 2018 18:01:20 +0000 (18 11:01 -0700)
tree0bba19b92858dcf680addfb4836d8390dfd1e0d6
parentd32e41a1188e929cc0fb16829ce3736046951e39
xen-pvdevice: Introduce a simplistic xen-pvdevice save state

This should help to avoid problems with accessing the device after
migration/resume without PV drivers by migrating its PCI configuration
space state. Without an explicitly defined state record it resets
every time a VM migrates which confuses the OS and makes every
access to xen-pvdevice MMIO region to fail. PV tools enable some
logic to save and restore PCI configuration state from within the VM
every time it migrates which basically hides the issue.

Older systems will acquire the new record when migrated which should
not change their state for worse.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/i386/xen/xen_pvdevice.c