Sample Header Ad - 728x90

Intel VM-exit EPT_VIOLATION error_code

0 votes
0 answers
28 views
I'm using trace-cmd on a Linux host running a qemu/kvm VM in order to check VM-exit events related to EPT_VIOLATION reason. root@eve-ng62:~# trace-cmd record -b 20000 -e kvm:kvm_page_fault -e kvm_exit -P 628130 Hit Ctrl^C to stop recording root@eve-ng62:~# trace-cmd report | grep kvm_page_fault -B 1 CPU 3/KVM-628130 1707156.150815: kvm_exit: reason EPT_VIOLATION rip 0x7f152741da17 info 181 0 CPU 3/KVM-628130 1707156.150816: kvm_page_fault: vcpu 3 rip 0x7f152741da17 address 0x00000003c93f8e00 error_code 0x181 root@eve-ng62:~# The output show the faulting address 0x00000003c93f8e00 and the error_code 0x181. I'm not sure whether that error_code is the one from the function https://github.com/torvalds/linux/blob/master/arch/x86/kvm/vmx/vmx.c#L5810 . I also found this related thread here .
Asked by CarloC (385 rep)
May 13, 2025, 07:38 AM
Last activity: May 15, 2025, 02:59 PM