[PATCH] KVM: arm64: fix MPIDR to vcpu index cache to support vcpu change at runtime
Marc Zyngier
maz at kernel.org
Wed Nov 29 11:18:42 PST 2023
On Tue, 28 Nov 2023 13:54:02 +0000,
l00313349 <liting8 at huawei.com> wrote:
>
> From: Ting Li <liting8 at huawei.com>
>
> Consider vcpu change at runtime, for example online_vcpus is 8,
> but only start 2 vcpu threads, MPIDR to vcpu index 0 may be overwrited
> and vm hangs. When start other vcpu threads, cache will be outdated
> and always get mismatch.
If userspace creates two vcpus with the same vcpu_id, and therefore
the same MPIDR value, that's userspace's problem. Don't do that.
Why should we do anything else?
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list