Re: [PATCH v15 10/14] x86/sgx: Implement async reclamation for cgroup

2024-06-20 Thread Haitao Huang
+ if (cgroup_subsys_enabled(misc_cgrp_subsys)) { + sgx_cg_wq = alloc_workqueue("sgx_cg_wq", WQ_UNBOUND | WQ_FREEZABLE, + WQ_UNBOUND_MAX_ACTIVE); + return -ENOMEM; Argh, missing if(!sgx_cg_wq), sorry for the brain far

[PATCH v15 10/14] x86/sgx: Implement async reclamation for cgroup

2024-06-17 Thread Huang, Haitao
From: Kristen Carlson Accardi In cases EPC pages need be allocated during a page fault and the cgroup usage is near its limit, an asynchronous reclamation needs be triggered to avoid blocking the page fault handling. Create a workqueue, corresponding work item and function definitions for EPC cg