Hi, all? First of all, I apologize you for this spam. I'm working with QEMU v0.12.1 with i386 Linux guest on x86-64 Linux host. I'm trying to find a point in the source code where a system call from the guest OS is handled. If I'm not mistaken, QEMU disassembles an instruction of INT # in a switch statement of target-i386/translate.c and then calls helper_sysenter of target-i386/op_helper.c. The problem is how to tell difference between a system call of the guest OS and a system call of QEMU (I'm not sure of this, though). Assume the following code is executed after compilation in the guest OS:
int main() { if (access("hello.txt", R_OK)!=0) {