]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Move EMULTYPE_ALLOW_RETRY_PF to x86_emulate_instruction()
authorSean Christopherson <seanjc@google.com>
Sat, 31 Aug 2024 00:15:25 +0000 (17:15 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:16:25 +0000 (20:16 -0700)
commit41e6e367d576ce1801dc5c2b106e14cde35e3c80
treeec835ffbf65f7d0fbe8773fd391d1411101fc519
parentdfaae8447c53819749cf3ba10ce24d3c609752e3
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>
arch/x86/kvm/x86.c