Re: [PATCH 23/27] arm64/sve: KVM: Hide SVE from CPU features exposed to guests

2017-08-16 Thread Dave Martin
On Wed, Aug 16, 2017 at 12:10:53PM +0100, Marc Zyngier wrote: > On 16/08/17 11:54, Dave Martin wrote: > > On Tue, Aug 15, 2017 at 05:37:55PM +0100, Marc Zyngier wrote: > >> On 09/08/17 13:05, Dave Martin wrote: [...] > >>> + if (id == SYS_ID_AA64PFR0_EL1) { > >>> + static bool printed; >

Re: [PATCH 23/27] arm64/sve: KVM: Hide SVE from CPU features exposed to guests

2017-08-16 Thread Marc Zyngier
On 16/08/17 11:54, Dave Martin wrote: > On Tue, Aug 15, 2017 at 05:37:55PM +0100, Marc Zyngier wrote: >> On 09/08/17 13:05, Dave Martin wrote: >>> KVM guests cannot currently use SVE, because SVE is always >>> configured to trap to EL2. >>> >>> However, a guest that sees SVE reported as present in

Re: [PATCH 23/27] arm64/sve: KVM: Hide SVE from CPU features exposed to guests

2017-08-16 Thread Dave Martin
On Tue, Aug 15, 2017 at 05:37:55PM +0100, Marc Zyngier wrote: > On 09/08/17 13:05, Dave Martin wrote: > > KVM guests cannot currently use SVE, because SVE is always > > configured to trap to EL2. > > > > However, a guest that sees SVE reported as present in > > ID_AA64PFR0_EL1 may legitimately

Re: [PATCH 23/27] arm64/sve: KVM: Hide SVE from CPU features exposed to guests

2017-08-15 Thread Marc Zyngier
On 09/08/17 13:05, Dave Martin wrote: > KVM guests cannot currently use SVE, because SVE is always > configured to trap to EL2. > > However, a guest that sees SVE reported as present in > ID_AA64PFR0_EL1 may legitimately expect that SVE works and try to > use it. Instead of working, the guest

[PATCH 23/27] arm64/sve: KVM: Hide SVE from CPU features exposed to guests

2017-08-09 Thread Dave Martin
KVM guests cannot currently use SVE, because SVE is always configured to trap to EL2. However, a guest that sees SVE reported as present in ID_AA64PFR0_EL1 may legitimately expect that SVE works and try to use it. Instead of working, the guest will receive an injected undef exception, which may