Re: [PATCH 2/2] KVM: arm64: Restore host physical timer access on hyp_panic()

2017-05-02 Thread Marc Zyngier
On 25/04/17 18:02, James Morse wrote: > When KVM panics, it hurridly restores the host context and parachutes hurriedly? > into the host's panic() code. At some point panic() touches the physical > timer/counter. Unless we are an arm64 system with VHE, this traps back > to

[PATCH 2/2] KVM: arm64: Restore host physical timer access on hyp_panic()

2017-04-25 Thread James Morse
When KVM panics, it hurridly restores the host context and parachutes into the host's panic() code. At some point panic() touches the physical timer/counter. Unless we are an arm64 system with VHE, this traps back to EL2. If we're lucky, we panic again. Add a __timer_save_state() call to KVMs