sleirsgoevy wrote:
For context: I'm playing with the Linux kernel, 0x...fe1 is the value of IA32_LSTAR that I've set (turns out that using a trampoline has the same effect, it's not tied to the LSTAR). The issue is present both on raw QEMU and on KVM, thus I suppose that its on my side and not an emulation bug.
It could still be an emulation bug, if the breakpoint itself is being emulated. But why are you trying to insert the INT3 instruction in the first place?
sleirsgoevy wrote:
P.S. When registering, I was asked which fault causes a reboot, with the answer being "triple". The irony is, the very PC I used to register actually hangs when a triple fault is issued (and yes, I can print to screen and it won't disappear, gg)
Rebooting after a triple fault is actually a compatibility feature. Some 286 OSes relied on it. Hardware designers aren't too concerned about 286 compatibility nowadays.
sleirsgoevy wrote:
P.P.S. Bochs wasn't able to boot my test VM to a shell, so haven't tested there.
How far did it get? It might just need more RAM - Bochs defaults to a very small amount.