Commit 3f83ab6
virt: sev-guest: Contain snp_guest_request_ioctl in sev-guest
SNP Guest Request uses only exitinfo2 which is a return value from GHCB, has
meaning beyond ioctl and therefore belongs to struct snp_guest_req.
Move exitinfo2 there and remove snp_guest_request_ioctl from the SEV platform
code.
No functional change intended.
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Dionna Glaze <dionnaglaze@google.com>
Link: https://lore.kernel.org/20250611040842.2667262-2-aik@amd.com1 parent e04c78d commit 3f83ab6
File tree
3 files changed
+23
-32
lines changed- arch/x86
- coco/sev
- include/asm
- drivers/virt/coco/sev-guest
3 files changed
+23
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
1392 | | - | |
1393 | | - | |
| 1392 | + | |
1394 | 1393 | | |
1395 | 1394 | | |
1396 | 1395 | | |
1397 | 1396 | | |
1398 | 1397 | | |
1399 | 1398 | | |
1400 | 1399 | | |
1401 | | - | |
| 1400 | + | |
1402 | 1401 | | |
1403 | 1402 | | |
1404 | 1403 | | |
| |||
1423 | 1422 | | |
1424 | 1423 | | |
1425 | 1424 | | |
1426 | | - | |
1427 | | - | |
| 1425 | + | |
| 1426 | + | |
1428 | 1427 | | |
1429 | 1428 | | |
1430 | 1429 | | |
| |||
1919 | 1918 | | |
1920 | 1919 | | |
1921 | 1920 | | |
1922 | | - | |
1923 | | - | |
| 1921 | + | |
1924 | 1922 | | |
1925 | 1923 | | |
1926 | 1924 | | |
| |||
1934 | 1932 | | |
1935 | 1933 | | |
1936 | 1934 | | |
1937 | | - | |
| 1935 | + | |
1938 | 1936 | | |
1939 | 1937 | | |
1940 | 1938 | | |
| |||
1987 | 1985 | | |
1988 | 1986 | | |
1989 | 1987 | | |
1990 | | - | |
| 1988 | + | |
1991 | 1989 | | |
1992 | 1990 | | |
1993 | 1991 | | |
| |||
2005 | 2003 | | |
2006 | 2004 | | |
2007 | 2005 | | |
2008 | | - | |
2009 | | - | |
| 2006 | + | |
2010 | 2007 | | |
2011 | 2008 | | |
2012 | 2009 | | |
| |||
2043 | 2040 | | |
2044 | 2041 | | |
2045 | 2042 | | |
2046 | | - | |
| 2043 | + | |
2047 | 2044 | | |
2048 | 2045 | | |
2049 | | - | |
| 2046 | + | |
2050 | 2047 | | |
2051 | 2048 | | |
2052 | 2049 | | |
2053 | | - | |
| 2050 | + | |
2054 | 2051 | | |
2055 | 2052 | | |
2056 | 2053 | | |
| |||
2069 | 2066 | | |
2070 | 2067 | | |
2071 | 2068 | | |
2072 | | - | |
2073 | 2069 | | |
2074 | 2070 | | |
2075 | 2071 | | |
| |||
2093 | 2089 | | |
2094 | 2090 | | |
2095 | 2091 | | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | 2092 | | |
2101 | 2093 | | |
2102 | | - | |
| 2094 | + | |
2103 | 2095 | | |
2104 | 2096 | | |
2105 | 2097 | | |
| |||
2114 | 2106 | | |
2115 | 2107 | | |
2116 | 2108 | | |
2117 | | - | |
| 2109 | + | |
2118 | 2110 | | |
2119 | 2111 | | |
2120 | 2112 | | |
| |||
2135 | 2127 | | |
2136 | 2128 | | |
2137 | 2129 | | |
2138 | | - | |
2139 | | - | |
2140 | 2130 | | |
2141 | 2131 | | |
2142 | 2132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
489 | | - | |
490 | | - | |
491 | 490 | | |
492 | 491 | | |
493 | 492 | | |
| |||
513 | 512 | | |
514 | 513 | | |
515 | 514 | | |
516 | | - | |
517 | | - | |
| 515 | + | |
518 | 516 | | |
519 | 517 | | |
520 | 518 | | |
| |||
587 | 585 | | |
588 | 586 | | |
589 | 587 | | |
590 | | - | |
591 | | - | |
| 588 | + | |
| 589 | + | |
592 | 590 | | |
593 | 591 | | |
594 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
252 | | - | |
| 254 | + | |
| 255 | + | |
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
| |||
0 commit comments