v86 icon indicating copy to clipboard operation
v86 copied to clipboard

reboot Issues

Open strikersix23 opened this issue 5 years ago • 6 comments

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

strikersix23 avatar Sep 14 '18 18:09 strikersix23

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

strikersix23 avatar Sep 18 '18 13:09 strikersix23

Would love to help implementing this if @copy can provide initial instructions/context! Also need it for my project.

fnune avatar Aug 19 '22 04:08 fnune

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.

copy avatar Aug 19 '22 08:08 copy

this was so long ago it was fixed and was related to freedos

strikersix23 avatar Aug 26 '22 18:08 strikersix23

I think it's better to leave this open, as it's not fixed.

copy avatar Aug 27 '22 12:08 copy

okay, Im going to change the name then, copy

strikersix23 avatar Aug 27 '22 19:08 strikersix23