Commit f9d60e1
KVM: VMX: Split out guts of EPT violation to common/exposed function
[ Upstream commit c8563d1 ]
The difference of TDX EPT violation is how to retrieve information, GPA,
and exit qualification. To share the code to handle EPT violation, split
out the guts of EPT violation handler so that VMX/TDX exit handler can call
it after retrieving GPA and exit qualification.
Signed-off-by: Sean Christopherson <[email protected]>
Co-developed-by: Isaku Yamahata <[email protected]>
Signed-off-by: Isaku Yamahata <[email protected]>
Co-developed-by: Rick Edgecombe <[email protected]>
Signed-off-by: Rick Edgecombe <[email protected]>
Signed-off-by: Yan Zhao <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Reviewed-by: Binbin Wu <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Stable-dep-of: d0164c1 ("KVM: VMX: Fix check for valid GVA on an EPT violation")
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
(cherry picked from commit 6db2b0eb3251b45fab7310fd93f233bc22282933)
Signed-off-by: Wentao Guan <[email protected]>1 parent 3e86840 commit f9d60e1
2 files changed
+37
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
5822 | 5823 | | |
5823 | 5824 | | |
5824 | 5825 | | |
5825 | | - | |
| 5826 | + | |
5826 | 5827 | | |
5827 | | - | |
5828 | | - | |
5829 | | - | |
5830 | 5828 | | |
5831 | 5829 | | |
5832 | 5830 | | |
| |||
5842 | 5840 | | |
5843 | 5841 | | |
5844 | 5842 | | |
5845 | | - | |
5846 | | - | |
5847 | | - | |
5848 | | - | |
5849 | | - | |
5850 | | - | |
5851 | | - | |
5852 | | - | |
5853 | | - | |
5854 | | - | |
5855 | | - | |
5856 | | - | |
5857 | | - | |
5858 | | - | |
5859 | | - | |
5860 | | - | |
5861 | | - | |
5862 | 5843 | | |
5863 | 5844 | | |
5864 | 5845 | | |
| |||
5870 | 5851 | | |
5871 | 5852 | | |
5872 | 5853 | | |
5873 | | - | |
| 5854 | + | |
5874 | 5855 | | |
5875 | 5856 | | |
5876 | 5857 | | |
| |||
0 commit comments