From: Olaf Hering Subject: Re: [PATCH v5 3/3] tools/libxc: use superpages during restore of HVM guest Date: Fri, 25 Aug 2017 20:27:52 +0200 Message-ID: <20170825182752.GQ6372@aepfle.de> References: <20170825163319.6650-1-olaf@aepfle.de> <20170825163319.6650-4-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2165758978978691903==" Return-path: In-Reply-To: <20170825163319.6650-4-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel@lists.xen.org, Andrew Cooper , Ian Jackson , Wei Liu List-Id: xen-devel@lists.xenproject.org --===============2165758978978691903== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9uazBBczf8QSjDPd" Content-Disposition: inline --9uazBBczf8QSjDPd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Fri, Aug 25, Olaf Hering wrote: > +static int x86_hvm_populate_pfns(struct xc_sr_context *ctx, unsigned count, > + const xen_pfn_t *original_pfns, > + const uint32_t *types) > +{ > + while ( min_pfn < max_pfn ) Beside this off-by-one error, there is still a bug in accounting somewhere. Ballooned guests sometimes fails due to allocation errors. Olaf --9uazBBczf8QSjDPd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSkRyP6Rn//f03pRUBdQqD6ppg2fgUCWaBsJAAKCRBdQqD6ppg2 fq85AKDyoEqNBQGurbZ4tI+XbV3lVbvK/QCfSUCOBvhuJNqvimBlp9LOdNgr4aA= =ATaz -----END PGP SIGNATURE----- --9uazBBczf8QSjDPd-- --===============2165758978978691903== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============2165758978978691903==--