[Qemu-devel] Re: [PATCH] Introduce qemu_madvise()

2010-09-12 Thread Blue Swirl
On Sun, Sep 12, 2010 at 8:50 AM, Andreas Färber wrote: > Am 12.09.2010 um 09:20 schrieb Blue Swirl: > >> On Sat, Sep 11, 2010 at 5:05 PM, Andreas Färber >> wrote: >>> >>> Use qemu_madvise() in arch_init.c's ram_load(). >>> >>> >>> http://www.opengroup.org/onlinepubs/9699919799/functions/posix_mad

[Qemu-devel] Re: [PATCH] Introduce qemu_madvise()

2010-09-12 Thread Andreas Färber
Am 12.09.2010 um 09:20 schrieb Blue Swirl: On Sat, Sep 11, 2010 at 5:05 PM, Andreas Färber > wrote: Use qemu_madvise() in arch_init.c's ram_load(). http://www.opengroup.org/onlinepubs/9699919799/functions/posix_madvise.html Remaining madvise() users: exec.c: limited to __linux__ and/or MADV_ME

[Qemu-devel] Re: [PATCH] Introduce qemu_madvise()

2010-09-12 Thread Blue Swirl
On Sat, Sep 11, 2010 at 5:05 PM, Andreas Färber wrote: > From: Andreas Färber > > vl.c has a Sun-specific hack to supply a prototype for madvise(), > but the call site has apparently moved to arch_init.c. > The underlying issue is that madvise() is not a POSIX function, > therefore Solaris' _POSI