KVM: x86: Fold retry_instruction() into x86_emulate_instruction()
authorSean Christopherson <seanjc@google.com>
Sat, 31 Aug 2024 00:15:26 +0000 (17:15 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:16:26 +0000 (20:16 -0700)
commit2df354e37c1398a85bb43cbbf1f913eb3f91d035
tree99673255bbba5117b6e82c4c1ce2ef9451c3571b
parent41e6e367d576ce1801dc5c2b106e14cde35e3c80
KVM: x86: Fold retry_instruction() into x86_emulate_instruction()

Now that retry_instruction() is reasonably tiny, fold it into its sole
caller, x86_emulate_instruction().  In addition to getting rid of the
absurdly confusing retry_instruction() name, handling the retry in
x86_emulate_instruction() pairs it back up with the code that resets
last_retry_{eip,address}.

No functional change intended.

Reviewed-by: Yuan Yao <yuan.yao@intel.com>
Link: https://lore.kernel.org/r/20240831001538.336683-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c