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

2010-09-11 Thread Alexander Graf
On 12.09.2010, at 00:39, Andreas Färber wrote: > Am 11.09.2010 um 23:37 schrieb Alexander Graf: > >> On 11.09.2010, at 19:05, Andreas Färber wrote: >> >>> Remaining madvise() users: >>> exec.c: limited to __linux__ and/or MADV_MERGEABLE (no POSIX equivalent) >>> kvm-all.c: limited to MADV_DONTF

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

2010-09-11 Thread Andreas Färber
Am 11.09.2010 um 23:37 schrieb Alexander Graf: On 11.09.2010, at 19:05, Andreas Färber wrote: Remaining madvise() users: exec.c: limited to __linux__ and/or MADV_MERGEABLE (no POSIX equivalent) kvm-all.c: limited to MADV_DONTFORK (no POSIX equivalent), otherwise runtime error if !k

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

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 19:05, 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' _POSIX_C_SO

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

2010-09-11 Thread Andreas Färber
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' _POSIX_C_SOURCE suppresses the prototype. Haiku doesn't implement madvi