Re: [PATCH] LoongArch: KVM: Fix typo issue in kvm_vm_init_features()
From: Huacai Chen
Date: Sun Mar 15 2026 - 04:03:46 EST
Applied, thanks.
Huacai
On Wed, Mar 4, 2026 at 9:33 AM Bibo Mao <maobibo@xxxxxxxxxxx> wrote:
>
> Most of VM feature detection is integer or operation, and integer
> assignment operation will clear previous integer or operation. Here
> change integer assignment operation with integer or operation.
>
> Fixes: 82db90bf461b ("LoongArch: KVM: Move feature detection in kvm_vm_init_features()")
> Signed-off-by: Bibo Mao <maobibo@xxxxxxxxxxx>
> ---
> arch/loongarch/kvm/vm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/loongarch/kvm/vm.c b/arch/loongarch/kvm/vm.c
> index 63fd40530aa9..a555ea037cf5 100644
> --- a/arch/loongarch/kvm/vm.c
> +++ b/arch/loongarch/kvm/vm.c
> @@ -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);
>
> base-commit: 4d349ee5c7782f8b27f6cb550f112c5e26fff38d
> --
> 2.39.3
>
>