[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] SVM patch to add BP exception intercept support.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID b77ebfaa72b200af0cdfc38dd8f7dbe274e5e386 # Parent 137b60a47d139dfaa7d202edb612bcaa1c595801 SVM patch to add BP exception intercept support. Signed-off-by: Tom Woller <thomas.woller@xxxxxxx> diff -r 137b60a47d13 -r b77ebfaa72b2 xen/arch/x86/hvm/svm/svm.c --- a/xen/arch/x86/hvm/svm/svm.c Thu Apr 13 10:07:28 2006 +++ b/xen/arch/x86/hvm/svm/svm.c Thu Apr 13 10:08:20 2006 @@ -2588,13 +2588,18 @@ */ break; + case VMEXIT_EXCEPTION_BP: #ifdef XEN_DEBUGGER - case VMEXIT_EXCEPTION_BP: svm_debug_save_cpu_user_regs(®s); pdb_handle_exception(3, ®s, 1); svm_debug_restore_cpu_user_regs(®s); - break; +#else + if ( test_bit(_DOMF_debugging, &v->domain->domain_flags) ) + domain_pause_for_debugger(); + else + svm_inject_exception(vmcb, TRAP_int3, 0, 0); #endif + break; case VMEXIT_EXCEPTION_NM: svm_do_no_device_fault(vmcb); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |