lkml.org 
[lkml]   [2022]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 25/26] x86/sgx: Add support for misc cgroup controller
    On Fri, Nov 11, 2022 at 10:35:30AM -0800, Kristen Carlson Accardi wrote:
    > Implement support for cgroup control of SGX Enclave Page Cache (EPC)
    > memory using the misc cgroup controller. EPC memory is independent
    > from normal system memory, e.g. must be reserved at boot from RAM and
    > cannot be converted between EPC and normal memory while the system is
    > running. EPC is managed by the SGX subsystem and is not accounted by
    > the memory controller.
    >
    > Much like normal system memory, EPC memory can be overcommitted via
    > virtual memory techniques and pages can be swapped out of the EPC to
    > their backing store (normal system memory, e.g. shmem). The SGX EPC
    > subsystem is analogous to the memory subsytem and the SGX EPC controller
    > is in turn analogous to the memory controller; it implements limit and
    > protection models for EPC memory.
    >
    > The misc controller provides a mechanism to set a hard limit of EPC
    > usage via the "sgx_epc" resource in "misc.max". The total EPC memory
    > available on the system is reported via the "sgx_epc" resource in
    > "misc.capacity".
    >
    > This patch was modified from its original version to use the misc cgroup
    > controller instead of a custom controller.
    >
    > Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
    > Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
    > Cc: Sean Christopherson <seanjc@google.com>

    This looks fine from cgroup POV.

    Thanks.

    --
    tejun

    \
     
     \ /
      Last update: 2022-11-14 23:39    [W:6.359 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site