Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reboot Issues #234

Open
strikersix23 opened this issue Sep 14, 2018 · 6 comments
Open

reboot Issues #234

strikersix23 opened this issue Sep 14, 2018 · 6 comments
Labels

Comments

@strikersix23
Copy link

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
Copy link
Author

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

@copy copy added the bug label Aug 2, 2019
@fnune
Copy link

fnune commented Aug 19, 2022

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

@copy
Copy link
Owner

copy commented Aug 19, 2022

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.

@strikersix23
Copy link
Author

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

@copy
Copy link
Owner

copy commented Aug 27, 2022

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

@copy copy reopened this Aug 27, 2022
@strikersix23
Copy link
Author

okay, Im going to change the name then, copy

@strikersix23 strikersix23 changed the title Can you implement simulated reboot reboot Issues Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants