]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Move op_prefix to struct x86_emulate_ctxt (from x86_decode_insn())
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Nov 2025 00:36:27 +0000 (19:36 -0500)
committerSean Christopherson <seanjc@google.com>
Wed, 19 Nov 2025 22:28:30 +0000 (14:28 -0800)
commit1a84b07acaa45bb2e4a1d09be26b0ba6270929c3
tree8ee71a3b89f4281a82214d0e1ee2978376357b65
parent3d8834a0d1c984c7bda3d8a4d618026d8b3bcbd3
KVM: x86: Move op_prefix to struct x86_emulate_ctxt (from x86_decode_insn())

VEX decode will need to set it based on the "pp" bits, so make it
a field in the struct rather than a local variable.

No functional change intended.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Chang S. Bae <chang.seok.bae@intel.com>
Link: https://patch.msgid.link/20251114003633.60689-5-pbonzini@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_emulate.h