summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2016-09-07 14:47:19 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-16 16:57:45 +0200
commita545ab6a0085e6df9c7b6e9734b40ba4d2aca8c9 (patch)
tree039adcee748142d707f38cd554aede4be04a773f /arch/x86/include/asm/kvm_host.h
parentad53e35ae529e65cbd8e75a1e66fdcd10275c8d9 (diff)
downloadlinux-a545ab6a0085e6df9c7b6e9734b40ba4d2aca8c9.tar.gz
linux-a545ab6a0085e6df9c7b6e9734b40ba4d2aca8c9.tar.bz2
linux-a545ab6a0085e6df9c7b6e9734b40ba4d2aca8c9.zip
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/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
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 cd82bf74e7a5..ddffcfbe155c 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;