Commit 8ce7ef8
committed
KVM: x86/PVM: Handle #VE events
The #VE events that occur during the running of a PVM guest would exit
to PVM, so PVM needs to handle it. The handling needs to be split into
two steps. The first step is to obtain the #VE information in
pvm_vcpu_run_noinstr() after the VM exits, as early as possible before
any further operations that may trigger a nested #VE. Then, the cached
information can be used in handling #VE in handle_exit_exception().
And only EXIT_REASON_CPUID is allowed for now.
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>1 parent ff988cc commit 8ce7ef8
1 file changed
Lines changed: 38 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
2215 | 2228 | | |
2216 | 2229 | | |
2217 | 2230 | | |
| |||
2222 | 2235 | | |
2223 | 2236 | | |
2224 | 2237 | | |
2225 | | - | |
2226 | | - | |
2227 | 2238 | | |
2228 | 2239 | | |
2229 | 2240 | | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
2236 | | - | |
2237 | | - | |
| 2241 | + | |
2238 | 2242 | | |
2239 | 2243 | | |
2240 | 2244 | | |
2241 | 2245 | | |
2242 | 2246 | | |
2243 | 2247 | | |
2244 | 2248 | | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
2245 | 2271 | | |
2246 | 2272 | | |
2247 | 2273 | | |
| |||
2315 | 2341 | | |
2316 | 2342 | | |
2317 | 2343 | | |
2318 | | - | |
2319 | | - | |
| 2344 | + | |
| 2345 | + | |
2320 | 2346 | | |
2321 | 2347 | | |
2322 | 2348 | | |
| |||
0 commit comments