Re: [PATCH 05/10] KVM: emulate: share common register decoding code

Chang S. Bae
2025-11-17T19:55:22Z

On 11/13/2025 4:36 PM, Paolo Bonzini wrote:
> Remove all duplicate handling of register operands, including picking
> the right register class and fetching it, by extracting a new function
> that can be used for both REG and MODRM operands.
>
> Centralize setting op->orig_val = op->val in fetch_register_operand()
> as well.
>
> No functional change intended.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Looks like a very nice refactoring to me:

Reviewed-by: Chang S. Bae <chang.seok.bae@intel.com>