linux/arch/loongarch/kvm
Bibo Mao 3011b29ec5 LoongArch: KVM: Set host with kernel mode when switch to VM mode
PRMD register is only meaningful on the beginning stage of exception
entry, and it is overwritten with nested irq or exception.

When CPU runs in VM mode, interrupt need be enabled on host. And the
mode for host had better be kernel mode rather than random or user mode.

When VM is running, the running mode with top command comes from CRMD
register, and running mode should be kernel mode since kernel function
is executing with perf command. It needs be consistent with both top and
perf command.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-02-13 12:02:56 +08:00
..
intc LoongArch: KVM: Protect kvm_io_bus_{read,write}() with SRCU 2024-12-03 19:49:28 +08:00
Kconfig LoongArch: KVM: Add irqfd support 2024-11-13 16:18:27 +08:00
Makefile LoongArch: KVM: Add irqfd support 2024-11-13 16:18:27 +08:00
exit.c LoongArch: KVM: Add hypercall service support for usermode VMM 2025-01-13 21:37:17 +08:00
interrupt.c LoongArch: KVM: Implement vcpu interrupt operations 2023-10-02 10:01:28 +08:00
irqfd.c LoongArch: KVM: Add irqfd support 2024-11-13 16:18:27 +08:00
main.c LoongArch: KVM: Fix typo issue about GCFG feature detection 2025-02-13 12:02:56 +08:00
mmu.c KVM: LoongArch: Use kvm_faultin_pfn() to map pfns into the guest 2024-10-25 13:00:49 -04:00
switch.S LoongArch: KVM: Set host with kernel mode when switch to VM mode 2025-02-13 12:02:56 +08:00
timer.c LoongArch: KVM: Mark hrtimer to expire in hard interrupt context 2024-10-23 22:15:44 +08:00
tlb.c LoongArch: KVM: Delay secondary mmu tlb flush until guest entry 2024-07-09 16:25:50 +08:00
trace.h LoongArch: KVM: Add mmio trace events support 2024-05-06 22:00:47 +08:00
vcpu.c LoongArch: KVM: Remove duplicated cache attribute setting 2025-02-13 12:02:56 +08:00
vm.c LoongArch: KVM: Add irqfd support 2024-11-13 16:18:27 +08:00