]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
LoongArch: KVM: Fix typo issue in kvm_vm_init_features()
authorBibo Mao <maobibo@loongson.cn>
Mon, 16 Mar 2026 02:36:02 +0000 (10:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 16 Mar 2026 02:36:02 +0000 (10:36 +0800)
Most of VM feature detections are integer OR operations, and integer
assignment operation will clear previous integer OR operation. So here
change all integer assignment operations to integer OR operations.

Fixes: 82db90bf461b ("LoongArch: KVM: Move feature detection in kvm_vm_init_features()")
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/vm.c

index 17b3d5b36cfc032ed81e1f8cfeceec8fae6da668..8cc5ee1c53efbe72aea357c6fd716b9f692d3da7 100644 (file)
@@ -49,8 +49,8 @@ static void kvm_vm_init_features(struct kvm *kvm)
                kvm->arch.kvm_features |= BIT(KVM_LOONGARCH_VM_FEAT_PMU);
 
        /* Enable all PV features by default */
-       kvm->arch.pv_features = BIT(KVM_FEATURE_IPI);
-       kvm->arch.kvm_features = BIT(KVM_LOONGARCH_VM_FEAT_PV_IPI);
+       kvm->arch.pv_features |= BIT(KVM_FEATURE_IPI);
+       kvm->arch.kvm_features |= BIT(KVM_LOONGARCH_VM_FEAT_PV_IPI);
        if (kvm_pvtime_supported()) {
                kvm->arch.pv_features |= BIT(KVM_FEATURE_PREEMPT);
                kvm->arch.pv_features |= BIT(KVM_FEATURE_STEAL_TIME);