lkml.org 
[lkml]   [2021]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v12 2/2] x86/sgx: Add an attribute for the amount of SGX memory in a NUMA node
    On Sun, Nov 07, 2021 at 07:32:33PM +0200, Jarkko Sakkinen wrote:
    > The amount of SGX memory on the system is determined by the BIOS and it
    > varies wildly between systems. It can be from dozens of MB's on desktops
    > or VM's, up to many GB's on servers. Just like for regular memory, it is
    > sometimes useful to know the amount of usable SGX memory in the system.
    >
    > Introduce CONFIG_HAVE_ARCH_NODE_DEV_GROUP opt-in flag to expose an arch
    > specific attribute group, and add an attribute for the amount of SGX
    > memory in bytes to each NUMA node:
    >
    > /sys/devices/system/node/nodeX/x86/sgx_total_bytes
    >
    > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    > Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

    Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    \
     
     \ /
      Last update: 2021-11-08 07:23    [W:3.125 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site