]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/HVM: correct page dirty marking in hvm_map_guest_frame_rw()
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Oct 2015 10:42:04 +0000 (11:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Oct 2015 10:42:04 +0000 (11:42 +0100)
commit5c23c760a8ef4cec4aaef11575b85fd17e82986c
treed5d380baa8cf4d13ee1571ec2cd64994ff538f96
parentd8ba3a9e444c6943199130eea32904bc245a6d27
x86/HVM: correct page dirty marking in hvm_map_guest_frame_rw()

Rather than dirtying a page when establishing a (permanent) mapping,
dirty it when the page gets unmapped, or - if still mapped - on the
final iteration of a save operation (or in other cases where the guest
is paused or already shut down). (Transient mappings continue to get
dirtied upon getting mapped, to avoid the overhead of tracking.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_sr_save.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/paging.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/hvm/hvm.h
xen/include/public/domctl.h