]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: KVM: Add sign extension with kernel IOCSR read emulation
authorBibo Mao <maobibo@loongson.cn>
Tue, 23 Sep 2025 15:37:08 +0000 (23:37 +0800)
committerHuacai Chen <chenhuacai@kernel.org>
Tue, 23 Sep 2025 15:37:08 +0000 (23:37 +0800)
commit44598fe77663da1fdd59c2b01fc317afcb7bc753
tree3da08cc478665e023e16eac3268351371ef34a98
parent80edf90831a2c129db478b1e72b27839602b72ea
LoongArch: KVM: Add sign extension with kernel IOCSR read emulation

Function kvm_complete_iocsr_read() is to add sign extension with IOCSR
read emulation, it is used in user space IOCSR read completion now. Also
it should be used in kernel IOCSR read emulation.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/exit.c