Messages in this thread | | | Date | Mon, 8 Nov 2021 07:21:55 +0100 | From | Greg Kroah-Hartman <> | Subject | Re: [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>
| |