]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nVMX: Add consistency check for TSC_MULTIPLIER=0
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 00:59:52 +0000 (17:59 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Oct 2025 22:11:26 +0000 (15:11 -0700)
commitae8e6ad84177456d8810a8ff3a5cf3f477fb0721
tree893d1c1b56820904ed1ba41b6e67ae538c2a74dd
parent15fe455dd1a011bbc8f9e512c6dc324cfca028c4
KVM: nVMX: Add consistency check for TSC_MULTIPLIER=0

Add a missing consistency check on the TSC Multiplier being '0'.  Per the
SDM:

  If the "use TSC scaling" VM-execution control is 1, the TSC-multiplier
  must not be zero.

Fixes: d041b5ea9335 ("KVM: nVMX: Enable nested TSC scaling")
Link: https://lore.kernel.org/r/20250919005955.1366256-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c