Skip to content

Commit c252c12

Browse files
bibo-maochenhuacai
authored andcommitted
LoongArch: KVM: Fix typo issue in kvm_vm_init_features()
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: 82db90b ("LoongArch: KVM: Move feature detection in kvm_vm_init_features()") Signed-off-by: Bibo Mao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent b254c62 commit c252c12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • arch/loongarch/kvm

arch/loongarch/kvm/vm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ static void kvm_vm_init_features(struct kvm *kvm)
4949
kvm->arch.kvm_features |= BIT(KVM_LOONGARCH_VM_FEAT_PMU);
5050

5151
/* Enable all PV features by default */
52-
kvm->arch.pv_features = BIT(KVM_FEATURE_IPI);
53-
kvm->arch.kvm_features = BIT(KVM_LOONGARCH_VM_FEAT_PV_IPI);
52+
kvm->arch.pv_features |= BIT(KVM_FEATURE_IPI);
53+
kvm->arch.kvm_features |= BIT(KVM_LOONGARCH_VM_FEAT_PV_IPI);
5454
if (kvm_pvtime_supported()) {
5555
kvm->arch.pv_features |= BIT(KVM_FEATURE_PREEMPT);
5656
kvm->arch.pv_features |= BIT(KVM_FEATURE_STEAL_TIME);

0 commit comments

Comments
 (0)