Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-11 Thread Marc Zyngier
On 2020-11-11 13:45, David Brazdil wrote: On Wed, Nov 11, 2020 at 01:29:29PM +, Marc Zyngier wrote: On 2020-11-11 13:03, David Brazdil wrote: > > > +/* > > > + * nVHE copy of data structures tracking available CPU cores. > > > + * Only entries for CPUs that were online at KVM init are

Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-11 Thread David Brazdil
On Wed, Nov 11, 2020 at 01:29:29PM +, Marc Zyngier wrote: > On 2020-11-11 13:03, David Brazdil wrote: > > > > +/* > > > > + * nVHE copy of data structures tracking available CPU cores. > > > > + * Only entries for CPUs that were online at KVM init are populated. > > > > + * Other CPUs should

Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-11 Thread Marc Zyngier
On 2020-11-11 13:03, David Brazdil wrote: > +/* > + * nVHE copy of data structures tracking available CPU cores. > + * Only entries for CPUs that were online at KVM init are populated. > + * Other CPUs should not be allowed to boot because their features were > + * not checked against the

Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-11 Thread David Brazdil
> > +/* > > + * nVHE copy of data structures tracking available CPU cores. > > + * Only entries for CPUs that were online at KVM init are populated. > > + * Other CPUs should not be allowed to boot because their features were > > + * not checked against the finalized system capabilities. > > + */

Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: When KVM starts validating host's PSCI requests, it will need to map MPIDR back to the CPU ID. To this end, copy cpu_logical_map into nVHE hyp memory when KVM is initialized. Only copy the information for CPUs that are online at the point of KVM

[PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-09 Thread David Brazdil
When KVM starts validating host's PSCI requests, it will need to map MPIDR back to the CPU ID. To this end, copy cpu_logical_map into nVHE hyp memory when KVM is initialized. Only copy the information for CPUs that are online at the point of KVM initialization so that KVM rejects CPUs whose