Commit 772f254
KVM: SVM: add wrappers to enable/disable IRET interception
SEV-ES guests don't use IRET interception for the detection of
an end of a NMI.
Therefore it makes sense to create a wrapper to avoid repeating
the check for the SEV-ES.
No functional change is intended.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
[Renamed iret intercept API of style svm_{clr,set}_iret_intercept()]
Signed-off-by: Santosh Shukla <Santosh.Shukla@amd.com>
Link: https://lore.kernel.org/r/20230227084016.3368-5-santosh.shukla@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 5d1ec45 commit 772f254
1 file changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2490 | 2490 | | |
2491 | 2491 | | |
2492 | 2492 | | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
2493 | 2505 | | |
2494 | 2506 | | |
2495 | 2507 | | |
2496 | 2508 | | |
2497 | 2509 | | |
2498 | 2510 | | |
2499 | | - | |
2500 | | - | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
2501 | 2514 | | |
2502 | | - | |
| 2515 | + | |
2503 | 2516 | | |
2504 | 2517 | | |
2505 | 2518 | | |
| |||
3508 | 3521 | | |
3509 | 3522 | | |
3510 | 3523 | | |
3511 | | - | |
3512 | | - | |
| 3524 | + | |
3513 | 3525 | | |
3514 | 3526 | | |
3515 | 3527 | | |
| |||
3649 | 3661 | | |
3650 | 3662 | | |
3651 | 3663 | | |
3652 | | - | |
3653 | | - | |
| 3664 | + | |
3654 | 3665 | | |
3655 | 3666 | | |
3656 | | - | |
3657 | | - | |
| 3667 | + | |
3658 | 3668 | | |
3659 | 3669 | | |
3660 | 3670 | | |
| |||
0 commit comments