Re: [PATCH] RFC: replace qemu_real_host_page variables with inlined functions

2022-03-08 Thread Marc-André Lureau
Hi On Mon, Mar 7, 2022 at 9:41 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 3/1/22 04:46, marcandre.lur...@redhat.com wrote: > > Replace the global variables with inlined helper functions. > getpagesize() is very > > likely annotated with a "const" function attribute (at least

Re: [PATCH] RFC: replace qemu_real_host_page variables with inlined functions

2022-03-07 Thread Richard Henderson
On 3/1/22 04:46, marcandre.lur...@redhat.com wrote: Replace the global variables with inlined helper functions. getpagesize() is very likely annotated with a "const" function attribute (at least with glibc), and thus optimization should apply even better. This avoids the need for a constructor

Re: [PATCH] RFC: replace qemu_real_host_page variables with inlined functions

2022-03-07 Thread Marc-André Lureau
On Tue, Mar 1, 2022 at 6:48 PM wrote: > From: Marc-André Lureau > > Replace the global variables with inlined helper functions. getpagesize() > is very > likely annotated with a "const" function attribute (at least with glibc), > and thus > optimization should apply even better. > > This avoids

[PATCH] RFC: replace qemu_real_host_page variables with inlined functions

2022-03-01 Thread marcandre . lureau
From: Marc-André Lureau Replace the global variables with inlined helper functions. getpagesize() is very likely annotated with a "const" function attribute (at least with glibc), and thus optimization should apply even better. This avoids the need for a constructor initialization too. Signed