https://bugzilla.kernel.org/show_bug.cgi?id=65561 --- Comment #24 from Jatin Kumar <jatin.iitdelhi@xxxxxxxxx> --- > linux:~/code/cvedr # ./accessmsr > Segmentation fault You got a seg fault because it is privileged instruction and I run it in kernel mode not user mode. But you are likely to be running your program in user mode. Try something like out instruction. > Even though my c program in the guest os got a segmentation fault, from the > host os level, I don't see the printk statement is triggered, so this is not > about privileged instructions or unprivileged instructions. I think there > must be some other conditions to trigger these printk statements. After getting the VM_EXIT it must be first checking if it requires to emulate or should generate a fault. In this case it would have generated the fault without emulating it. Again, you can try it with 'out' instruction. -- You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html