KVM: SVM: INTERCEPT_RDTSCP is never intercepted anyway
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Sep 2023 21:06:34 +0000 (17:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:57:00 +0000 (14:57 +0200)
commite86a3a6226339367b24afacc8b0d530a1e7b2070
tree30fa4f9d2c5c917d6ca21c400b33718f059ed0eb
parent6ce2f297a7168274547d0b5aea6c7c16268b8a96
KVM: SVM: INTERCEPT_RDTSCP is never intercepted anyway

commit e8d93d5d93f85949e7299be289c6e7e1154b2f78 upstream.

svm_recalc_instruction_intercepts() is always called at least once
before the vCPU is started, so the setting or clearing of the RDTSCP
intercept can be dropped from the TSC_AUX virtualization support.

Extracted from a patch by Tom Lendacky.

Cc: stable@vger.kernel.org
Fixes: 296d5a17e793 ("KVM: SEV-ES: Use V_TSC_AUX if available instead of RDTSC/MSR_TSC_AUX intercepts")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/svm/sev.c