Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-03-01 Thread Dave Martin
On Fri, Mar 01, 2019 at 12:39:52PM +, Julien Thierry wrote: > > > On 26/02/2019 12:06, Dave Martin wrote: > > On Wed, Feb 20, 2019 at 11:12:49AM +, Julien Thierry wrote: > >> Hi Dave, > >> > >> On 18/02/2019 19:52, Dave Martin wrote: [...] > >>> + /* > >>> + * Mismatches above

Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-03-01 Thread Julien Thierry
On 26/02/2019 12:06, Dave Martin wrote: > On Wed, Feb 20, 2019 at 11:12:49AM +, Julien Thierry wrote: >> Hi Dave, >> >> On 18/02/2019 19:52, Dave Martin wrote: >>> Due to the way the effective SVE vector length is controlled and >>> trapped at different exception levels, certain mismatches

Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-02-26 Thread Julien Grall
Hi Dave, On 26/02/2019 12:06, Dave Martin wrote: On Thu, Feb 21, 2019 at 01:36:26PM +, Julien Grall wrote: Hi Dave, On 18/02/2019 19:52, Dave Martin wrote: + /* +* Mismatches above sve_max_virtualisable_vl are fine, since +* no guest is allowed to configure

Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-02-26 Thread Dave Martin
On Thu, Feb 21, 2019 at 01:36:26PM +, Julien Grall wrote: > Hi Dave, > > On 18/02/2019 19:52, Dave Martin wrote: > >+/* > >+ * Mismatches above sve_max_virtualisable_vl are fine, since > >+ * no guest is allowed to configure ZCR_EL2.LEN to exceed this: > >+ */ > >+if

Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-02-26 Thread Dave Martin
On Wed, Feb 20, 2019 at 11:12:49AM +, Julien Thierry wrote: > Hi Dave, > > On 18/02/2019 19:52, Dave Martin wrote: > > Due to the way the effective SVE vector length is controlled and > > trapped at different exception levels, certain mismatches in the > > sets of vector lengths supported by

Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-02-21 Thread Julien Grall
Hi Dave, On 18/02/2019 19:52, Dave Martin wrote: + /* +* Mismatches above sve_max_virtualisable_vl are fine, since +* no guest is allowed to configure ZCR_EL2.LEN to exceed this: +*/ + if (sve_vl_from_vq(bit_to_vq(b)) <= sve_max_virtualisable_vl) { +

Re: [PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-02-20 Thread Julien Thierry
Hi Dave, On 18/02/2019 19:52, Dave Martin wrote: > Due to the way the effective SVE vector length is controlled and > trapped at different exception levels, certain mismatches in the > sets of vector lengths supported by different physical CPUs in the > system may prevent straightforward

[PATCH v5 06/26] arm64/sve: Check SVE virtualisability

2019-02-18 Thread Dave Martin
Due to the way the effective SVE vector length is controlled and trapped at different exception levels, certain mismatches in the sets of vector lengths supported by different physical CPUs in the system may prevent straightforward virtualisation of SVE at parity with the host. This patch