Thread (5 messages) 5 messages, 3 authors, 2020-06-08

Re: [PATCH v2] KVM: arm64: Remove host_cpu_context member from vcpu structure

From: Andrew Scull <hidden>
Date: 2020-06-08 14:52:02
Also in: kvm, kvmarm

On Mon, Jun 08, 2020 at 09:56:57AM +0100, Marc Zyngier wrote:
For very long, we have kept this pointer back to the per-cpu
host state, despite having working per-cpu accessors at EL2
for some time now.

Recent investigations have shown that this pointer is easy
to abuse in preemptible context, which is a sure sign that
it would better be gone. Not to mention that a per-cpu
pointer is faster to access at all times.
Helps to make the references to `kvm_host_data` clearer with there now
being just one way to get to it and shows that it is scoped to the
current CPU. A good change IMO!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help