5 ms·
Can you explain the steps necessary to combine a JS x86 interpreter with a binary Linux disk image into a running VM? The part I don't understand is, what envi
by euroclydon 15y ago
Can you explain the steps necessary to combine a JS x86 interpreter with a binary Linux disk image into a running VM?
The part I don't understand is, what environment does the Kernel need to think is there, and how is that done in JS?
- cakeface 15y agoThis is explained well in the Technical Notes section of the site. http://bellard.org/jslinux/tech.html http://bellard.org/jslinux/tech.html
- euroclydon 15y agoI saw that, but I don't understand how it's booted.
- nupark2 15y agoFrom what I can see from the minimized JS, it: - Loads the linux binary and the root memory disk image into 'memory' at the expected addresses (0x100000 and 0x400000, respectively) - Sets the interpreted x86 CPU's EIP to the kernel's entry point - Initializes additional requisite register state - Starts execution. Take a look at load_binary() and start() functions. [edit] rickard already discussed this here: http://news.ycombinator.com/item?id=2555552 http://news.ycombinator.com/item?id=2555552