Results 1 to 1 of 1
Hello there,
I am not good at tracing code really, if anyone can give me some advice that will be very helpful.
A qemu process in user space enters kernel ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-10-2011 #1Just Joined!
- Join Date
- May 2011
- Location
- Taiwan
- Posts
- 5
A question about kvm module
Hello there,
I am not good at tracing code really, if anyone can give me some advice that will be very helpful.
A qemu process in user space enters kernel space by calling "ioctl(env->kvm_fd, KVM_RUN, 0)"(kvm-all.c, function kvm_cpu_exec), which is corresponding to a switch option in function "kvm_vcpu_ioctl" in kernel module sources of kvm. I would like to know that, what happened inside the kernel during this call? the ioctl called in user space just passed an file descriptor, but in function "kvm_vcpu_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)" there already an struct file pointer existed, and I don't know when and how the filp->private_data was set. HOW the filp->private_data is set is specifically important to me.
Is there anyone experience in these virtualization stuff? Thanks a lot.


Reply With Quote
