Home
last modified time | relevance | path

Searched hist:"2811 af3b497b2bfadf38cda0fc92a709f83e8a7e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/i386/
H A Dintel_iommu.cdiff 2811af3b497b2bfadf38cda0fc92a709f83e8a7e Fri Mar 29 01:14:21 CDT 2019 Peter Xu <peterx@redhat.com> intel_iommu: Fix root_scalable migration breakage

When introducing the initial support for scalable mode we added a
new field into vmstate however we blindly migrate that field without
notice. That'll break migration no matter forward or backward.

The normal way should be that we use something like
VMSTATE_UINT32_TEST() or subsections for the new vmstate field however
for this case of vt-d we can even make it simpler because we've
already migrated all the registers and it'll be fairly simple that we
re-generate root_scalable field from the register values during post
load of the device.

Fixes: fb43cf739e ("intel_iommu: scalable mode emulation")
Reviewed-by: Yi Sun <yi.y.sun@linux.intel.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20190329061422.7926-2-peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>