]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: KVM: Implement function kvm_para_has_feature()
authorBibo Mao <maobibo@loongson.cn>
Thu, 12 Sep 2024 14:56:14 +0000 (22:56 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 12 Sep 2024 14:56:14 +0000 (22:56 +0800)
commit3abb708ec0be25da16a1ee9f1ab5cbc93f3256f3
tree667cab9b2871b97c38f80e454589edc270f041df
parentcdc118f802410525cca872e0861a14d76d12c574
LoongArch: KVM: Implement function kvm_para_has_feature()

Implement function kvm_para_has_feature() to detect supported paravirt
features. It can be used by device driver to detect and enable paravirt
features, such as the EIOINTC irqchip driver is able to detect feature
KVM_FEATURE_VIRT_EXTIOI and do some optimization.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/kvm_para.h
arch/loongarch/kernel/paravirt.c