Re: [PATCH v2 06/24] kvm: arm64: Move hyp-init params to a per-CPU struct

2020-11-25 Thread Marc Zyngier
On 2020-11-25 10:39, David Brazdil wrote: On Mon, Nov 23, 2020 at 02:20:07PM +, Marc Zyngier wrote: [...] > + > + /* > + * Flush the init params from the data cache because the struct will > + * be read while the MMU is off. > + */ > + __flush_dcache_area(params,

Re: [PATCH v2 06/24] kvm: arm64: Move hyp-init params to a per-CPU struct

2020-11-25 Thread David Brazdil
On Mon, Nov 23, 2020 at 02:20:07PM +, Marc Zyngier wrote: > On Mon, 16 Nov 2020 20:43:00 +, > David Brazdil wrote: > > > > Once we start initializing KVM on newly booted cores before the rest of > > the kernel, parameters to __do_hyp_init will need to be provided by EL2 > > rather than

Re: [PATCH v2 06/24] kvm: arm64: Move hyp-init params to a per-CPU struct

2020-11-23 Thread Marc Zyngier
On Mon, 16 Nov 2020 20:43:00 +, David Brazdil wrote: > > Once we start initializing KVM on newly booted cores before the rest of > the kernel, parameters to __do_hyp_init will need to be provided by EL2 > rather than EL1. At that point it will not be possible to pass its four > arguments

[PATCH v2 06/24] kvm: arm64: Move hyp-init params to a per-CPU struct

2020-11-16 Thread David Brazdil
Once we start initializing KVM on newly booted cores before the rest of the kernel, parameters to __do_hyp_init will need to be provided by EL2 rather than EL1. At that point it will not be possible to pass its four arguments directly because PSCI_CPU_ON only supports one context argument.