summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorIvan Orlov <iorlov@amazon.com>2024-12-17 18:14:52 +0000
committerSean Christopherson <seanjc@google.com>2024-12-18 15:14:41 -0800
commit11c98fa07a792c7667c9c0d4f3c7f2d620bfb7f0 (patch)
treea85d26fc9c109609cf636e93c7186abc789e978d /rust/helpers/build_bug.c
parent871ac338ef553faf8c1c2f71dc4636b35d176ef4 (diff)
KVM: x86: Add function for vectoring error generation
Extract VMX code for unhandleable VM-Exit during vectoring into vendor-agnostic function so that boiler-plate code can be shared by SVM. To avoid unnecessarily complexity in the helper, unconditionally report a GPA to userspace instead of having a conditional entry. For exits that don't report a GPA, i.e. everything except EPT Misconfig, simply report KVM's "invalid GPA". Signed-off-by: Ivan Orlov <iorlov@amazon.com> Link: https://lore.kernel.org/r/20241217181458.68690-2-iorlov@amazon.com [sean: clarify that the INVALID_GPA logic is new] Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions