Skip to content

RFC Misc

Jason Chen CJ kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pkvm: x86: Enable VPID for host VMarch/x86/kvm/vmx/pkvm/hyp/init_finalise.c+15 -00 replies
2/4pkvm: x86: Add pKVM debug supportarch/x86/include/asm/pkvm_image.h arch/x86/include/asm/pkvm_image_vars.h arch/x86/kvm/Kconfig +7 more+111 -60 replies
3/4pkvm: x86: Support get_pcpu_idarch/x86/kvm/vmx/pkvm/hyp/cpu.h arch/x86/kvm/vmx/pkvm/pkvm_host.c+37 -50 replies
4/4pkvm: x86: Handle pending nmi in pKVM runtimearch/x86/kvm/vmx/pkvm/hyp/Makefile arch/x86/kvm/vmx/pkvm/hyp/idt.S arch/x86/kvm/vmx/pkvm/hyp/irq.c +4 more+192 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH part-4 0/4] Misc

This patch set is part-4 of this RFC patches. It contains patches for misc functionalities including supporting of VPID, debug and NMI handling.

Enable VPID for host VM in pKVM if the platform supports it, which improve VMX transition overhead.

Add tmp debug method for pKVM by allowing access Linux printk.

Add nmi support in pKVM, which will record nmi happened in root mode then inject to host VM when vmenter. This ensure physical nmi will not be lost.

Chuanxiao Dong (1):
pkvm: x86: Handle pending nmi in pKVM runtime

Jason Chen CJ (3):
pkvm: x86: Enable VPID for host VM
pkvm: x86: Add pKVM debug support
pkvm: x86: Support get_pcpu_id

 arch/x86/include/asm/pkvm_image.h         |  2 +-
 arch/x86/include/asm/pkvm_image_vars.h    |  4 ++
 arch/x86/kvm/Kconfig                      |  8 +++
 arch/x86/kvm/vmx/pkvm/hyp/Makefile        | 10 ++-
 arch/x86/kvm/vmx/pkvm/hyp/cpu.h           | 30 ++++++++
 arch/x86/kvm/vmx/pkvm/hyp/debug.h         |  7 ++
 arch/x86/kvm/vmx/pkvm/hyp/idt.S           | 67 ++++++++++++++++++
 arch/x86/kvm/vmx/pkvm/hyp/init_finalise.c | 28 +++++++-
 arch/x86/kvm/vmx/pkvm/hyp/irq.c           | 60 ++++++++++++++++
 arch/x86/kvm/vmx/pkvm/hyp/mmu.c           | 21 ++++++
 arch/x86/kvm/vmx/pkvm/hyp/mmu.h           |  6 ++
 arch/x86/kvm/vmx/pkvm/hyp/vmexit.c        | 26 +++++++
 arch/x86/kvm/vmx/pkvm/hyp/vmx.h           |  5 ++
 arch/x86/kvm/vmx/pkvm/include/pkvm.h      |  6 ++
 arch/x86/kvm/vmx/pkvm/pkvm_host.c         | 83 ++++++++++++++++++++---
 virt/kvm/pkvm/pkvm.c                      |  6 +-
 16 files changed, 352 insertions(+), 17 deletions(-)
 create mode 100644 arch/x86/kvm/vmx/pkvm/hyp/cpu.h
 create mode 100644 arch/x86/kvm/vmx/pkvm/hyp/idt.S
 create mode 100644 arch/x86/kvm/vmx/pkvm/hyp/irq.c
Signature · 1 line
2.25.1