Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-15 Thread Paolo Bonzini
Il 08/07/2013 20:39, Anthony Liguori ha scritto: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is, the PAPR specified IOMMU). Signed-off-by:

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-15 Thread Anthony Liguori
Paolo Bonzini pbonz...@redhat.com writes: Il 08/07/2013 20:39, Anthony Liguori ha scritto: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is,

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-10 Thread David Gibson
On Tue, Jul 09, 2013 at 10:22:39AM -0500, Anthony Liguori wrote: David Gibson da...@gibson.dropbear.id.au writes: On Mon, Jul 08, 2013 at 01:39:26PM -0500, Anthony Liguori wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-09 Thread David Gibson
On Mon, Jul 08, 2013 at 01:39:26PM -0500, Anthony Liguori wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is, the PAPR specified

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-09 Thread Anthony Liguori
David Gibson da...@gibson.dropbear.id.au writes: On Mon, Jul 08, 2013 at 01:39:26PM -0500, Anthony Liguori wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-09 Thread Anthony Liguori
David Gibson da...@gibson.dropbear.id.au writes: On Mon, Jul 08, 2013 at 01:39:26PM -0500, Anthony Liguori wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-08 Thread Anthony Liguori
Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is, the PAPR specified IOMMU). Signed-off-by: David Gibson da...@gibson.dropbear.id.au

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-08 Thread Benjamin Herrenschmidt
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 */ +

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-08 Thread Anthony Liguori
Benjamin Herrenschmidt b...@kernel.crashing.org writes: 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,

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-08 Thread Benjamin Herrenschmidt
On Mon, 2013-07-08 at 17:15 -0500, Anthony Liguori wrote: Hypercall arguments are passed in CPU endianness so what's being stored in the tce table is CPU endianness. Since VBUFFER just does a blind write() of the full array of uint64s, what goes on the wire will be CPU endianness. So if

[Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-06-27 Thread Alexey Kardashevskiy
From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is, the PAPR specified IOMMU). Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru ---