From: Joerg Roedel This patch modifies the get_cycles_sync() function on i386 and x86_64 to use the RDTSCP (if it is available) instruction to synchronize with the CPU core and not CPUID. This is especially usefull when running Linux as a KVM guest because CPUID is intercepted and will cause a VMEXIT there. Signed-off-by: Joerg Roedel -- Joerg Roedel Operating System Research Center AMD Saxony LLC & Co. KG