简单的活着

kvm/tcg debug

Posted on By Mista Cai

KVM/TCG

加载驱动后,gpa = 0x38000处页表被驱动initAllPhysicalPageEPTPermissions设置访问标识ACCESS_DATA,产生页异常并进入内核,然后会被切回KVM执行,但是切回KVM之后立马又会再次触发EPT violation进入QEMU,然后QEMU同样再次触发页异常,切回KVM,如此反复一直卡死在这个地方。

vcpu->run->exit_reason = 2, EXIT_REASON_TRIPLE_FAULT

  • 正常来说应该是kvm调用 kvm_vmx_exit_handlers[exit_reason](vcpu), exit->reason=2 时调用handle_triple_fault函数才对,然后exit_reason=KVM_EXIT_SHUTDOWN, 8

11.7

SOLVED,镜像问题