OSv has various types which have special alignment requirements - e.g.,
some objects are aligned to cache-line size for performance, some objects
are aligned because of processor requirements (e.g., fpu state needs to
be 64-byte aligned) or ABI requirements (stacks need to be 16-byte aligned).
Whi
In 56c6195b252b127c7fe90cb9fa46c370b384b51a was added option for
reading configuration file from a secondary disk. This is so-called
NoCloud configuration method, see also
http://cloudinit.readthedocs.io/en/0.7.9/topics/datasources/nocloud.html.
Due to missing ISO filesystem support, a custom disk
On Tuesday, July 11, 2017 at 2:56:41 PM UTC+2, Nadav Har'El wrote:
>
> On Thu, Jun 15, 2017 at 1:31 PM, Justin Cinkelj > wrote:
>
>> In 56c6195b252b127c7fe90cb9fa46c370b384b51a was added option for
>> reading configuration file from a secondary disk. Due to missing ISO
>> filesystem support, a c
We use "init_stack_top" as the end of the stack for loader.cc's premain()
and main() functions (all other threads will allocate their stacks
dynamically). A size of 4*4096 = 16384 bytes was reserved for this stack,
but we actually use more (main() puts a sched::thread object on the stack
and its si
In boot.S we reserved 40960 bytes for an "interrupt stack" that is not
actually used anywhere since almost the start of OSv (see commit
da6ba16dbd182517e4c889f806cd9ce57151). So get rid of it.
Signed-off-by: Nadav Har'El
---
arch/x64/boot.S | 4
1 file changed, 4 deletions(-)
diff --gi
This patch fixes an early boot crash (a #GP) of the optimized build
built with gcc 7.
According to the x86_64 ABI, C functions must be called with the stack
16-byte aligned. The called function may and do use this assumption to
create aligned objects on the stack without wasting time to verify the
Gcc 7 rightly complains that in bsd_init() we create an uninitialized
timeval structure, and then use it to see the random number generator.
The intention was probably to fetch the current time here :-) So let's
do it.
Signed-off-by: Nadav Har'El
---
bsd/init.cc | 1 +
1 file changed, 1 insertio
In bsd/sys/netinet/in_mcast we get a "maybe uninitialized" warning which
as far as I can tell, is a false alarm. I also checked the freebsd tree,
and they haven't fixed anything in this area, so it's probably correct.
So let's just ignore this warning.
Signed-off-by: Nadav Har'El
---
Makefile |
Dynamic exception specifications (throw(...) specification on functions)
were deprecated in C++11 so we shouldn't use them. Gcc 7 started complaining
about them, so it's about time we get rid of them.
Use the C++11 "noexcept" instead, where appropriate (instead of an empty
throw()).
Signed-off-by
Gcc 7 complains about defining memset when we don't include a header
file with its prototype. So let's do.
Signed-off-by: Nadav Har'El
---
fastlz/lzloader.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/fastlz/lzloader.cc b/fastlz/lzloader.cc
index 5f95e413..e05387e7 100644
--- a/fastlz/l
Gcc 7 rightly complains when we try to allocate an array with a signed
int length. Changing the length variable to unsigned int fixes it.
Signed-off-by: Nadav Har'El
---
core/app.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/app.cc b/core/app.cc
index d623a618..527a
I confirm it works as expected. Thanks Justin (and Nadav for already
acceptiog the patch upstream)!
Dne torek, 11. julij 2017 16.32.43 UTC+2 je oseba Justin Cinkelj napisala:
>
> Miha, please confirm this fixes problem you have.
>
> Justin
>
> On 07/11/2017 04:31 PM, Justin Cinkelj wrote:
>
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
command line: expand env vars before using them to expand cmdline
Previously, runscript with content
"--env=PORT?= /usr/lib/mpi_hello.so aaa $PORT ccc",
run as
/scripts/run.py -Vd -e '--env=PORT=newport runscript /script/my-script
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Support mmap() flag MAP_32BIT
Support the mmap() flag MAP_32BIT which asks for the allocated address
to be in the lower 32 bits. Some applications (like wrk and luajit)
use this flag and need it to work as expected.
By default, OSv map
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
add openat64() and creat64() functions
Add functions openat64() and creat64() as aliases to the usual functions.
Refs #747.
Signed-off-by: Nadav Har'El
Message-Id: <20170712062906.2401-1-...@scylladb.com>
---
diff --git a/fs/vfs/mai
15 matches
Mail list logo