mirror-linux/arch/loongarch
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
..
boot LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
configs The various patchsets are summarized below. Plus of course many 2025-01-26 18:36:23 -08:00
crypto loongarch/crc32: expose CRC32 functions through lib 2024-12-01 17:23:01 -08:00
include LoongArch: Remove the deprecated notifier hook mechanism 2025-02-13 12:02:40 +08:00
kernel LoongArch: Remove the deprecated notifier hook mechanism 2025-02-13 12:02:40 +08:00
kvm LoongArch: KVM: Set host with kernel mode when switch to VM mode 2025-02-13 12:02:56 +08:00
lib LoongArch: csum: Fix OoB access in IP checksum code for negative lengths 2025-02-13 12:02:40 +08:00
mm LoongArch: Fix kernel_page_present() for KPRANGE/XKPRANGE 2025-02-13 12:02:35 +08:00
net LoongArch: BPF: Adjust the parameter of emit_jirl() 2024-12-02 16:42:08 +08:00
pci LoongArch: Fix memleak in pci_acpi_scan_root() 2024-09-24 15:32:20 +08:00
power LoongArch: Fix warnings during S3 suspend 2025-01-26 21:49:59 +08:00
vdso LoongArch changes for v6.13 2024-11-27 11:15:27 -08:00
Kbuild LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
Kconfig LoongArch changes for v6.14 2025-01-28 08:52:01 -08:00
Kconfig.debug LoongArch: Only allow OBJTOOL & ORC unwinder if toolchain supports -mthin-add-sub 2024-06-21 10:18:40 +08:00
Makefile LoongArch: Explicitly specify code model in Makefile 2024-11-26 18:06:03 +08:00