]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: KVM: Handle LOONGARCH_CSR_IPR during vCPU context switch
authorBibo Mao <maobibo@loongson.cn>
Fri, 6 Feb 2026 01:27:46 +0000 (09:27 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 6 Feb 2026 01:27:46 +0000 (09:27 +0800)
commitc5cb12b81a0bddbff0f963662f18747b6d633592
tree513ccf1113859b05c86a30448ef55c67e1115ba7
parentc2f94dafe197961f266fef8946d39df66a9750f4
LoongArch: KVM: Handle LOONGARCH_CSR_IPR during vCPU context switch

Register LOONGARCH_CSR_IPR is interrupt priority setting for nested
interrupt handling. Though LoongArch Linux AVEC driver does not use
this register, KVM hypervisor needs to save and restore this it during
vCPU context switch. Because Linux AVEC driver may use this register
in future, or other OS may use it.

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