]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: KVM: Add iocsr and mmio bus simulation in kernel
authorXianglai Li <lixianglai@loongson.cn>
Wed, 13 Nov 2024 08:18:26 +0000 (16:18 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 13 Nov 2024 08:18:26 +0000 (16:18 +0800)
commit948ccbd95016f50ce01df5eef9440eede3b8c713
tree2dbe0b50bc1383a2e6d2d1ee982a89b6d0a227c7
parent2d5404caa8c7bb5c4e0435f94b28834ae5456623
LoongArch: KVM: Add iocsr and mmio bus simulation in kernel

Add iocsr and mmio memory read and write simulation to the kernel. When
the VM accesses the device address space through iocsr instructions or
mmio, it does not need to return to the qemu user mode but can directly
completes the access in the kernel mode.

Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/exit.c
include/linux/kvm_host.h
include/trace/events/kvm.h