target/loongarch: PV TLB flush advertisement
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | linux-headers: Add LoongArch PV TLB flush definitionslinux-headers/ linux-headers/ | +2 | 0 replies | |
| 2/2 | target/loongarch: Enable PV TLB flush advertisement to the guesttarget/ target/ target/ | +42 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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