mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
amd64: also limit printings of EFIRT page faults
PR: 285797 (cherry picked from commit 99332926f6fc6d1e4bb850a2b26744b948b14014)
This commit is contained in:
parent
4317d0aa8c
commit
ab259b19bd
1 changed files with 7 additions and 2 deletions
|
|
@ -895,8 +895,13 @@ after_vmfault:
|
|||
if (td->td_intr_nesting_level == 0 &&
|
||||
curpcb->pcb_onfault != NULL) {
|
||||
if ((td->td_pflags2 & TDP2_EFIRT) != 0) {
|
||||
trap_diag(frame, eva);
|
||||
printf("EFI RT page fault\n");
|
||||
u_long cnt = atomic_fetchadd_long(&cnt_efirt_faults, 1);
|
||||
|
||||
if ((print_efirt_faults == 1 && cnt == 1) ||
|
||||
print_efirt_faults == 2) {
|
||||
trap_diag(frame, eva);
|
||||
printf("EFI RT page fault\n");
|
||||
}
|
||||
}
|
||||
frame->tf_rip = (long)curpcb->pcb_onfault;
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue