Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-17 Thread Stefan Hajnoczi
On Sun, Dec 16, 2012 at 06:11:14PM +0200, Michael S. Tsirkin wrote: On Fri, Dec 14, 2012 at 12:45:16PM +0100, Stefan Hajnoczi wrote: On Wed, Dec 12, 2012 at 4:49 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Dec 12, 2012 at 04:34:21PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11,

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-16 Thread Michael S. Tsirkin
On Fri, Dec 14, 2012 at 12:45:16PM +0100, Stefan Hajnoczi wrote: On Wed, Dec 12, 2012 at 4:49 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Dec 12, 2012 at 04:34:21PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 08:09:56PM +0200, Michael S. Tsirkin wrote: On Tue, Dec 11,

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-14 Thread Stefan Hajnoczi
On Wed, Dec 12, 2012 at 4:49 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Dec 12, 2012 at 04:34:21PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 08:09:56PM +0200, Michael S. Tsirkin wrote: On Tue, Dec 11, 2012 at 10:32:28AM -0600, Anthony Liguori wrote: Michael S. Tsirkin

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-12 Thread Stefan Hajnoczi
On Tue, Dec 11, 2012 at 08:09:56PM +0200, Michael S. Tsirkin wrote: On Tue, Dec 11, 2012 at 10:32:28AM -0600, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 3:13 PM, Michael S.

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-12 Thread Michael S. Tsirkin
On Wed, Dec 12, 2012 at 04:34:21PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 08:09:56PM +0200, Michael S. Tsirkin wrote: On Tue, Dec 11, 2012 at 10:32:28AM -0600, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Tue, Dec 11, 2012 at 04:27:49PM +0100,

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Michael S. Tsirkin
On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: The data plane thread needs to map guest physical addresses to host pointers. Normally this is done with cpu_physical_memory_map() but the function assumes the global mutex is held. The data plane thread does not touch the

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Stefan Hajnoczi
On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: The data plane thread needs to map guest physical addresses to host pointers. Normally this is done with cpu_physical_memory_map() but the function

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: The data plane thread needs to map guest physical addresses to host pointers.

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: The data plane thread needs to map guest

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 10:32:28AM -0600, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 10, 2012 at 02:09:36PM

[Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-10 Thread Stefan Hajnoczi
The data plane thread needs to map guest physical addresses to host pointers. Normally this is done with cpu_physical_memory_map() but the function assumes the global mutex is held. The data plane thread does not touch the global mutex and therefore needs a thread-safe memory mapping mechanism.