]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nVMX: Add consistency check for TPR_THRESHOLD[31:4]!=0 without VID
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 00:59:51 +0000 (17:59 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Oct 2025 22:11:26 +0000 (15:11 -0700)
commit15fe455dd1a011bbc8f9e512c6dc324cfca028c4
tree0009340a1c4c3946722d60f323703ef6b6d5a4b6
parent2f723a86342355fee85574352a165e8bf6fa5372
KVM: nVMX: Add consistency check for TPR_THRESHOLD[31:4]!=0 without VID

Add a missing consistency check on the TPR Threshold.  Per the SDM

  If the "use TPR shadow" VM-execution control is 1 and the "virtual-
  interrupt delivery" VM-execution control is 0, bits 31:4 of the TPR
  threshold VM-execution control field must be 0.

Note, nested_vmx_check_tpr_shadow_controls() bails early if "use TPR
shadow" is 0.

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