summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2026-02-06 09:28:00 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-02-06 09:28:00 +0800
commit2faec60a4858bd7fe1bc1419963c6bf030e85706 (patch)
tree888794927fa1fe5ae1861d955b88148219eb16a9 /rust/alloc/collections/git@git.tavy.me:linux.git
parent382c38c9ec94fe87ffd6c9b456fa8ce67943cf1b (diff)
LoongArch: KVM: Set default return value in KVM IO bus ops
When in-kernel irqchip is enabled, its register area is registered in the KVM IO bus list with API kvm_io_bus_register_dev(). In MMIO/IOCSR register access emulation, kvm_io_bus_read()/kvm_io_bus_write() is called firstly. If it returns 0, it means that the in-kernel irqchip handles the emulation already, else it returns to user-mode VMM and lets VMM emulate the register access. Once in-kernel irqchip is enabled, it should return 0 if the address is within range of the registered KVM IO bus. It should not return to user-mode VMM since VMM does not know how to handle it, and irqchip is handled in kernel already. Here set default return value with 0 in KVM IO bus operations. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions