Skip to content

target/loongarch: PV TLB flush advertisement

Tao Cui kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2linux-headers: Add LoongArch PV TLB flush definitionslinux-headers/asm-loongarch/kvm.h linux-headers/asm-loongarch/kvm_para.h+2 -00 replies
2/2target/loongarch: Enable PV TLB flush advertisement to the guesttarget/loongarch/cpu.h target/loongarch/kvm/kvm.c target/loongarch/loongarch-qmp-cmds.c+42 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] target/loongarch: PV TLB flush advertisement

From: Tao Cui <[email protected]>

Advertise the LoongArch paravirtual TLB flush feature (KVM_FEATURE_PV_TLB_FLUSH) to the guest when the host KVM supports it. This pairs with the corresponding KVM/guest-kernel PV TLB flush series posted to the kernel.

Patch 1 syncs the UAPI definitions into linux-headers. Patch 2 adds the probe, the CPUCFG feature advertisement, and a kvm-pv-tlb-flush CPU property (on/off/auto, default auto).

The feature is only advertised when the host actually supports it, so a guest never observes KVM_FEATURE_PV_TLB_FLUSH on a host that cannot service PV TLB flush requests.

Tao Cui (2):
linux-headers: Add LoongArch PV TLB flush definitions target/loongarch: Enable PV TLB flush advertisement to the guest

 linux-headers/asm-loongarch/kvm.h      |  1 +
 linux-headers/asm-loongarch/kvm_para.h |  1 +
 target/loongarch/cpu.h                 |  2 ++
 target/loongarch/kvm/kvm.c             | 38 ++++++++++++++++++++++++++
 target/loongarch/loongarch-qmp-cmds.c  |  4 +--
 5 files changed, 44 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0