]> xenbits.xensource.com Git - people/pauldu/linux.git/commit
KVM: arm64: Use vcpu_idx for invalidation tracking
authorMarc Zyngier <maz@kernel.org>
Wed, 27 Sep 2023 09:09:06 +0000 (10:09 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 30 Sep 2023 18:15:43 +0000 (18:15 +0000)
commit5f4bd815ec718992c09de1f39479ae90dcbb7df3
treeb519fd303ad9ee8ec95d7060ef3bff4947f962d7
parentac0fe56d46c0d534dddcf97d132c222722b9b7a5
KVM: arm64: Use vcpu_idx for invalidation tracking

While vcpu_id isn't necessarily a bad choice as an identifier for
the currently running vcpu, it is provided by userspace, and there
is close to no guarantee that it would be unique.

Switch it to vcpu_idx instead, for which we have much stronger
guarantees.

Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230927090911.3355209-7-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c