Skip to content

RFC KVM: x86: Interrupt-based mechanism for async_pf 'page present' notifications

Vitaly Kuznetsov kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Revert "KVM: async_pf: Fix #DF due to inject "Page not Present" and "Page Ready" exceptions simultaneously"arch/x86/kvm/x86.c+1 -154 replies
2/6KVM: x86: extend struct kvm_vcpu_pv_apf_data with token infoarch/x86/include/uapi/asm/kvm_para.h arch/x86/kvm/x86.c+8 -52 replies
3/6KVM: x86: interrupt based APF page-ready event deliveryDocumentation/virt/kvm/msr.rst arch/x86/include/asm/kvm_host.h arch/x86/include/uapi/asm/kvm_para.h +1 more+113 -138 replies
4/6KVM: x86: acknowledgment mechanism for async pf page ready notificationsDocumentation/virt/kvm/msr.rst arch/x86/include/uapi/asm/kvm_para.h arch/x86/kvm/x86.c+24 -213 replies
5/6KVM: x86: announce KVM_FEATURE_ASYNC_PF_INTDocumentation/virt/kvm/cpuid.rst arch/x86/include/uapi/asm/kvm_para.h arch/x86/kvm/cpuid.c +2 more+11 -11 reply
6/6KVM: x86: Switch KVM guest to using interrupts for page ready APF deliveryarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/hardirq.h +4 more+75 -16 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchGavin Shan
1/6R-b
2/6
3/6
4/6
5/6
6/6

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 RFC 0/6] KVM: x86: Interrupt-based mechanism for async_pf 'page present' notifications

Concerns were expressed around (ab)using #PF for KVM's async_pf mechanism, it seems that re-using #PF exception for a PV mechanism wasn't a great idea after all. The Grand Plan is to switch to using e.g. #VE for 'page not present' events and normal APIC interrupts for 'page present' events. This RFC does the later.

Please let me know what you think about the idea in general and the selected approach in particular.

Vitaly Kuznetsov (6):
Revert "KVM: async_pf: Fix #DF due to inject "Page not Present" and
"Page Ready" exceptions simultaneously"
KVM: x86: extend struct kvm_vcpu_pv_apf_data with token info
KVM: x86: interrupt based APF page-ready event delivery
KVM: x86: acknowledgment mechanism for async pf page ready
notifications
KVM: x86: announce KVM_FEATURE_ASYNC_PF_INT
KVM: x86: Switch KVM guest to using interrupts for page ready APF
delivery

 Documentation/virt/kvm/cpuid.rst     |   6 ++
 Documentation/virt/kvm/msr.rst       |  52 +++++++++++--
 arch/x86/entry/entry_32.S            |   5 ++
 arch/x86/entry/entry_64.S            |   5 ++
 arch/x86/include/asm/hardirq.h       |   3 +
 arch/x86/include/asm/irq_vectors.h   |   6 +-
 arch/x86/include/asm/kvm_host.h      |   5 +-
 arch/x86/include/asm/kvm_para.h      |   6 ++
 arch/x86/include/uapi/asm/kvm_para.h |  11 ++-
 arch/x86/kernel/irq.c                |   9 +++
 arch/x86/kernel/kvm.c                |  42 +++++++++++
 arch/x86/kvm/cpuid.c                 |   3 +-
 arch/x86/kvm/x86.c                   | 107 +++++++++++++++++++++------
 include/uapi/linux/kvm.h             |   1 +
 14 files changed, 228 insertions(+), 33 deletions(-)
Signature · 1 line
2.25.3