]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Assert that Hyper-V's HV_SVM_EXITCODE_ENL == SVM_EXIT_SW
authorSean Christopherson <seanjc@google.com>
Tue, 30 Dec 2025 21:13:47 +0000 (13:13 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 14 Jan 2026 01:37:03 +0000 (17:37 -0800)
commitd6c20d19f7d3de14d02b47221988cdb19504bb84
tree0932ee338e4972adbf39377d4cedf2a3b62fd2bf
parent1e3dddafeceeb8d2cd182b78456cb9ca9d042a01
KVM: SVM: Assert that Hyper-V's HV_SVM_EXITCODE_ENL == SVM_EXIT_SW

Add a build-time assertiont that Hyper-V's "enlightened" exit code is that,
same as the AMD-defined "Reserved for Host" exit code, mostly to help
readers connect the dots and understand why synthesizing a software-defined
exit code is safe/ok.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://patch.msgid.link/20251230211347.4099600-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/hyperv.c