On 6/5/23 07:00, Huacai Chen wrote:
I found something like this in our internal repo. #define KVM_CAP_LOONGARCH_FPU 228 #define KVM_CAP_LOONGARCH_LSX 229 #define KVM_CAP_LOONGARCH_VZ 230 #define KVM_LOONGARCH_GET_VCPU_STATE _IOR(KVMIO, 0xd0, struct kvm_loongarch_vcpu_state) #define KVM_LOONGARCH_SET_VCPU_STATE _IOW(KVMIO, 0xd1, struct kvm_loongarch_vcpu_state) #define KVM_LOONGARCH_GET_CPUCFG _IOR(KVMIO, 0xd2, struct kvm_cpucfg) #define KVM_LOONGARCH_GET_IOCSR _IOR(KVMIO, 0xd3, struct kvm_iocsr_entry) #define KVM_LOONGARCH_SET_IOCSR _IOW(KVMIO, 0xd4, struct kvm_iocsr_entry) #define KVM_LOONGARCH_SET_CPUCFG _IOR(KVMIO, 0xd5, struct kvm_cpucfg) These are all UAPI definitions, if they are needed (at present or in future), they should be merged in the first wave of KVM.
No, dead definitions should never be mergd. Paolo