From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH v9 3/3] tools/libxc: use superpages during restore of HVM guest Date: Wed, 11 Oct 2017 16:15:32 +0200 Message-ID: <20171011141532.GI4226@aepfle.de> References: <20170901160843.9057-1-olaf@aepfle.de> <20170901160843.9057-4-olaf@aepfle.de> <20170906113410.2upxmdambiwzvk5g@citrix.com> <4623274e-c8fe-e9ad-67bb-c42e1e85c1ef@citrix.com> <20170908114536.GD19889@aepfle.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6315451066897184119==" Return-path: In-Reply-To: <20170908114536.GD19889@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Andrew Cooper Cc: Ian Jackson , Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============6315451066897184119== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uJWb33pM2TcUAXIl" Content-Disposition: inline --uJWb33pM2TcUAXIl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Fri, Sep 08, Olaf Hering wrote: > A related question: is it save to increase MAX_BATCH_SIZE from 1024 to > (256*1024) to transfer a whole gigabyte at a time? That way it will be > easier to handle holes within a 1GB superpage. To answer my own question: This change leads to this error: -#define MAX_BATCH_SIZE 1024 /* up to 1024 pages (4MB) at a time */ +#define MAX_BATCH_SIZE SUPERPAGE_1GB_NR_PFNS /* up to 1GB at a time */ ... xc: info: Found x86 HVM domain from Xen 4.10 xc: detail: dom 9 p2m_size fee01 max_pages 100100 xc: info: Restoring domain xc: error: Failed to read Record Header from stream (0 = Success): Internal error xc: error: Restore failed (0 = Success): Internal error ... Olaf --uJWb33pM2TcUAXIl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSkRyP6Rn//f03pRUBdQqD6ppg2fgUCWd4ngQAKCRBdQqD6ppg2 fiK4AKCtWJART5HTZr9/gz8yfFDhfJyYhACffN6NuLFKDgTeF9TpGcgjVONV8ww= =vccx -----END PGP SIGNATURE----- --uJWb33pM2TcUAXIl-- --===============6315451066897184119== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============6315451066897184119==--