Commit 11c98fa
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>1 parent 871ac33 commit 11c98fa
3 files changed
Lines changed: 29 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2075 | 2075 | | |
2076 | 2076 | | |
2077 | 2077 | | |
| 2078 | + | |
| 2079 | + | |
2078 | 2080 | | |
2079 | 2081 | | |
2080 | 2082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6554 | 6554 | | |
6555 | 6555 | | |
6556 | 6556 | | |
6557 | | - | |
| 6557 | + | |
6558 | 6558 | | |
6559 | | - | |
6560 | | - | |
6561 | | - | |
6562 | | - | |
6563 | | - | |
6564 | | - | |
6565 | | - | |
6566 | | - | |
6567 | | - | |
6568 | | - | |
6569 | | - | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
| 6562 | + | |
6570 | 6563 | | |
6571 | 6564 | | |
6572 | 6565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8804 | 8804 | | |
8805 | 8805 | | |
8806 | 8806 | | |
| 8807 | + | |
| 8808 | + | |
| 8809 | + | |
| 8810 | + | |
| 8811 | + | |
| 8812 | + | |
| 8813 | + | |
| 8814 | + | |
| 8815 | + | |
| 8816 | + | |
| 8817 | + | |
| 8818 | + | |
| 8819 | + | |
| 8820 | + | |
| 8821 | + | |
| 8822 | + | |
| 8823 | + | |
| 8824 | + | |
| 8825 | + | |
| 8826 | + | |
| 8827 | + | |
| 8828 | + | |
8807 | 8829 | | |
8808 | 8830 | | |
8809 | 8831 | | |
| |||
0 commit comments