Re: [Qemu-devel] [PATCH 02/13] Implement cpu_physical_memory_zero()

2012-05-14 Thread Anthony Liguori
On 05/14/2012 08:23 PM, David Gibson wrote: On Mon, May 14, 2012 at 07:42:00PM -0500, Anthony Liguori wrote: On 05/09/2012 11:48 PM, Benjamin Herrenschmidt wrote: From: David Gibson [snip] @@ -3581,6 +3581,59 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, } }

Re: [Qemu-devel] [PATCH 02/13] Implement cpu_physical_memory_zero()

2012-05-14 Thread David Gibson
On Mon, May 14, 2012 at 07:42:00PM -0500, Anthony Liguori wrote: > On 05/09/2012 11:48 PM, Benjamin Herrenschmidt wrote: > >From: David Gibson [snip] > >@@ -3581,6 +3581,59 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, > >uint8_t *buf, > > } > > } > > > >+void cpu_physical_memory_z

Re: [Qemu-devel] [PATCH 02/13] Implement cpu_physical_memory_zero()

2012-05-14 Thread Anthony Liguori
On 05/09/2012 11:48 PM, Benjamin Herrenschmidt wrote: From: David Gibson This patch adds cpu_physical_memory_zero() function. This is equivalent to calling cpu_physical_memory_write() with a buffer full of zeroes, but avoids actually allocating such a buffer along the way. Signed-off-by: David

[Qemu-devel] [PATCH 02/13] Implement cpu_physical_memory_zero()

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson This patch adds cpu_physical_memory_zero() function. This is equivalent to calling cpu_physical_memory_write() with a buffer full of zeroes, but avoids actually allocating such a buffer along the way. Signed-off-by: David Gibson Signed-off-by: Benjamin Herrenschmidt --- cp