mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] LoongArch: KVM: Some small enhanments
@ 2026-03-11  3:18 Bibo Mao
  2026-03-11  3:18 ` [PATCH 1/3] LoongArch: KVM: Add kvm_request_pending checking in kvm_late_check_requests() Bibo Mao
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bibo Mao @ 2026-03-11  3:18 UTC (permalink / raw)
  To: Tianrui Zhao, Huacai Chen
  Cc: kernel, kvm, loongarch, linux-kernel, Juergen Gross

There are some small enhancements about LoongArch KVM. There is
improvement about VM entry path in patch 1 and patch, add pending
request checking in advance and it is empty at most time.

Also change vcpu_is_preempted() from function to macro method, by actual
benchmark test such as unixbench. It is affected on physical machine
with function method. With the macro method, only one nop instruction
is added and there is no parameter parsing, there is no obvious
performance influence with physical machine.

Bibo Mao (3):
  LoongArch: KVM: Add kvm_request_pending checking in
    kvm_late_check_requests()
  LoongArch: KVM: Move host CSR_EENTRY save in context switch
  LoongArch: KVM: Set vcpu_is_preempted() macro rather than function

 arch/loongarch/include/asm/qspinlock.h | 27 +++++++++++++++++++++-----
 arch/loongarch/kernel/paravirt.c       | 15 ++------------
 arch/loongarch/kvm/vcpu.c              | 24 +++++++++++------------
 3 files changed, 36 insertions(+), 30 deletions(-)


base-commit: 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
-- 
2.39.3


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

end of thread, other threads:[~2026-03-11  6:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-11  3:18 [PATCH 0/3] LoongArch: KVM: Some small enhanments Bibo Mao
2026-03-11  3:18 ` [PATCH 1/3] LoongArch: KVM: Add kvm_request_pending checking in kvm_late_check_requests() Bibo Mao
2026-03-11  3:18 ` [PATCH 2/3] LoongArch: KVM: Move host CSR_EENTRY save in context switch Bibo Mao
2026-03-11  3:18 ` [PATCH 3/3] LoongArch: KVM: Set vcpu_is_preempted() macro rather than function Bibo Mao
2026-03-11  3:35   ` Huacai Chen
2026-03-11  3:47     ` Bibo Mao
2026-03-11  4:38       ` Huacai Chen
2026-03-11  6:30         ` Bibo Mao

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

all inboxes | Powered by JetHome®