diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-11-14 03:36:28 +0300 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-11-20 01:28:53 +0300 |
| commit | 7e11eec989c840ff8cd11cee5005c7ce68ef1ab3 (patch) | |
| tree | 5cb0463536b7550e8674cfdcb47f90b471e60b99 /scripts/patch-kernel | |
| parent | 1a84b07acaa45bb2e4a1d09be26b0ba6270929c3 (diff) | |
| download | linux-7e11eec989c840ff8cd11cee5005c7ce68ef1ab3.tar.xz | |
KVM: x86: Share emulator's common register decoding code
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>
Reviewed-by: Chang S. Bae <chang.seok.bae@intel.com>
Link: https://patch.msgid.link/20251114003633.60689-6-pbonzini@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
