From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756683AbcJaQEP (ORCPT ); Mon, 31 Oct 2016 12:04:15 -0400 Received: from foss.arm.com ([217.140.101.70]:37272 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755197AbcJaQEJ (ORCPT ); Mon, 31 Oct 2016 12:04:09 -0400 From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, mark.rutland@arm.com, marc.zyngier@arm.com, ard.biesheuvel@linaro.org, Suzuki K Poulose Subject: [PATCH v2 0/3] arm64: Support systems without FP/ASIMD Date: Mon, 31 Oct 2016 16:03:42 +0000 Message-Id: <1477929825-5907-1-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds supports to the kernel and KVM hyp to handle systems without FP/ASIMD properly. At the moment the kernel doesn't check if the FP unit is available before accessing the registers (e.g during context switch). Also for KVM, we trap the FP/ASIMD accesses and handle it by injecting an undefined instruction into the VM on systems without FP. Tested on a FVP_Base-AEM-v8A model by disabling VFP on at least one CPU ( -C clusterX.cpuY.vfp-present=0 ). Applies on aarch64 : for-next/core Suzuki K Poulose (3): arm64: crypto/aes-ce-ccm: Cleanup hwcap check arm64: Add hypervisor safe helper for checking constant capabilities arm64: Support systems without FP/ASIMD arch/arm64/crypto/aes-ce-ccm-glue.c | 5 ++--- arch/arm64/include/asm/cpufeature.h | 24 ++++++++++++++++++++---- arch/arm64/include/asm/neon.h | 3 ++- arch/arm64/kernel/cpufeature.c | 15 +++++++++++++++ arch/arm64/kernel/fpsimd.c | 14 ++++++++++++++ arch/arm64/kvm/handle_exit.c | 11 +++++++++++ arch/arm64/kvm/hyp/hyp-entry.S | 9 ++++++++- arch/arm64/kvm/hyp/switch.c | 5 ++++- 8 files changed, 76 insertions(+), 10 deletions(-) -- 2.7.4