v86
v86 copied to clipboard
reboot Issues
Every time I run an os it requests a reboot then the CPU halts is it possible to implement a simulated reboot like Limbo/Qemu uses
I use dos and freedos every time I boot it says no disk found then it says formatting hard drive reboot required then CPU halted in the debug output
Would love to help implementing this if @copy can provide initial instructions/context! Also need it for my project.
First, check which method the guest uses for rebooting.
If it's via the ps2 controller or pci, you should see this log message: https://github.com/copy/v86/blob/6b376fc/src/ps2.js#L807 or this: https://github.com/copy/v86/blob/6b376fc/src/pci.js#L122
This method is already implemented (see reboot_internal
in cpu.js), but probably incorrectly. If you use bzimage, it probably needs to call load_kernel
. In other cases I'm not sure what's wrong. There should be some bios log messages after the reboot. Try changing this to true.
If the guest reboots via triple fault, it should log something similar to "Unimplemented: #GP handler". This is trickier, because we'd need to detect triple faults.
this was so long ago it was fixed and was related to freedos
I think it's better to leave this open, as it's not fixed.
okay, Im going to change the name then, copy