]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Define AMD's #HV, #VC, and #SX exception vectors
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:50 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:29:03 +0000 (09:29 -0700)
commitfddd07626baa419c259ad5f3537a57188b5bb415
tree33c4398ea1521aa2128ae83e40ed066aacec2a90
parentf2f5519aa4e3ec4e42b009338f773bebb0bfd8a3
KVM: x86: Define AMD's #HV, #VC, and #SX exception vectors

Add {HV,CP,SX}_VECTOR definitions for AMD's Hypervisor Injection Exception,
VMM Communication Exception, and SVM Security Exception vectors, along with
human friendly formatting for trace_kvm_inj_exception().

Note, KVM is all but guaranteed to never observe or inject #SX, and #HV is
also unlikely to go unused.  Add the architectural collateral mostly for
completeness, and on the off chance that hardware goes off the rails.

Link: https://lore.kernel.org/r/20250919223258.1604852-44-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/trace.h