Re: [PATCH 23/37] KVM: arm64: Prepare to handle traps on deferred VM sysregs

2017-11-13 Thread Andrew Jones
On Thu, Oct 12, 2017 at 12:41:27PM +0200, Christoffer Dall wrote: > When we defer the save/restore of system registers to vcpu_load and > vcpu_put, we need to take care of the emulation code that handles traps > to these registers, since simply reading the memory array will return > stale data. >

[PATCH 23/37] KVM: arm64: Prepare to handle traps on deferred VM sysregs

2017-10-12 Thread Christoffer Dall
When we defer the save/restore of system registers to vcpu_load and vcpu_put, we need to take care of the emulation code that handles traps to these registers, since simply reading the memory array will return stale data. Therefore, introduce two functions to directly read/write the registers