Re: [PATCH v2 8/9] arm: KVM: Make unexpected register accesses inject an undef

2017-03-28 Thread Christoffer Dall
On Mon, Mar 27, 2017 at 05:03:44PM +0100, Marc Zyngier wrote: > Reads from write-only system registers are generally confined to > EL1 and not propagated to EL2 (that's what the architecture > mantates). In order to be sure that we have a sane behaviour > even in the unlikely event that we have a

[PATCH v2 8/9] arm: KVM: Make unexpected register accesses inject an undef

2017-03-27 Thread Marc Zyngier
Reads from write-only system registers are generally confined to EL1 and not propagated to EL2 (that's what the architecture mantates). In order to be sure that we have a sane behaviour even in the unlikely event that we have a broken system, we still handle it in KVM. Same goes for write to RO