KVM: SVM: INTERCEPT_RDTSCP is never intercepted anyway
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Sep 2023 21:06:34 +0000 (17:06 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 23 Sep 2023 09:35:49 +0000 (05:35 -0400)
commite8d93d5d93f85949e7299be289c6e7e1154b2f78
tree955e0da29f9a471cd2758c197296674ca3ec37b9
parent0df9dab891ff0d9b646d82e4fe038229e4c02451
KVM: SVM: INTERCEPT_RDTSCP is never intercepted anyway

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>
arch/x86/kvm/svm/sev.c