From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwJGJ-0003kM-N3 for qemu-devel@nongnu.org; Mon, 08 Jul 2013 17:46:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwJGI-0006xw-RP for qemu-devel@nongnu.org; Mon, 08 Jul 2013 17:46:23 -0400 Message-ID: <1373319954.4446.52.camel@pasglop> From: Benjamin Herrenschmidt Date: Tue, 09 Jul 2013 07:45:54 +1000 In-Reply-To: <87sizozyjl.fsf@codemonkey.ws> References: <1372315560-5478-1-git-send-email-aik@ozlabs.ru> <1372315560-5478-9-git-send-email-aik@ozlabs.ru> <87sizozyjl.fsf@codemonkey.ws> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Alexey Kardashevskiy , Alexander Graf , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Paul Mackerras , David Gibson On Mon, 2013-07-08 at 13:39 -0500, Anthony Liguori wrote: > > + .fields = (VMStateField []) { > > + /* Sanity check */ > > + VMSTATE_UINT32_EQUAL(liobn, sPAPRTCETable), > > + VMSTATE_UINT32_EQUAL(window_size, sPAPRTCETable), > > + > > + /* IOMMU state */ > > + VMSTATE_BOOL(bypass, sPAPRTCETable), > > + VMSTATE_VBUFFER_DIVIDE(table, sPAPRTCETable, 0, NULL, 0, window_size, > > + SPAPR_TCE_PAGE_SIZE / > > sizeof(sPAPRTCE)), > > Not endian safe. I really don't get the divide bit at all either. What do you mean by not endian safe ? The TCE table is a well defined format, it's always big endian regardless of the endianness of either host or guest. Cheers, Ben.