Re: [PATCH v2 03/11] KVM: arm64: Change hyp_panic()s dependency on tpidr_el2

2017-09-22 Thread James Morse
Hi Christoffer, On 17/09/17 15:43, Christoffer Dall wrote: > On Tue, Aug 08, 2017 at 05:46:08PM +0100, James Morse wrote: >> Make tpidr_el2 a cpu-offset for per-cpu variables in the same way the >> host uses tpidr_el1. This lets tpidr_el{1,2} have the same value, and >> on VHE they can be the same

Re: [PATCH v2 03/11] KVM: arm64: Change hyp_panic()s dependency on tpidr_el2

2017-09-17 Thread Christoffer Dall
On Tue, Aug 08, 2017 at 05:46:08PM +0100, James Morse wrote: > Make tpidr_el2 a cpu-offset for per-cpu variables in the same way the > host uses tpidr_el1. This lets tpidr_el{1,2} have the same value, and > on VHE they can be the same register. > > KVM calls hyp_panic() when anything unexpected ha

[PATCH v2 03/11] KVM: arm64: Change hyp_panic()s dependency on tpidr_el2

2017-08-08 Thread James Morse
Make tpidr_el2 a cpu-offset for per-cpu variables in the same way the host uses tpidr_el1. This lets tpidr_el{1,2} have the same value, and on VHE they can be the same register. KVM calls hyp_panic() when anything unexpected happens. This may occur while a guest owns the EL1 registers. KVM stashes