]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kvm/x86.c
KVM: X86: Store L1's TSC scaling ratio in 'struct kvm_vcpu_arch'
authorIlias Stamatis <ilstam@amazon.com>
Wed, 26 May 2021 18:44:09 +0000 (19:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:27 +0000 (13:09 -0400)
commit805d705ff8f3a05e63ce350ac0c37a3290ed9bb7
tree0485fc0cfe27889732adeec78652bcbd2b7aa929
parent605a140a49099effc069f0fd509db34d91f48496
KVM: X86: Store L1's TSC scaling ratio in 'struct kvm_vcpu_arch'

Store L1's scaling ratio in the kvm_vcpu_arch struct like we already do
for L1's TSC offset. This allows for easy save/restore when we enter and
then exit the nested guest.

Signed-off-by: Ilias Stamatis <ilstam@amazon.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210526184418.28881-3-ilstam@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c