KVM: x86: Apply Intel's TSC_AUX reserved-bit behavior to Intel compat vCPUs
authorSean Christopherson <seanjc@google.com>
Fri, 5 Apr 2024 23:55:57 +0000 (16:55 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 10 Jun 2024 21:29:38 +0000 (14:29 -0700)
commit6463e5e41842c58da06ce4a0ff1b5bb923f5f033
tree0872089043c38260643ae485611f7b1b2ab35ab0
parent5a4f8b3026fc6b9337d7072c94c27b4874d9ed10
KVM: x86: Apply Intel's TSC_AUX reserved-bit behavior to Intel compat vCPUs

Extend Intel's check on MSR_TSC_AUX[63:32] to all vCPU models that are
Intel compatible, i.e. aren't AMD or Hygon in KVM's world, as the behavior
is architectural, i.e. applies to any CPU that is compatible with Intel's
architecture.  Applying the behavior strictly to Intel wasn't intentional,
KVM simply didn't have a concept of "Intel compatible" as of commit
61a05d444d2c ("KVM: x86: Tie Intel and AMD behavior for MSR_TSC_AUX to
guest CPU model").

Link: https://lore.kernel.org/r/20240405235603.1173076-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c