diff options
author | Tianrui Zhao <zhaotianrui@loongson.cn> | 2023-12-19 10:48:28 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-12-19 10:48:28 +0800 |
commit | db1ecca22edf27c5a3dd66af406c88b5b5ac7cc1 (patch) | |
tree | 41c21e4c7fe4ed5f984834f148397e10cca7ae65 /arch/loongarch/include/uapi/asm/kvm.h | |
parent | 5b3d524993ff1fb36089be850ccb121ac3296bcf (diff) | |
download | lwn-db1ecca22edf27c5a3dd66af406c88b5b5ac7cc1.tar.gz lwn-db1ecca22edf27c5a3dd66af406c88b5b5ac7cc1.zip |
LoongArch: KVM: Add LSX (128bit SIMD) support
This patch adds LSX (128bit SIMD) support for LoongArch KVM.
There will be LSX exception in KVM when guest use the LSX instructions.
KVM will enable LSX and restore the vector registers for guest and then
return to guest to continue running.
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/uapi/asm/kvm.h')
-rw-r--r-- | arch/loongarch/include/uapi/asm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/include/uapi/asm/kvm.h b/arch/loongarch/include/uapi/asm/kvm.h index c6ad2ee6106c..923d0bd38294 100644 --- a/arch/loongarch/include/uapi/asm/kvm.h +++ b/arch/loongarch/include/uapi/asm/kvm.h @@ -79,6 +79,7 @@ struct kvm_fpu { #define LOONGARCH_REG_64(TYPE, REG) (TYPE | KVM_REG_SIZE_U64 | (REG << LOONGARCH_REG_SHIFT)) #define KVM_IOC_CSRID(REG) LOONGARCH_REG_64(KVM_REG_LOONGARCH_CSR, REG) #define KVM_IOC_CPUCFG(REG) LOONGARCH_REG_64(KVM_REG_LOONGARCH_CPUCFG, REG) +#define KVM_LOONGARCH_VCPU_CPUCFG 0 struct kvm_debug_exit_arch { }; |