Re: [PATCH v1 10/24] kvm: arm64: Extract parts of el2_setup into a macro

2020-11-16 Thread David Brazdil
Hi Marc, > > +* Check for VHE being present. x2 being non-zero indicates that we > > +* do have VHE, and that the kernel is intended to run at EL2. > > */ > > mrs x2, id_aa64mmfr1_el1 > > ubfxx2, x2, #ID_AA64MMFR1_VHE_SHIFT, #4 > > -#else > > - mov x2, xzr > >

Re: [PATCH v1 10/24] kvm: arm64: Extract parts of el2_setup into a macro

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: When the a CPU is booted in EL2, the kernel checks for VHE support and initializes the CPU core accordingly. For nVHE it also installs the stub vectors and drops down to EL1. Once KVM gains the ability to boot cores without going through the kernel

[PATCH v1 10/24] kvm: arm64: Extract parts of el2_setup into a macro

2020-11-09 Thread David Brazdil
When the a CPU is booted in EL2, the kernel checks for VHE support and initializes the CPU core accordingly. For nVHE it also installs the stub vectors and drops down to EL1. Once KVM gains the ability to boot cores without going through the kernel entry point, it will need to initialize the CPU