On 07.06.2012 21:46, Johannes Bauer wrote:

> In an infinite loop. Which looks to be as if it is continuously exiting
> after just one iteration (count at leave is 1299). Maybe I'll fiddle
> some more and am able to provide some insight (probably you already know
> what's going on, but it won't hurt I guess).

Followup on that: I've shorted the debug output (so it doesn't get
wrapped in mail and can be more easily read) and I've enumerated all
five possible exists from the loop:

1. intr_window_requested && (kvm_get_rflags(&vmx->vcpu) & X86_EFLAGS_IF)
2. err == EMULATE_DO_MMIO
3. err != EMULATE_DONE
4. signal_pending(current)
5. while loop exit

And added that to the loop. When it hangs, it always exists by #1:

higs: new low cnt 1295, 5 emu insns
higs: new low cnt 1292, 13 emu insns
higs: left count=1293, 100002 emu insns, llc=1292, rsn=5
higs: new low cnt 1291, 135348 emu insns
higs: new low cnt 1245, 135403 emu insns
higs: new low cnt 1228, 183120 emu insns
higs: left count=1291, 200007 emu insns, llc=1228, rsn=5
higs: left count=1299, 300007 emu insns, llc=1228, rsn=1
higs: left count=1299, 400007 emu insns, llc=1228, rsn=1
higs: left count=1299, 500007 emu insns, llc=1228, rsn=1
higs: left count=1299, 600007 emu insns, llc=1228, rsn=1
higs: left count=1299, 700007 emu insns, llc=1228, rsn=1
higs: left count=1299, 800007 emu insns, llc=1228, rsn=1
higs: left count=1299, 900007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1000007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1100007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1200007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1300007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1400007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1500007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1600007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1700007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1800007 emu insns, llc=1228, rsn=1
higs: left count=1299, 1900007 emu insns, llc=1228, rsn=1
higs: left count=1299, 2000007 emu insns, llc=1228, rsn=1
higs: left count=1299, 2100007 emu insns, llc=1228, rsn=1
[...]

If there's any more output I can provide to help you track down the
problem at hand, please let me know.

Best regards,
Joe
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to