Re: [PATCH 05/10] KVM: emulate: share common register decoding code
From: Chang S. Bae
Date: Mon Nov 17 2025 - 14:55:38 EST
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@xxxxxxxxxx>
Looks like a very nice refactoring to me:
Reviewed-by: Chang S. Bae <chang.seok.bae@xxxxxxxxx>