]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: KVM: Enable paravirt feature control from VMM
authorBibo Mao <maobibo@loongson.cn>
Thu, 12 Sep 2024 12:53:40 +0000 (20:53 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 12 Sep 2024 12:53:40 +0000 (20:53 +0800)
commitcdc118f802410525cca872e0861a14d76d12c574
treec6a4474368aa8da93af7926e1a1eb116bcfd3fc3
parentf4e40ea9f78fed585e953bf38575e47d24922e1a
LoongArch: KVM: Enable paravirt feature control from VMM

Export kernel paravirt features to user space, so that VMM can control
each single paravirt feature. By default paravirt features will be the
same with kvm supported features if VMM does not set it.

Also a new feature KVM_FEATURE_VIRT_EXTIOI is added which can be set
from user space. This feature indicates that the virt EIOINTC can route
interrupts to 256 vCPUs, rather than 4 vCPUs like with real HW.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/kvm_host.h
arch/loongarch/include/asm/kvm_para.h
arch/loongarch/include/asm/kvm_vcpu.h
arch/loongarch/include/asm/loongarch.h
arch/loongarch/include/uapi/asm/Kbuild
arch/loongarch/include/uapi/asm/kvm.h
arch/loongarch/include/uapi/asm/kvm_para.h [new file with mode: 0644]
arch/loongarch/kernel/paravirt.c
arch/loongarch/kvm/exit.c
arch/loongarch/kvm/vcpu.c
arch/loongarch/kvm/vm.c