]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
xen: Set the vram dirty when an error occurs.
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 21 Feb 2013 12:16:42 +0000 (12:16 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 21 Feb 2013 12:16:42 +0000 (12:16 +0000)
commiteccc68722696864fc4823f048c7be58d11281b97
treee4525cb46304b2c1a98161770ca3d3a7254d7f1b
parent68363d1c1a0bd0cebb8910fad60772b00b4d3c95
xen: Set the vram dirty when an error occurs.

If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all the
video ram. This case happens during migration.

Backport of 8aba7dc02d5660df7e7d8651304b3079908358be

This backport is less clean that it might be because there is no
memory_region_set_dirty that copes with more than one page in 4.2,
and the case where the call to xc_hvm_track_dirty_vram is
successful also needs to ensure xen_modified_memory is
called (which would on unstable have been done within
memory_region_set_dirty).

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Alex Bligh <alex@alex.org.uk>
xen-all.c