|
@@ -1033,13 +1033,15 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
|
|
.matches = cpufeature_pan_not_uao,
|
|
.matches = cpufeature_pan_not_uao,
|
|
},
|
|
},
|
|
#endif /* CONFIG_ARM64_PAN */
|
|
#endif /* CONFIG_ARM64_PAN */
|
|
|
|
+#ifdef CONFIG_ARM64_VHE
|
|
{
|
|
{
|
|
.desc = "Virtualization Host Extensions",
|
|
.desc = "Virtualization Host Extensions",
|
|
.capability = ARM64_HAS_VIRT_HOST_EXTN,
|
|
.capability = ARM64_HAS_VIRT_HOST_EXTN,
|
|
- .type = ARM64_CPUCAP_SYSTEM_FEATURE,
|
|
|
|
|
|
+ .type = ARM64_CPUCAP_STRICT_BOOT_CPU_FEATURE,
|
|
.matches = runs_at_el2,
|
|
.matches = runs_at_el2,
|
|
.cpu_enable = cpu_copy_el2regs,
|
|
.cpu_enable = cpu_copy_el2regs,
|
|
},
|
|
},
|
|
|
|
+#endif /* CONFIG_ARM64_VHE */
|
|
{
|
|
{
|
|
.desc = "32-bit EL0 Support",
|
|
.desc = "32-bit EL0 Support",
|
|
.capability = ARM64_HAS_32BIT_EL0,
|
|
.capability = ARM64_HAS_32BIT_EL0,
|
|
@@ -1409,7 +1411,6 @@ static bool verify_local_cpu_caps(u16 scope_mask)
|
|
*/
|
|
*/
|
|
static void check_early_cpu_features(void)
|
|
static void check_early_cpu_features(void)
|
|
{
|
|
{
|
|
- verify_cpu_run_el();
|
|
|
|
verify_cpu_asid_bits();
|
|
verify_cpu_asid_bits();
|
|
/*
|
|
/*
|
|
* Early features are used by the kernel already. If there
|
|
* Early features are used by the kernel already. If there
|