I'm stuck in the problem as the title says.I want to do this in VMM by adding
the CPU_BASED_RDTSC_EXITING flag in vmx.c(arch/x86/kvm) in setup_vmcs_config function,and
then handle the vm_exit by myself(ref this:mail list).The question is that I cannot
tell whether the vm_exit of rdtsc is caused by the guest kernel or the guest vm user
space application, the latter one is what exactly I want to intercept.I have tried to search
through qemu-kvm-1.2.0 src to find other ways to intercept the rdtsc instruction,I find
rdtsc clue in target-i386/translate.c.And I add a printf there, but I got nothing.So I
wonder if anyone could give me some little guidance to break through.Thank you a lot~