From: Jan Beulich Date: Tue, 27 Oct 2015 15:34:29 +0000 (+0100) Subject: x86/mm: don't call HVM-only function for PV guests X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2337 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf0d4923d7783ece38bb8f3b832e8df0f3fc284b;p=xen.git x86/mm: don't call HVM-only function for PV guests Somehow I managed to drop the HVM dependency from v2 to v3 of what became commit 5c23c760a8 ("x86/HVM: correct page dirty marking in hvm_map_guest_frame_rw()"), obviously breaking migration of PV guests. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c index e6f726dff8..0bfb2be652 100644 --- a/xen/arch/x86/mm/paging.c +++ b/xen/arch/x86/mm/paging.c @@ -425,7 +425,8 @@ static int paging_log_dirty_op(struct domain *d, * Mark dirty all currently write-mapped pages on e.g. the * final iteration of a save operation. */ - if ( sc->mode & XEN_DOMCTL_SHADOW_LOGDIRTY_FINAL ) + if ( has_hvm_container_domain(d) && + (sc->mode & XEN_DOMCTL_SHADOW_LOGDIRTY_FINAL) ) hvm_mapped_guest_frames_mark_dirty(d); domain_pause(d);