mbox series

[0/8] target/loongarch: Add paravirt feature property and enabling

Message ID 20250217035718.3977137-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series target/loongarch: Add paravirt feature property and enabling | expand

Message

bibo mao Feb. 17, 2025, 3:57 a.m. UTC
Paravirt features is enabled by default if it is supported by KVM host,
such as KVM_FEATURE_IPI and KVM_FEATURE_STEAL_TIME, however paravirt
feature KVM_FEATURE_VIRT_EXTIOI is controlled from qemu VMM rather KVM
host.

From qemu VMM side, all paravirt features should be controlled. Here
property of paravirt features are added, also feature dection and
enabling is added here.

Bibo Mao (8):
  target/loongarch: Add post init function for kvm mode
  target/loongarch: Mov kvm specified vcpu property to kvm directory
  target/loongarch: Add CPU property for paravirt ipi feature
  target/loongarch: Add paravirt ipi feature detection
  target/loongarch: Add paravirt ipi feature enabling
  target/loongarch: Add CPU property for kvm steal time feature
  target/loongarch: Add kvm steal time feature detection
  target/loongarch: Add virtual extioi feature enabling

 target/loongarch/cpu.c               |  42 +------
 target/loongarch/cpu.h               |   5 +
 target/loongarch/kvm/kvm.c           | 177 ++++++++++++++++++++++++++-
 target/loongarch/kvm/kvm_loongarch.h |   1 +
 4 files changed, 185 insertions(+), 40 deletions(-)


base-commit: 495de0fd82d8bb2d7035f82d9869cfeb48de2f9e