Skip to content

x86/hyper-v: optimize PV IPIs

Vitaly Kuznetsov kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/hyper-v: implement hv_do_fast_hypercall16arch/x86/include/asm/mshyperv.h+34 -00 replies
2/4x86/hyper-v: use 'fast' hypercall for HVCALL_SEND_IPIarch/x86/hyperv/hv_apic.c+6 -161 reply
3/4x86/hyper-v: use cheaper HVCALL_SEND_IPI hypercall when possiblearch/x86/hyperv/hv_apic.c+20 -91 reply
4/4x86/hyper-v: trace PV IPI sendarch/x86/hyperv/hv_apic.c arch/x86/include/asm/trace/hyperv.h+19 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchMichael Kelley
1/4
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] x86/hyper-v: optimize PV IPIs

When reviewing my "x86/hyper-v: use cheaper HVCALL_FLUSH_VIRTUAL_ADDRESS_ {LIST,SPACE} hypercalls when possible" patch Michael suggested to apply the same idea to PV IPIs. Here we go!

Despite what Hyper-V TLFS says about HVCALL_SEND_IPI hypercall, it can actually be 'fast' (passing parameters through registers). Use that too.

This series can collide with my "KVM: x86: hyperv: PV IPI support for Windows guests" series as I rename ipi_arg_non_ex/ipi_arg_ex structures there. Depending on which one gets in first we may need to do tiny adjustments.

Vitaly Kuznetsov (4):
x86/hyper-v: implement hv_do_fast_hypercall16 x86/hyper-v: use 'fast' hypercall for HVCALL_SEND_IPI x86/hyper-v: use cheaper HVCALL_SEND_IPI hypercall when possible x86/hyper-v: trace PV IPI send

 arch/x86/hyperv/hv_apic.c           | 57 ++++++++++++++++++++-----------------
 arch/x86/include/asm/mshyperv.h     | 34 ++++++++++++++++++++++
 arch/x86/include/asm/trace/hyperv.h | 15 ++++++++++
 3 files changed, 80 insertions(+), 26 deletions(-)
Signature · 1 line
2.14.4