4
votes

My objective is to find the number of instructions after every interrupt delivered to the guest in KVM. I use the instruction retired counter by programming the appropriate registers using wrmsr. I enable the counter before vmlaunch/vmresume instruction and disable it on a vmexit that is on return. The approach is not good as it also counts instructions in host interrupts and other processes also. I use kvm on intel I3 processor. Is there any provision available to get counters only in the guest mode in Intel Architecture?

1

1 Answers