]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Add different length support in loongarch_pch_pic_read()
authorBibo Mao <maobibo@loongson.cn>
Tue, 23 Sep 2025 15:37:09 +0000 (23:37 +0800)
committerHuacai Chen <chenhuacai@kernel.org>
Tue, 23 Sep 2025 15:37:09 +0000 (23:37 +0800)
commitf8a73df503f5145317de992b94df603ed97e2f86
treec2e0c25e6895b97a38da265bcaa70bc2ade1e082
parenteb626c7704dc9dbc2eee2c2bee281992d36de6da
LoongArch: KVM: Add different length support in loongarch_pch_pic_read()

With function loongarch_pch_pic_read(), currently it is hardcoded length
for different registers, and the length comes from exising linux pch_pic
driver code. But in theory, all length 1/2/4/8 should be supported for
all the registers, here add different length support about register read
emulation in function loongarch_pch_pic_read().

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