Convert MUL/DIV to fastop
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | KVM: x86 emulator: add support for writing back the source operandarch/ | +26 | 1 reply | |
| 2/8 | KVM: x86 emulator: decode extended accumulator explicityarch/ | +22 | 2 replies | |
| 3/8 | KVM: x86 emulator: switch MUL/DIV to DstXaccarch/ | +8 | 0 replies | |
| 4/8 | KVM: x86 emulator: Switch fastop src operand to RDXarch/ | +13 | 0 replies | |
| 5/8 | KVM: x86 emulator: convert single-operand MUL/IMUL to fastoparch/ | +16 | 0 replies | |
| 6/8 | KVM: x86 emulator: convert DIV/IDIV to fastoparch/ | +26 | 1 reply | |
| 7/8 | KVM: x86 emulator: drop unused old-style inline emulationarch/ | +0 | 0 replies | |
| 8/8 | KVM: x86 emulator: convert XADD to fastoparch/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] Convert MUL/DIV to fastop
This patchset converts MUL/DIV to fastop. We depart from the plan, which was to encode rdx:rax as a single operand, and instead encode it as two separate operands. This reduces register pressure on i386, and is simpler besides.
As a bonus, XADD is converted as well.
The series results in a nice code size reduction:
60147 0 0 60147 eaf3 arch/x86/kvm/emulate.o.before 56899 0 0 56899 de43 arch/x86/kvm/emulate.o.after
Avi Kivity (8):
KVM: x86 emulator: add support for writing back the source operand
KVM: x86 emulator: decode extended accumulator explicity
KVM: x86 emulator: switch MUL/DIV to DstXacc
KVM: x86 emulator: Switch fastop src operand to RDX
KVM: x86 emulator: convert single-operand MUL/IMUL to fastop
KVM: x86 emulator: convert DIV/IDIV to fastop
KVM: x86 emulator: drop unused old-style inline emulation
KVM: x86 emulator: convert XADD to fastop
arch/x86/kvm/emulate.c | 388 ++++++++++++++----------------------------------- 1 file changed, 106 insertions(+), 282 deletions(-)
Signature · 1 line
1.8.1.2