[PATCH v4 16/18] x86/sgx: Limit process EPC usage with misc cgroup controller

2023-09-12 Thread Haitao Huang
From: Kristen Carlson Accardi 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 s

[PATCH v4 14/18] x86/sgx: Add helper to grab pages from an arbitrary EPC LRU

2023-09-12 Thread Haitao Huang
From: Sean Christopherson Move the isolation loop into a helper, sgx_isolate_pages(), in preparation for existence of multiple LRUs. Expose the helper to other SGX code so that it can be called from the EPC cgroup code, e.g., to isolate pages from a single cgroup LRU. Exposing the isolation loop

[PATCH v4 17/18] Docs/x86/sgx: Add description for cgroup support

2023-09-12 Thread Haitao Huang
From: Kristen Carlson Accardi Add initial documentation of how to regulate the distribution of SGX Enclave Page Cache (EPC) memory via the Miscellaneous cgroup controller. Signed-off-by: Sean Christopherson Signed-off-by: Kristen Carlson Accardi Signed-off-by: Haitao Huang Cc: Sean Christopher

[PATCH v4 18/18] selftests/sgx: Add scripts for epc cgroup testing

2023-09-12 Thread Haitao Huang
Scripts rely on cgroup-tools package from libcgroup [1]. To test: 1) sudo ./setup_epc_cg.sh (optional one time setup) 2) sudo ./run_tests_in_misc_cg.sh To watch misc group current: ./watch_misc_for_tests.sh current [1] https://github.com/libcgroup/libcgroup/blob/main/README Signed-off-by: Haita

Re: [PATCH] x86/hyperv/vtl: Replace real_mode_header only under Hyper-V

2023-09-12 Thread Saurabh Singh Sengar
On Mon, Sep 11, 2023 at 10:00:59AM +0200, Mathias Krause wrote: > On 08.09.23 17:02, Saurabh Singh Sengar wrote: > > On Fri, Sep 08, 2023 at 12:26:10PM +0200, Mathias Krause wrote: > >> Booting a CONFIG_HYPERV_VTL_MODE=y enabled kernel on bare metal or a > >> non-Hyper-V hypervisor leads to serve m

<    1   2