linux-stable/arch/x86/kvm/svm
Maxim Levitsky e910a53fb4 KVM: x86: nSVM: disallow userspace setting of MSR_AMD64_TSC_RATIO to non default value when tsc scaling disabled
If nested tsc scaling is disabled, MSR_AMD64_TSC_RATIO should
never have non default value.

Due to way nested tsc scaling support was implmented in qemu,
it would set this msr to 0 when nested tsc scaling was disabled.
Ignore that value for now, as it causes no harm.

Fixes: 5228eb96a4 ("KVM: x86: nSVM: implement nested TSC scaling")
Cc: stable@vger.kernel.org

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220223115649.319134-1-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-02-24 13:04:47 -05:00
..
avic.c KVM: SVM: fix race between interrupt delivery and AVIC inhibition 2022-02-11 12:53:02 -05:00
nested.c KVM: x86: nSVM: fix potential NULL derefernce on nested migration 2022-02-08 13:30:47 -05:00
pmu.c KVM: x86: Making the module parameter of vPMU more common 2022-01-17 12:56:03 -05:00
sev.c KVM: SVM: Explicitly require DECODEASSISTS to enable SEV support 2022-01-26 12:15:00 -05:00
svm.c KVM: x86: nSVM: disallow userspace setting of MSR_AMD64_TSC_RATIO to non default value when tsc scaling disabled 2022-02-24 13:04:47 -05:00
svm.h KVM: SVM: fix race between interrupt delivery and AVIC inhibition 2022-02-11 12:53:02 -05:00
svm_onhyperv.c KVM: SVM: hyper-v: Direct Virtual Flush support 2021-06-17 13:09:38 -04:00
svm_onhyperv.h KVM: SVM: drop unnecessary code in svm_hv_vmcb_dirty_nested_enlightenments() 2022-01-26 12:15:03 -05:00
svm_ops.h x86/kvm: Always inline vmload() / vmsave() 2021-09-15 15:51:45 +02:00
vmenter.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00