Mac OS X: Guest hangs when allocating >=2G of RAM #81
Labels
bug
Something isn't working
help wanted
Extra attention is needed
host issue
Issue caused by host OS or setup
The issue
-mem
to 2G or higher.Now, there is only one place which is directly affected by
-mem
and it'sriscv_init_ram()
, which allocates guest memory using eithermmap()
orcalloc()
(depending on the target), and enables KSM/hugepages where available.The same hang scenario happens with either implementations on OS X, which are also used on Linux, Windows, FreeBSD and the problem doesn't happen there... So, same code, same APIs, different results. This already starts to be confusing.
The RAM size is later passed to the guest inside the FDT, and current debugging efforts show that it starts to work when we lie about RAM size being smaller than it actually is. To be continued...
The text was updated successfully, but these errors were encountered: