Commit c89f1e49 authored by Xiangyou Xie's avatar Xiangyou Xie Committed by Zheng Zengkai
Browse files

KVM: arm/arm64: vgic-its: Do not execute invalidate MSI-LPI translation cache on movi command

euleros inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4J0W7


CVE: NA

-------------------------------------------------

It is not necessary to invalidate the lpi translation cache when the
virtual machine executes the movi instruction to adjust the affinity of
the interrupt. Irqbalance will adjust the interrupt affinity in a short
period of time to achieve the purpose of interrupting load balancing,
but this does not affect the contents of the lpi translation cache.

Signed-off-by: default avatarXiangyou Xie <xiexiangyou@huawei.com>
Reviewed-by: default avatarHailiang Zhang <zhang.zhanghailiang@huawei.com>
Signed-off-by: default avatarXiangyou Xie <xiexiangyou@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarChaochao Xing <xingchaochao@huawei.com>
Reviewed-by: default avatarXiangyou Xie <xiexiangyou@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent def3bcbd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -921,6 +921,7 @@ static int vgic_its_cmd_handle_movi(struct kvm *kvm, struct vgic_its *its,
	ite->collection = collection;
	vcpu = kvm_get_vcpu(kvm, collection->target_addr);

	if (!vcpu->arch.vgic_cpu.lpis_enabled)
		vgic_its_invalidate_cache(kvm);

	return update_affinity(ite->irq, vcpu);