Re: [Qemu-devel] [PATCH 1/2] mmap-alloc: unfold qemu_ram_mmap()

2019-02-01 Thread Balamuruhan S
On Wed, Jan 30, 2019 at 09:36:04PM -0200, Murilo Opsfelder Araujo wrote: > Unfold parts of qemu_ram_mmap() for the sake of understanding, moving > declarations to the top, and keeping architecture-specifics in the > ifdef-else blocks. No changes in the function behaviour. > > Give ptr and ptr1 me

Re: [Qemu-devel] [PATCH 1/2] mmap-alloc: unfold qemu_ram_mmap()

2019-01-31 Thread Greg Kurz
On Wed, 30 Jan 2019 21:36:04 -0200 Murilo Opsfelder Araujo wrote: > Unfold parts of qemu_ram_mmap() for the sake of understanding, moving > declarations to the top, and keeping architecture-specifics in the > ifdef-else blocks. No changes in the function behaviour. > > Give ptr and ptr1 meaning

[Qemu-devel] [PATCH 1/2] mmap-alloc: unfold qemu_ram_mmap()

2019-01-30 Thread Murilo Opsfelder Araujo
Unfold parts of qemu_ram_mmap() for the sake of understanding, moving declarations to the top, and keeping architecture-specifics in the ifdef-else blocks. No changes in the function behaviour. Give ptr and ptr1 meaningful names: ptr -> guardptr : pointer to the PROT_NONE guard region ptr1 -