From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrVYO-0006U8-7q for qemu-devel@nongnu.org; Thu, 20 Nov 2014 12:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrVYI-0001gB-No for qemu-devel@nongnu.org; Thu, 20 Nov 2014 12:30:00 -0500 Message-ID: <546E2510.6030808@suse.de> Date: Thu, 20 Nov 2014 18:29:52 +0100 From: Alexander Graf MIME-Version: 1.0 References: <1415027690-9123-1-git-send-email-clg@fr.ibm.com> In-Reply-To: <1415027690-9123-1-git-send-email-clg@fr.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] target-ppc: explicitly save page table headers in big endian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?Q8OpZHJpYyBMZSBHb2F0ZXI=?= Cc: Alexey Kardashevskiy , Paul Mackerras , qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 03.11.14 16:14, C=C3=A9dric Le Goater wrote: > Currently, when the page tables are saved, the kvm_get_htab_header stru= cts=20 > and the ptes are assumed being big endian and dumped as a indistinct bl= ob=20 > in the statefile. This is no longer true when the host is little endian= =20 > and this breaks restoration. >=20 > This patch unfolds the kvmppc_save_htab routine to write explicitly the= =20 > kvm_get_htab_header structs in big endian. The ptes are left untouched. >=20 > Signed-off-by: C=C3=A9dric Le Goater > Cc: Paul Mackerras > Cc: Alexey Kardashevskiy > Cc: Gregory Kurz Thanks, applied to ppc-next-2.3. Alex