Commit 0068299
committed
KVM: SVM: Treat all "skip" emulation for SEV guests as outright failures
Treat EMULTYPE_SKIP failures on SEV guests as unhandleable emulation
instead of simply resuming the guest, and drop the hack-a-fix which
effects that behavior for the INT3/INTO injection path. If KVM can't
skip an instruction for which KVM has already done partial emulation,
resuming the guest is undesirable as doing so may corrupt guest state.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>1 parent aeb904f commit 0068299
2 files changed
+8
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
368 | | - | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
386 | 384 | | |
387 | 385 | | |
388 | 386 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 387 | | |
398 | 388 | | |
399 | 389 | | |
| |||
4781 | 4771 | | |
4782 | 4772 | | |
4783 | 4773 | | |
4784 | | - | |
| 4774 | + | |
4785 | 4775 | | |
4786 | 4776 | | |
4787 | 4777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8874 | 8874 | | |
8875 | 8875 | | |
8876 | 8876 | | |
8877 | | - | |
8878 | | - | |
| 8877 | + | |
| 8878 | + | |
| 8879 | + | |
| 8880 | + | |
| 8881 | + | |
| 8882 | + | |
| 8883 | + | |
8879 | 8884 | | |
8880 | 8885 | | |
8881 | 8886 | | |
| |||
0 commit comments