diff options
author | Song Gao <gaosong@loongson.cn> | 2024-01-22 17:02:06 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2024-01-25 15:25:31 +0800 |
commit | fc70099621fe7002d30fc1509456d1ae57264aa6 (patch) | |
tree | aadd5620e2406a76c8fd679bc92490766d3c8a79 /linux-headers | |
parent | 61f6e1509de2cef9df1c649f6b318c36288c119b (diff) |
target/loongarch/kvm: Enable LSX/LASX extension
The kernel had already support LSX and LASX [1],
but QEMU is disable LSX/LASX for kvm. This patch adds
kvm_check_cpucfg2() to check CPUCFG2.
[1]: https://lore.kernel.org/all/CABgObfZHRf7E_7Jk4uPRmSyxTy3EiuuYwHC35jQncNL9s-zTDA@mail.gmail.com/
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240122090206.1083584-1-gaosong@loongson.cn>
Diffstat (limited to 'linux-headers')
-rw-r--r-- | linux-headers/asm-loongarch/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-headers/asm-loongarch/kvm.h b/linux-headers/asm-loongarch/kvm.h index c6ad2ee610..923d0bd382 100644 --- a/linux-headers/asm-loongarch/kvm.h +++ b/linux-headers/asm-loongarch/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 { }; |