Commit 4df6856
committed
KVM: x86: Update retry protection fields when forcing retry on emulation failure
When retrying the faulting instruction after emulation failure, refresh
the infinite loop protection fields even if no shadow pages were zapped,
i.e. avoid hitting an infinite loop even when retrying the instruction as
a last-ditch effort to avoid terminating the guest.
Link: https://lore.kernel.org/r/20240831001538.336683-19-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent dabc4ff commit 4df6856
3 files changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2133 | 2133 | | |
2134 | 2134 | | |
2135 | 2135 | | |
2136 | | - | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2137 | 2145 | | |
2138 | 2146 | | |
2139 | 2147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2713 | 2713 | | |
2714 | 2714 | | |
2715 | 2715 | | |
2716 | | - | |
| 2716 | + | |
| 2717 | + | |
2717 | 2718 | | |
2718 | 2719 | | |
2719 | | - | |
| 2720 | + | |
2720 | 2721 | | |
2721 | 2722 | | |
2722 | 2723 | | |
| |||
2727 | 2728 | | |
2728 | 2729 | | |
2729 | 2730 | | |
2730 | | - | |
| 2731 | + | |
2731 | 2732 | | |
2732 | 2733 | | |
2733 | 2734 | | |
2734 | 2735 | | |
2735 | | - | |
| 2736 | + | |
2736 | 2737 | | |
2737 | 2738 | | |
2738 | 2739 | | |
2739 | | - | |
| 2740 | + | |
| 2741 | + | |
2740 | 2742 | | |
2741 | 2743 | | |
2742 | 2744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8886 | 8886 | | |
8887 | 8887 | | |
8888 | 8888 | | |
8889 | | - | |
| 8889 | + | |
8890 | 8890 | | |
8891 | 8891 | | |
8892 | 8892 | | |
| |||
0 commit comments