|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 2/2] xen/arm: Throw messages for unknown FP/SIMD implement ID
Hi Wei, On 24/08/2020 04:28, Wei Chen wrote: Arm ID_AA64PFR0_EL1 register provides two fields to describe CPU FP/SIMD implementations. Currently, we exactly know the meaning of 0x0, 0x1 and 0xf of these fields. Xen treats value < 8 as FP/SIMD features presented. If there is a value 0x2 bumped in the future, Xen behaviors for value <= 0x1 can also take effect. But what Xen done for value <= 0x1 may not always cover new value 0x2 required. Right, but this will also happen with all the other features. This may actually confuse the users as they may think the rest of the features are fully supported which is not correct. For instance, dom0 will crash if you boot Xen on a SVE-capable hardware. We throw these messages to break the silence when Xen detected unknown FP/SIMD IDs to notice user to check. It feels a bit odd to me to print unknown for the FP/SIMD feature but not for all the rest. IMHO, the right approach is to sanitize ID registers exposed to domains and only expose features we know are correctly handled. So far, each extension name are just a word and they are all separated with spaces. With this change, there will be multiple words per extension which is quite confusion. If we decide to go ahead printing the "unknown", then we want to provide a full description of the extension on a separate line. Maybe: "AdvancedSIMD: With half-precision floating-point arithmetic".
Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |