Home
last modified time | relevance | path

Searched refs:local_tsc (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dtsc_scaling_sync.c27 uint64_t start_tsc, local_tsc, tmp; in guest_code() local
32 local_tsc = rdtsc(); in guest_code()
33 WRITE_ONCE(tsc_sync, local_tsc); in guest_code()
34 if (unlikely(local_tsc < tmp)) in guest_code()
35 GUEST_SYNC_ARGS(0, local_tsc, tmp, 0, 0); in guest_code()
37 } while (local_tsc - start_tsc < 5000 * TEST_TSC_KHZ); in guest_code()
/linux-6.6.21/arch/x86/kvm/
Dx86.c12185 u64 local_tsc; in kvm_arch_hardware_enable() local
12199 local_tsc = rdtsc(); in kvm_arch_hardware_enable()
12205 if (stable && vcpu->arch.last_host_tsc > local_tsc) { in kvm_arch_hardware_enable()
12252 u64 delta_cyc = max_tsc - local_tsc; in kvm_arch_hardware_enable()
12257 vcpu->arch.last_host_tsc = local_tsc; in kvm_arch_hardware_enable()