Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: Macrofy GPR swapping in assembly code
@ 2026-05-13 17:49 Paolo Bonzini
  2026-05-13 17:49 ` [PATCH 1/3] KVM: VMX: Macrofy GPR swapping in __vmx_vcpu_run() Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Paolo Bonzini @ 2026-05-13 17:49 UTC (permalink / raw)
  To: linux-kernel, kvm; +Cc: chang.seok.bae

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-14 19:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 17:49 [PATCH 0/3] KVM: Macrofy GPR swapping in assembly code Paolo Bonzini
2026-05-13 17:49 ` [PATCH 1/3] KVM: VMX: Macrofy GPR swapping in __vmx_vcpu_run() Paolo Bonzini
2026-05-14 19:30   ` Sean Christopherson
2026-05-13 17:49 ` [PATCH 2/3] KVM: SVM: Macrofy GPR swapping in __svm_vcpu_run() Paolo Bonzini
2026-05-13 17:49 ` [PATCH 3/3] KVM: SEV: Macrofy GPR swapping in __svm_sev_es_vcpu_run() Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox