]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: KVM: Add address alignment check in pch_pic register access
authorBibo Mao <maobibo@loongson.cn>
Wed, 20 Aug 2025 14:51:15 +0000 (22:51 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 20 Aug 2025 14:51:15 +0000 (22:51 +0800)
commit538c06e3964a8e94b645686cc58ccc4a06fa6330
tree4ddf0423b36400b759d60f906f1794148643a50e
parent0dfd9ea7bf80fabe11f5b775d762a5cd168cdf41
LoongArch: KVM: Add address alignment check in pch_pic register access

With pch_pic device, its register is based on MMIO address space,
different access size 1/2/4/8 is supported. And base address should
be naturally aligned with its access size, here add alignment check
in its register access emulation function.

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