diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2016-09-07 18:47:19 (GMT) |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-16 14:57:45 (GMT) |
commit | a545ab6a0085e6df9c7b6e9734b40ba4d2aca8c9 (patch) | |
tree | 039adcee748142d707f38cd554aede4be04a773f /arch/x86/include | |
parent | ad53e35ae529e65cbd8e75a1e66fdcd10275c8d9 (diff) | |
download | linux-a545ab6a0085e6df9c7b6e9734b40ba4d2aca8c9.tar.xz |
kvm: x86: add tsc_offset field to struct kvm_vcpu_arch
A future commit will want to easily read a vCPU's TSC offset,
so we store it in struct kvm_arch_vcpu_arch for easy access.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index cd82bf7..ddffcfb 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -568,6 +568,7 @@ struct kvm_vcpu_arch { struct kvm_steal_time steal; } st; + u64 tsc_offset; u64 last_guest_tsc; u64 last_host_tsc; u64 tsc_offset_adjustment; |