From: "Jan Beulich" Subject: [PATCH] x86/mm: don't call HVM-only function for PV guests Date: Tue, 27 Oct 2015 09:23:56 -0600 Message-ID: <562FA51C02000078000AF347@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part9AADEE1C.2__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zr66h-0001PR-KL for xen-devel@lists.xenproject.org; Tue, 27 Oct 2015 15:24:15 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: George Dunlap , Andrew Cooper , Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part9AADEE1C.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- 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 do * 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); =20 domain_pause(d); --=__Part9AADEE1C.2__= Content-Type: text/plain; name="x86-HVM-map-gf-dirtying-no-PV.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-HVM-map-gf-dirtying-no-PV.patch" x86/mm: don't call HVM-only function for PV guests=0A=0ASomehow I managed = to drop the HVM dependency from v2 to v3 of what=0Abecame commit 5c23c760a8= ("x86/HVM: correct page dirty marking in=0Ahvm_map_guest_frame_rw()"), = obviously breaking migration of PV guests.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/mm/paging.c=0A+++ b/xen/arch/x8= 6/mm/paging.c=0A@@ -425,7 +425,8 @@ static int paging_log_dirty_op(struct = do=0A * Mark dirty all currently write-mapped pages on e.g. = the=0A * final iteration of a save operation.=0A */=0A- = if ( sc->mode & XEN_DOMCTL_SHADOW_LOGDIRTY_FINAL )=0A+ if ( = has_hvm_container_domain(d) &&=0A+ (sc->mode & XEN_DOMCTL_SHADO= W_LOGDIRTY_FINAL) )=0A hvm_mapped_guest_frames_mark_dirty(d);= =0A =0A domain_pause(d);=0A --=__Part9AADEE1C.2__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part9AADEE1C.2__=--