Commit 41e6e36
committed
KVM: x86: Move EMULTYPE_ALLOW_RETRY_PF to x86_emulate_instruction()
Move the sanity checks for EMULTYPE_ALLOW_RETRY_PF to the top of
x86_emulate_instruction(). In addition to deduplicating a small amount
of code, this makes the connection between EMULTYPE_ALLOW_RETRY_PF and
EMULTYPE_PF even more explicit, and will allow dropping retry_instruction()
entirely.
Reviewed-by: Yuan Yao <yuan.yao@intel.com>
Link: https://lore.kernel.org/r/20240831001538.336683-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent dfaae84 commit 41e6e36
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8870 | 8870 | | |
8871 | 8871 | | |
8872 | 8872 | | |
8873 | | - | |
8874 | | - | |
8875 | | - | |
8876 | | - | |
8877 | 8873 | | |
8878 | 8874 | | |
8879 | 8875 | | |
| |||
8942 | 8938 | | |
8943 | 8939 | | |
8944 | 8940 | | |
8945 | | - | |
8946 | | - | |
8947 | | - | |
8948 | | - | |
8949 | 8941 | | |
8950 | 8942 | | |
8951 | 8943 | | |
| |||
9148 | 9140 | | |
9149 | 9141 | | |
9150 | 9142 | | |
| 9143 | + | |
| 9144 | + | |
| 9145 | + | |
| 9146 | + | |
| 9147 | + | |
9151 | 9148 | | |
9152 | 9149 | | |
9153 | 9150 | | |
| |||
0 commit comments