dosemu2 icon indicating copy to clipboard operation
dosemu2 copied to clipboard

i915 direct console graphics broken with KVM

Open stsp opened this issue 7 years ago • 5 comments

Currently on i915 (integrated video) I have direct console graphics working only under cpu-emu. KVM gives a complete machine hang. Can anyone please check if it works on other cards?

stsp avatar Jul 06 '18 23:07 stsp

Hmmm... @bartoldeman could you please explain, how kvm works here w/o KVM_GET_REGS after KVM_RUN? I am getting out of sync regs, however if I put them in sync with this ioctl, it gets even worse...

stsp avatar Jul 07 '18 00:07 stsp

OK, the regs trick seems to be in kvmmon.S.

stsp avatar Jul 07 '18 00:07 stsp

Well, there is some problem with port emulation I suppose, but I don't know how to debug it if it just hangs. :(

stsp avatar Jul 07 '18 00:07 stsp

Direct console graphics means that you need to reboot with "nomodeset" kernel parameter and then run dosemu -s form text console (not from X). This is rarely used. As we have SDL1 output, we can run with KMS enabled, but as you've seen in the nearby ticket, this doesn't always work too.

stsp avatar Jul 13 '18 20:07 stsp

But I tried on radeon and it worked, so its i915-specific. Plus it ends up with MCE I think (PC reboots after 30 seconds of a hang, which is what MCE handler usually does), which suggests it may be a KVM bug.

stsp avatar Jul 13 '18 20:07 stsp