summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/cpuidle-calxeda.c
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-05-06 17:00:46 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2024-05-06 17:00:46 +0300
commit372631bb62d3791f0122a67f5a3e959a4d99bebd (patch)
treeaca3159d80eacf27edfd3745fae958f22a292821 /drivers/cpuidle/cpuidle-calxeda.c
parent316863cb62fe7aaea30e7ef8e6481f1ba414b044 (diff)
downloadlinux-372631bb62d3791f0122a67f5a3e959a4d99bebd.tar.xz
LoongArch: KVM: Add hypercall instruction emulation
On LoongArch system, there is a hypercall instruction special for virtualization. When system executes this instruction on host side, there is an illegal instruction exception reported, however it will trap into host when it is executed in VM mode. When hypercall is emulated, A0 register is set with value KVM_HCALL_INVALID_CODE, rather than inject EXCCODE_INE invalid instruction exception. So VM can continue to executing the next code. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'drivers/cpuidle/cpuidle-calxeda.c')
0 files changed, 0 insertions, 0 deletions