[PATCH 0/3] KVM: Macrofy GPR swapping in assembly code

Paolo Bonzini posted 3 patches 4 weeks, 1 day ago
There is a newer version of this series
arch/x86/include/asm/kvm_host.h      |  16 ++--
arch/x86/include/asm/kvm_vcpu_regs.h | 127 +++++++++++++++++++++++++--
arch/x86/kvm/svm/vmenter.S           | 107 +++++-----------------
arch/x86/kvm/vmenter.h               |  43 +++++++++
arch/x86/kvm/vmx/vmenter.S           |  89 +++++--------------
5 files changed, 211 insertions(+), 171 deletions(-)
[PATCH 0/3] KVM: Macrofy GPR swapping in assembly code
Posted by Paolo Bonzini 4 weeks, 1 day ago
A small change to Chang's patches from the APX series.
The only change is keeping __VCPU_REGS_* constants to avoid
relying on the ordering of constants in kvm_host.h.

While the kvm_vcpu_regs.h changes make the line count boom a bit,
the actual assembly code loses almost a hundred lines and
APX makes that even more extreme.

Paolo

Chang S. Bae (3):
  KVM: VMX: Macrofy GPR swapping in __vmx_vcpu_run()
  KVM: SVM: Macrofy GPR swapping in __svm_vcpu_run()
  KVM: SEV: Macrofy GPR swapping in __svm_sev_es_vcpu_run()

 arch/x86/include/asm/kvm_host.h      |  16 ++--
 arch/x86/include/asm/kvm_vcpu_regs.h | 127 +++++++++++++++++++++++++--
 arch/x86/kvm/svm/vmenter.S           | 107 +++++-----------------
 arch/x86/kvm/vmenter.h               |  43 +++++++++
 arch/x86/kvm/vmx/vmenter.S           |  89 +++++--------------
 5 files changed, 211 insertions(+), 171 deletions(-)

-- 
2.52.0