Solo5 / solo5

A sandboxed execution environment for unikernels
ISC License
897 stars 138 forks source link

Support aarch64 machines with non-4k pagesizes #529

Open kit-ty-kate opened 1 year ago

kit-ty-kate commented 1 year ago

Running an hvt image on an apple M1 laptop running linux natively, I get:

solo5-hvt: dist/noop.hvt: Bad address

Looking into the matter it seems like the pagesize is hardcoded to 4k:

https://github.com/Solo5/solo5/blob/0eb8cb8f57943e7872a94e19695911a1e0b8aef6/tenders/hvt/hvt_cpu_aarch64.h#L91-L92

However M1 machines have a 16k pagesize.