]> git.hungrycats.org Git - linux/commit
KVM: VMX: Formally define KVM's "0xdead" exit reason used for failed VM-Enter
authorSean Christopherson <seanjc@google.com>
Mon, 21 Sep 2026 23:56:55 +0000 (16:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 17:10:47 +0000 (12:10 -0500)
commit64bc41553f640a11b563cab1e2b878f78ef8f940
tree161b92cc95d9de36be89871d728d7e99aabe163a
parent045e0736e5bd3cc8030bf7c60ed404c368b077b7
KVM: VMX: Formally define KVM's "0xdead" exit reason used for failed VM-Enter

commit d85f7dc8cf3c91a131946dae4c3aa8d9c97322d7 upstream.

Add EXIT_REASON_UNDEFINED to track KVM's magic "0xdead" value that's used
to stuff the exit reason on a failed VM-Enter so that the magic can be
reused by TDX, and to make it more obvious that it's an arbitrary, KVM-
defined value (though the whole "dead" thing makes it pretty darn obvious).

Opportunistically add a compile-time assert to ensure the KVM-defined exit
reason never collides with a "real" exit reason.

No functional change intended.

Cc: Xiaoyao Li <xiaoyao.li@intel.com>
Cc: Yan Zhao <yan.y.zhao@intel.com>
Cc: Binbin Wu <binbin.wu@linux.intel.com>
Cc: Rick Edgecombe <rick.p.edgecombe@intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://patch.msgid.link/20260921235656.1107929-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx/vmx.c