[PATCH v13 7/8] coco: guest: arm64: Add sysfs ABI for CCA Realm guests
Suzuki K Poulose
suzuki.poulose at arm.com
Wed Sep 23 08:08:24 PDT 2026
On 23/09/2026 15:04, Aneesh Kumar K.V (Arm) wrote:
> Userspace has used the arm-cca-dev platform device to detect Arm CCA
> Realm guests. Removing it without a replacement would break that
> detection and would also leave userspace depending on kernel
> device-model details.
>
> Add /sys/firmware/cca/realm_guest as a stable ABI for detecting whether
> the kernel is running as an Arm CCA Realm guest. Create the file only in
> Realm world, where it reads 1.
>
> Document the new ABI in Documentation/ABI/testing/sysfs-firmware-cca.
>
> Link: https://lore.kernel.org/all/4a7d84b2-2ec4-4773-a2d5-7b63d5c683cf@arm.com
> Reviewed-by: Jonathan Cameron <jonathan.cameron at oss.qualcomm.com>
> Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar at kernel.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose at arm.com>
More information about the linux-arm-kernel
mailing list