cl91 / NeptuneOS

Neptune OS: A Windows NT personality for the seL4 microkernel
GNU General Public License v3.0
374 stars 11 forks source link

How can i emukate this in QEMU? #13

Closed leap0x7b closed 2 years ago

leap0x7b commented 2 years ago

I got fsgsbase instructions not supported by the processor in the serial console

cl91 commented 2 years ago

Setting the emulated processor to at least ivy bridge with the -cpu option will solve this problem. The default amd64 emulation target of qemu doesn't enable the fsgsbase instruction which is needed for TLS (thread local storage). Have a look at the run.sh script in the repo which has the right qemu options.

cl91 commented 2 years ago

Let me know if you get it working, I'll close the issue once you solve this problem (or you can close it yourself 🤣🤣).