Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/2] target/loongarch: PV TLB flush advertisement
@ 2026-06-15  8:52 Tao Cui
  2026-06-15  8:52 ` [PATCH 1/2] linux-headers: Add LoongArch PV TLB flush definitions Tao Cui
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tao Cui @ 2026-06-15  8:52 UTC (permalink / raw)
  To: qemu-devel
  Cc: Song Gao, Paolo Bonzini, Michael S . Tsirkin, Cornelia Huck, kvm,
	Tao Cui

From: Tao Cui <cuitao@kylinos.cn>

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-15  9:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15  8:52 [PATCH 0/2] target/loongarch: PV TLB flush advertisement Tao Cui
2026-06-15  8:52 ` [PATCH 1/2] linux-headers: Add LoongArch PV TLB flush definitions Tao Cui
2026-06-15  8:52 ` [PATCH 2/2] target/loongarch: Enable PV TLB flush advertisement to the guest Tao Cui
2026-06-15  9:20 ` [PATCH 0/2] target/loongarch: PV TLB flush advertisement gaosong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox