在 2026/6/15 下午4:52, Tao Cui 写道:
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.
Hi, you should use scripts/update-linux-headers.sh  to update the linux-headers.

Thanks.
Song Gao
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(-)



Reply via email to