Index: sys/amd64/conf/GENERIC =================================================================== --- sys/amd64/conf/GENERIC (revision 285548) +++ sys/amd64/conf/GENERIC (working copy) @@ -366,3 +366,7 @@ # The crypto framework is required by IPSEC device crypto # Required by IPSEC + +options KTR +options KTR_ENTRIES=(1024*1024) +options KTR_MASK=(KTR_GEN) Index: sys/amd64/vmm/amd/svm.c =================================================================== --- sys/amd64/vmm/amd/svm.c (revision 285548) +++ sys/amd64/vmm/amd/svm.c (working copy) @@ -1508,6 +1508,11 @@ handled ? "handled" : "unhandled", exit_reason_to_str(code), vmexit->rip, vmexit->inst_length); +#ifdef KTR + if (code == VMCB_EXIT_NMI) + ktr_mask = 0; +#endif + if (handled) { vmexit->rip += vmexit->inst_length; vmexit->inst_length = 0;