diff options
author | Suzuki K Poulose <[email protected]> | 2016-11-08 13:56:20 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2016-11-16 17:50:51 +0000 |
commit | a4023f682739439b434165b54af7cb3676a4766e (patch) | |
tree | ef2638d37291c56d972f20b69c59a6dee9292c18 /lib/stackdepot.c | |
parent | c02433dd6de32f042cf3ffe476746b1115b8c096 (diff) |
arm64: Add hypervisor safe helper for checking constant capabilities
The hypervisor may not have full access to the kernel data structures
and hence cannot safely use cpus_have_cap() helper for checking the
system capability. Add a safe helper for hypervisors to check a constant
system capability, which *doesn't* fall back to checking the bitmap
maintained by the kernel. With this, make the cpus_have_cap() only
check the bitmask and force constant cap checks to use the new API
for quicker checks.
Cc: Robert Ritcher <[email protected]>
Cc: Tirumalesh Chalamarla <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Reviewed-by: Will Deacon <[email protected]>
Reviewed-by: Marc Zyngier <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions