Re: [Qemu-devel] [PATCH 2/4] exec: add wrapper for host pointer access

2014-11-17 Thread Michael S. Tsirkin
On Mon, Nov 17, 2014 at 12:59:44PM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Mon, Nov 17, 2014 at 10:58:53AM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > host pointer accesses force pointer math, l

Re: [Qemu-devel] [PATCH 2/4] exec: add wrapper for host pointer access

2014-11-17 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Mon, Nov 17, 2014 at 10:58:53AM +, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > host pointer accesses force pointer math, let's > > > add a wrapper to make them safer. > > > > > > Signed-off-by: Michael

Re: [Qemu-devel] [PATCH 2/4] exec: add wrapper for host pointer access

2014-11-17 Thread Michael S. Tsirkin
On Mon, Nov 17, 2014 at 10:58:53AM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > host pointer accesses force pointer math, let's > > add a wrapper to make them safer. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > include/exec/cpu-all.h | 5

Re: [Qemu-devel] [PATCH 2/4] exec: add wrapper for host pointer access

2014-11-17 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > host pointer accesses force pointer math, let's > add a wrapper to make them safer. > > Signed-off-by: Michael S. Tsirkin > --- > include/exec/cpu-all.h | 5 + > exec.c | 10 +- > 2 files changed, 10 insertions(+), 5 de

[Qemu-devel] [PATCH 2/4] exec: add wrapper for host pointer access

2014-11-12 Thread Michael S. Tsirkin
host pointer accesses force pointer math, let's add a wrapper to make them safer. Signed-off-by: Michael S. Tsirkin --- include/exec/cpu-all.h | 5 + exec.c | 10 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec