From: Roger Pau Monné Date: Wed, 1 Apr 2020 10:36:57 +0000 (+0200) Subject: x86/dom0: fix copy of low 1MB data for PVH X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~459 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3925402f5dd7ae93010c48688eb64f880c794267;p=xen.git x86/dom0: fix copy of low 1MB data for PVH The orders of start and end are inverted in order to calculate the size of the copy operation. Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich --- diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0_build.c index 2afd44c8a4..12a82c9d7c 100644 --- a/xen/arch/x86/hvm/dom0_build.c +++ b/xen/arch/x86/hvm/dom0_build.c @@ -463,7 +463,7 @@ static int __init pvh_populate_p2m(struct domain *d) enum hvm_translation_result res = hvm_copy_to_guest_phys(mfn_to_maddr(_mfn(addr)), mfn_to_virt(addr), - d->arch.e820[i].addr - end, + end - d->arch.e820[i].addr, v); if ( res != HVMTRANS_okay )