d printing an exception message. To solve the above problems, we directly compile the switch.S file into the kernel instead of the module. In this way, the function kvm_exc_entry will no longer need to be copied. changlog: V3<-V2: 1.Replace the EXPORT_SYMBOL macro declaration symbol with the EXPORT_SYMBOL_FOR_KVM macro 2.Add some comments in kvm_enter_guest 3.Place the correct pc address in era 4.Move .p2align after .text V2<-V1: 1.Rollback the modification of function parameter types such as kvm_save_fpu. In the asm-prototypes.h header file, only the parameter types it depends on are included Cc: Huacai Chen Cc: WANG Xuerui Cc: Tianrui Zhao Cc: Bibo Mao Cc: Charlie Jenkins Cc: Xianglai Li Cc: Thomas Gleixner Cc: stable@vger.kernel.org Cc: Tiezhu Yang Xianglai Li (2): LoongArch: KVM: Compile the switch.S file directly into the kernel LoongArch: KVM: fix "unreliable stack" issue arch/loongarch/Kbuild | 2 +- arch/loongarch/include/asm/asm-prototypes.h | 21 +++++++++++++ arch/loongarch/include/asm/kvm_host.h | 3 -- arch/loongarch/kvm/Makefile | 2 +- arch/loongarch/kvm/main.c | 35 ++------------------- arch/loongarch/kvm/switch.S | 32 ++++++++++++++++--- 6 files changed, 53 insertions(+), 42 deletions(-) base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 -- 2.39.1[PATCH V3 0/2] LoongArch: KVM: fix "unreliable stack" issueXianglai Li undefinedloongarch@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, lixianglai@loongson.cn undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined;