Lines Matching +full:tcs +full:- +full:offset

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright(c) 2016-20 Intel Corporation.
12 * enum sgx_page_flags - page control flags
40 * struct sgx_enclave_create - parameter structure for the
49 * struct sgx_enclave_add_pages - parameter structure for the
52 * @offset: starting page offset
60 __u64 offset; member
68 * struct sgx_enclave_init - parameter structure for the
77 * struct sgx_enclave_provision - parameter structure for the
86 * struct sgx_enclave_restrict_permissions - parameters for ioctl
88 * @offset: starting page offset (page aligned relative to enclave base
91 * @permissions:new permission bits for pages in range described by @offset
97 __u64 offset; member
105 * struct sgx_enclave_modify_types - parameters for ioctl
107 * @offset: starting page offset (page aligned relative to enclave base
110 * @page_type: new type for pages in range described by @offset and @length
115 __u64 offset; member
123 * struct sgx_enclave_remove_pages - %SGX_IOC_ENCLAVE_REMOVE_PAGES parameters
124 * @offset: starting page offset (page aligned relative to enclave base
129 * Regular (PT_REG) or TCS (PT_TCS) can be removed from an initialized
136 __u64 offset; member
144 * typedef sgx_enclave_user_handler_t - Exit handler function accepted by
149 * exit. An invalid ENCLU function number will cause -EINVAL to be returned
153 * - <= 0: The given value is returned back to the caller.
154 * - > 0: ENCLU function to invoke, either EENTER or ERESUME.
161 * struct sgx_enclave_run - the execution context of __vdso_sgx_enter_enclave()
162 * @tcs: TCS used to enter the enclave
177 __u64 tcs; member
188 * typedef vdso_sgx_enter_enclave_t - Prototype for __vdso_sgx_enter_enclave(),
190 * @rdi: Pass-through value for RDI
191 * @rsi: Pass-through value for RSI
192 * @rdx: Pass-through value for RDX
194 * @r8: Pass-through value for R8
195 * @r9: Pass-through value for R9
196 * @run: struct sgx_enclave_run, must be non-NULL
199 * x86-64 ABI, e.g. doesn't handle XSAVE state. Except for non-volatile
201 * state in accordance with the x86-64 ABI is the responsibility of the enclave
205 * All general purpose registers except RAX, RBX and RCX are passed as-is to the
207 * with @function, asynchronous exit pointer, and @run.tcs respectively.
210 * pre-enclave state, e.g. to retrieve @run.exception and @run.user_handler
220 * reported exceptions, -EFAULT is returned and details about the exception are
224 * - 0: ENCLU function was successfully executed.
225 * - -EINVAL: Invalid ENCL number (neither EENTER nor ERESUME).