Commit bc3d7c5
KVM: SVM: Update SEV-ES shutdown intercepts with more metadata
Currently if an SEV-ES VM shuts down userspace sees KVM_RUN struct with
only errno=EINVAL. This is a very limited amount of information to debug
the situation. Instead return KVM_EXIT_SHUTDOWN to alert userspace the VM
is shutting down and is not usable any further.
Signed-off-by: Peter Gonda <[email protected]>
Suggested-by: Sean Christopherson <[email protected]>
Suggested-by: Tom Lendacky <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Tom Lendacky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[sean: tweak changelog]
Signed-off-by: Sean Christopherson <[email protected]>1 parent 5804c19 commit bc3d7c5
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2203 | 2203 | | |
2204 | 2204 | | |
2205 | 2205 | | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | 2206 | | |
2213 | 2207 | | |
2214 | 2208 | | |
| |||
2217 | 2211 | | |
2218 | 2212 | | |
2219 | 2213 | | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
2220 | 2217 | | |
2221 | | - | |
2222 | | - | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
2223 | 2222 | | |
2224 | 2223 | | |
2225 | 2224 | | |
| |||
0 commit comments